docker 容器内修改163源 apt-get update

  • 备份
 mv /etc/apt/sources.list /etc/apt/sources.list.bak
  • 修改
echo "deb http://mirrors.163.com/debian/ jessie main non-free contrib" >> /etc/apt/sources.list
echo "deb http://mirrors.163.com/debian/ jessie-proposed-updates main non-free contrib" >>/etc/apt/sources.list
echo "deb-src http://mirrors.163.com/debian/ jessie main non-free contrib" >>/etc/apt/sources.list
echo "deb-src http://mirrors.163.com/debian/ jessie-proposed-updates main non-free contrib" >>/etc/apt/sources.list

-更新

apt-get update
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页