当前位置:   article > 正文

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

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

apk update

apk add xxx

都无法执行。

解决

更换使用下面源:

vi /etc/apk/repositories
  1. https://mirror.reenigne.net/alpine/edge/community/
  2. https://mirror.reenigne.net/alpine/edge/main/
  3. https://mirror.reenigne.net/alpine/edge/testing/
  4. https://mirror.reenigne.net/alpine/v3.19/main/
  5. https://mirror.reenigne.net/alpine/v3.19/community/

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

  1. meserver 8.8.8.8
  2. nameserver 114.114.114.114
  3. nameserver 127.0.0.53
  4. nameserver 223.5.5.5
  5. options edns0

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

本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/w/笔触狂放9/article/detail/880083
推荐阅读
相关标签
  

闽ICP备14008679号