Debian9安裝163鏡像源

 

Debian 9(代號爲 Stretch),鏡像源已由原來的jessie更新爲了stretch,爲了安全起見需要先備份,再進行配置新的鏡像源。修改debian9鏡像源方法如下:

1、備份原有鏡像源配置文件: cp /etc/apt/sources.list  /etc/apt/sources.list.bak


wKioL1mBccvh7N6GAABexAMSUdU497.png


2、打開sources.list文件,註釋原有CD源代碼,更新鏡像源地址爲163鏡像源,代碼如下:

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

配置完畢之後輸入:apt update 命令更新系統鏡像源配置文件。


wKioL1mBdtrC7i2FAAEI1ADvZPg557.png


wKiom1mBdzej7kbAAAFdTw4tp6A662.png

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章