下面以修改Debian软件源为中科大为例进行说明:
镜像地址:https://mirrors.ustc.edu.cn/
1、备份原配置文件:
#cp/etc/apt/sources.list/etc/apt/sources.list.backup
2、修改软件源配置文件
debian7.x(wheezy)
编辑/etc/apt/sources.list文件,将内容修改为:
debhttp://mirrors.ustc.edu.cn/debianwheezymainnon-freecontrib
debhttp://mirrors.ustc.edu.cn/debianwheezy-proposed-updatesmainnon-freecontrib
deb-srchttp://mirrors.ustc.edu.cn/debianwheezymainnon-freecontrib
deb-srchttp://mirrors.ustc.edu.cn/debianwheezy-proposed-updatesmainnon-freecontrib
debian8.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