修改Ubuntu的apt-get源為網易源
阿新 • • 發佈:2018-12-26
1、複製原檔案備份
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
2、編輯源列表檔案
sudo vim /etc/apt/sources.list
3、將原來的列表刪除,新增如下內容
deb http://mirrors.163.com/ubuntu/ precise main universe restricted multiverse deb-src http://mirrors.163.com/ubuntu/ precise main universe restricted multiverse deb http://mirrors.163.com/ubuntu/ precise-security universe main multiverse restricted deb-src http://mirrors.163.com/ubuntu/ precise-security universe main multiverse restricted deb http://mirrors.163.com/ubuntu/ precise-updates universe main multiverse restricted deb http://mirrors.163.com/ubuntu/ precise-proposed universe main multiverse restricted deb-src http://mirrors.163.com/ubuntu/ precise-proposed universe main multiverse restricted deb http://mirrors.163.com/ubuntu/ precise-backports universe main multiverse restricted deb-src http://mirrors.163.com/ubuntu/ precise-backports universe main multiverse restricted deb-src http://mirrors.163.com/ubuntu/ precise-updates universe main multiverse restricted
4、執行sudo apt-get update
5、執行sudo apt-get upgrade