Alpine 安装 应用错误 ERROR: unable to select packages

/ # apk add curl
fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/x86_64/APKINDEX.tar.gz
WARNING: updating and opening https://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/: No such file or directory
fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/x86_64/APKINDEX.tar.gz
WARNING: updating and opening https://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/: No such file or directory
ERROR: unable to select packages:
  curl (no such package):
    required by: world[curl]

apk update

apk add xxx

都无法执行。

解决

更换使用下面源:

vi /etc/apk/repositories

https://mirror.reenigne.net/alpine/edge/community/
https://mirror.reenigne.net/alpine/edge/main/
https://mirror.reenigne.net/alpine/edge/testing/

https://mirror.reenigne.net/alpine/v3.19/main/
https://mirror.reenigne.net/alpine/v3.19/community/

如果还不行: vi /etc/resolv.conf  

meserver 8.8.8.8
nameserver 114.114.114.114
nameserver 127.0.0.53
nameserver 223.5.5.5
options edns0

第二步没有再验证,不确定有效 。

  • 10
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值