咨询热线:4006-75-4006

售前:9:00-23:30    备案:9:00-18:00    技术:7*24h

Debian修改APT软件源

2019-04-26 05:02:21 7159次

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

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

镜像地址:https://www.landui.com/

1、备份原配置文件:

# cp /etc/apt/sources.list /etc/apt/sources.list.backup

2、修改软件源配置文件

debian 7.x (wheezy)

编辑/etc/apt/sources.list文件, 将内容修改为:

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

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

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

  4. 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://www.landui.com/debian jessie main non-free contrib
deb http://www.landui.com/debian jessie-proposed-updates main non-free contrib
deb-src http://www.landui.com/debian jessie main non-free contrib
deb-src http://www.landui.com/debian jessie-proposed-updates main non-free contrib

3、更新

# apt-get update


首页
最新活动
个人中心