关于我们

质量为本、客户为根、勇于拼搏、务实创新

< 返回新闻公共列表

修改Debian系统的APT软件源:轻松上手

发布时间:2023/11/6 13:05:47
香港云服务器

Linux拥有众多的发行版,每个发行版都有提供镜像,但是,有些镜像的下载速度参差不齐,偶尔会有更新失败的情况。

下面以修改 Debian 软件源为 中科大为例进行说明:

镜像地址:https://mirrors.ustc.edu.cn/

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文件, 将内容修改为:

deb http://mirrors.ustc.edu.cn/debian jessie main non-free contrib

deb http://mirrors.ustc.edu.cn/debian jessie-proposed-updates main non-free contrib

deb-src http://mirrors.ustc.edu.cn/debian jessie main non-free contrib

deb-src http://mirrors.ustc.edu.cn/debian jessie-proposed-updates main non-free contrib

3、更新

# apt-get update