Alpine Linux 配置国内软件源

位置:首页>文章>详情   分类:Linux和Shell教程   阅读(727)   2023-03-28 11:29:14
Apine Linux 配置国内软件源
 
echo "https://mirrors.tuna.tsinghua.edu.cn/alpine/v3.16/main" > /etc/apk/repositories\
&& echo "https://mirrors.tuna.tsinghua.edu.cn/alpine/v3.16/community" >> > /etc/apk/repositories

提示:上面配置的是apine linux 3.16.x版本的,需要根据自身安装的版本进行修改,查看版本方法,在系统中执行一下命令:
 

prod-server:~# cat /etc/issue 
Welcome to Alpine Linux 3.16
Kernel \r on an \m (\l)
这里可以看到版本是3.16
配置完成后更新
apk update
更新源
配置完毕

提醒:如果安装软件遇到以下错误,则基本表示源不包含或者源配置错误
错误

 
地址:https://www.leftso.com/article/1079.html