Skip to content

SSL error when using custom apk mirror #364

@Naitreey

Description

@Naitreey

I'm having issue to apk add with a custom apk repository mirror url in rabbitmq rabbitmq:3.7.17-alpine image.

I'm trying to use apk mirror provided by USTC (University of Science and Technology of China):

# cat /etc/apk/repositories 
https://mirrors.ustc.edu.cn/alpine/v3.10/main
https://mirrors.ustc.edu.cn/alpine/v3.10/community

With that mirror list configured, I'm no longer able to run apk add, which aborted with the following error:

/ # apk add --no-cache tzdata
fetch https://mirrors.ustc.edu.cn/alpine/v3.10/main/x86_64/APKINDEX.tar.gz
140250143264072:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1921:
WARNING: Ignoring https://mirrors.ustc.edu.cn/alpine/v3.10/main/x86_64/APKINDEX.tar.gz: Permission denied
fetch https://mirrors.ustc.edu.cn/alpine/v3.10/community/x86_64/APKINDEX.tar.gz
140250143264072:error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:ssl/statem/statem_clnt.c:1921:
WARNING: Ignoring https://mirrors.ustc.edu.cn/alpine/v3.10/community/x86_64/APKINDEX.tar.gz: Permission denied
ERROR: unsatisfiable constraints:
  tzdata (missing):
    required by: world[tzdata]

Now it's really weird because it works well with vanilla alpine:3.10 -- With that mirror list configured, I can install packages with apk add without problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions