Debain 9 更新源

一、备份原有镜像源配置


cp /etc/apt/sources.list  /etc/apt/sources.list.backup

 

二、清空sources.list内容粘贴以下网易163源地址内容

vim /etc/apt/sources.list


deb http://mirrors.163.com/debian/ stretch main non-free contrib

deb http://mirrors.163.com/debian/ stretch-updates main non-free contrib

deb http://mirrors.163.com/debian/ stretch-backports main non-free contrib

deb-src http://mirrors.163.com/debian/ stretch main non-free contrib

deb-src http://mirrors.163.com/debian/ stretch-updates main non-free contrib

deb-src http://mirrors.163.com/debian/ stretch-backports main non-free contrib

deb http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib

deb-src http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib

Copy

三、让镜像源生效,更新系统镜像


apt-get update
apt-get upgrade

你可能感兴趣的:(debian)