本篇内容介绍了“Debian如何修改APT软件源”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!
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软件源”的内容就介绍到这里了,感谢大家的阅读。如果想了解更多行业相关的知识可以关注本站网站,小编将为大家输出更多高质量的实用文章!