alpine 安装软件报错UNTRUSTED signature

版本
bash-5.0# cat /etc/alpine-release 
3.12.0

更新或者安装程序
# apk update
报错如下
fetch http://mirrors.aliyun.com/alpine/latest-stable/community/x86_64/APKINDEX.tar.gz
ERROR: http://mirrors.aliyun.com/alpine/latest-stable/community/: UNTRUSTED signature

WARNING: Ignoring APKINDEX.1e9eadd5.tar.gz: UNTRUSTED signature
WARNING: Ignoring APKINDEX.17f4db31.tar.gz: UNTRUSTED signature
ERROR: unsatisfiable constraints:
  font-adobe-100dpi (missing):
    required by: world[font-adobe-100dpi]
  fontconfig (missing):
    required by: world[fontconfig]
  ttf-dejavu (missing):
    required by: world[ttf-dejavu]

解决:命令后面加上 --allow-untrusted 允许不可信就可以临时解决
# apk update --allow-untrusted
例如
bash-5.0# apk add  fontconfig --allow-untrusted
(1/3) Installing expat (2.4.1-r0)
(2/3) Installing libuuid (2.37.2-r1)
(3/3) Installing fontconfig (2.13.1-r4)
Executing busybox-1.31.1-r16.trigger
OK: 92 MiB in 66 packages

你可能感兴趣的:(alpine 安装软件报错UNTRUSTED signature)