X Chen笔记---Debian更改apt源

 

备份:

# mv /etc/apt/sources.list /etc/apt/sources.list.ba

编辑更新源文件:

vim /etc/apt/sources.list

 

将以下内容写入配置文件

# deb cdrom:[Debian GNU/Linux 8.2.0 _Jessie_ - Official amd64 NETINST Binary-1 20150906-11:09]/ jessie main

#deb cdrom:[Debian GNU/Linux 8.2.0 _Jessie_ - Official amd64 NETINST Binary-1 20150906-11:09]/ jessie main

deb http://mirrors.163.com/debian/ jessie main

deb-src http://mirrors.163.com/debian/ jessie main

deb http://security.debian.org/ jessie/updates main

deb-src http://security.debian.org/ jessie/updates main

# jessie-updates, previously known as 'volatile'

deb http://mirrors.163.com/debian/ jessie-updates main

deb-src http://mirrors.163.com/debian/ jessie-updates main

 

重新载入源:

apt-get update

你可能感兴趣的:(X Chen笔记---Debian更改apt源)