共計 949 個字符,預計需要花費 3 分鐘才能閱讀完成。
本篇內容介紹了“Debian 如何修改 APT 軟件源”的有關知識,在實際案例的操作過程中,不少人都會遇到這樣的困境,接下來就讓丸趣 TV 小編帶領大家學習一下如何處理這些情況吧!希望大家仔細閱讀,能夠學有所成!
1、備份原配置文件:
#cp/etc/apt/sources.list/etc/apt/sources.list.backup
2、修改軟件源配置文件
debian 7.x (wheezy)
編輯 /etc/apt/sources.list 文件, 將內容修改為:
deb http://mirrors.ustc.edu.cn/debian wheezy main non-free contrib
deb http://mirrors.ustc.edu.cn/debian wheezy-proposed-updates main non-free contrib
deb-src http://mirrors.ustc.edu.cn/debian wheezy main non-free contrib
deb-src http://mirrors.ustc.edu.cn/debian wheezy-proposed-updates main non-free contrib
debian 8.x (jessie) 編輯 /etc/apt/sources.list 文件, 將內容修改為:
debhttp://mirrors.ustc.edu.cn/debianjessiemainnon-freecontrib
debhttp://mirrors.ustc.edu.cn/debianjessie-proposed-updatesmainnon-freecontrib
deb-srchttp://mirrors.ustc.edu.cn/debianjessiemainnon-freecontrib
deb-srchttp://mirrors.ustc.edu.cn/debianjessie-proposed-updatesmainnon-freecontrib
3、更新
#apt-getupdate
“Debian 如何修改 APT 軟件源”的內容就介紹到這里了,感謝大家的閱讀。如果想了解更多行業相關的知識可以關注丸趣 TV 網站,丸趣 TV 小編將為大家輸出更多高質量的實用文章!