CentOS 7 容器内替换 apt-get 源为阿里源

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
echo "">sources.list
echo "deb https://mirrors.aliyun.com/debian  stable main contrib non-free">>sources.list
echo "deb https://mirrors.aliyun.com/debian  stable-updates main contrib non-free">>sources.list

 

posted @ 2020-09-04 13:40  Areas  阅读(1407)  评论(0编辑  收藏  举报