alpine无法安装imagemagick问题
使用alpine的docker镜像安装imagemagick时报错:
bash-5.1# apk add imagemagick
fetch https://mirrors.tencent.com/alpine/v3.14/main/x86_64/APKINDEX.tar.gz
ERROR: unable to select packages:
imagemagick (no such package):
required by: world[imagemagick]
问题原因:imagemagick
属于community包,仓库源中没有配置community的源。
解决方案:在/etc/apk/repositories
中添加community源,如:
https://mirrors.tencent.com/alpine/v3.14/community/
此处评论已关闭