docker 中Ubuntu apt-get换源

mv /etc/apt/sources.list /etc/apt/sources.list.bak
echo "deb http://mirrors.ustc.edu.cn/debian stable main contrib non-free" >> /etc/apt/sources.list
echo "deb http://mirrors.ustc.edu.cn/debian stable-updates main contrib non-free" >> /etc/apt/sources.list
posted @ 2022-06-12 22:53  一只小羊  阅读(55)  评论(0编辑  收藏  举报