Linux环境搭建:3. 更改apt-get源

1. 备份旧源

cp /etc/apt/sources.list /etc/apt/sources.list.bak

2. 修改为163源

sudo gedit   /etc/apt/sources.list

删除原有代码,添加163的源:

deb http://mirrors.163.com/ubuntu/ lucid main universe restricted multiverse 
deb-src http://mirrors.163.com/ubuntu/ lucid main universe restricted multiverse 
deb http://mirrors.163.com/ubuntu/ lucid-security universe main multiverse restricted 
deb-src http://mirrors.163.com/ubuntu/ lucid-security universe main multiverse restricted 
deb http://mirrors.163.com/ubuntu/ lucid-updates universe main multiverse restricted 
deb http://mirrors.163.com/ubuntu/ lucid-proposed universe main multiverse restricted 
deb-src http://mirrors.163.com/ubuntu/ lucid-proposed universe main multiverse restricted 
deb http://mirrors.163.com/ubuntu/ lucid-backports universe main multiverse restricted 
deb-src http://mirrors.163.com/ubuntu/ lucid-backports universe main multiverse restricted 
deb-src http://mirrors.163.com/ubuntu/ lucid-updates universe main multiverse restricted

3. 更新源

apt-get update

4. 其它参考源

搜狐:

deb http://mirrors.shlug.org/ubuntu/ lucid main universe restricted multiverse 
deb-src http://mirrors.shlug.org/ubuntu/ lucid main universe restricted multiverse 
deb http://mirrors.shlug.org/ubuntu/ lucid-security universe main multiverse restricted 
deb-src http://mirrors.shlug.org/ubuntu/ lucid-security universe main multiverse restricted 
deb http://mirrors.shlug.org/ubuntu/ lucid-updates universe main multiverse restricted 
deb http://mirrors.shlug.org/ubuntu/ lucid-proposed universe main multiverse restricted 
deb-src http://mirrors.shlug.org/ubuntu/ lucid-proposed universe main multiverse restricted 
deb http://mirrors.shlug.org/ubuntu/ lucid-backports universe main multiverse restricted 
deb-src http://mirrors.shlug.org/ubuntu/ lucid-backports universe main multiverse restricted 
deb-src http://mirrors.shlug.org/ubuntu/ lucid-updates universe main multiverse restricted 

RST source

deb http://ubuntu.srt.cn/ubuntu/ lucid main restricted universe multiverse 
deb http://ubuntu.srt.cn/ubuntu/ lucid-security main restricted universe multiverse 
deb http://ubuntu.srt.cn/ubuntu/ lucid-updates main restricted universe multiverse 
deb http://ubuntu.srt.cn/ubuntu/ lucid-proposed main restricted universe multiverse 
deb http://ubuntu.srt.cn/ubuntu/ lucid-backports main restricted universe multiverse 
deb-src http://ubuntu.srt.cn/ubuntu/ lucid main restricted universe multiverse 
deb-src http://ubuntu.srt.cn/ubuntu/ lucid-security main restricted universe multiverse 
deb-src http://ubuntu.srt.cn/ubuntu/ lucid-updates main restricted universe multiverse 
deb-src http://ubuntu.srt.cn/ubuntu/ lucid-proposed main restricted universe multiverse 
deb-src http://ubuntu.srt.cn/ubuntu/ lucid-backports main restricted universe multiverse 

Ubuntu 官方上海源

deb http://mirror.rootguide.org/ubuntu/ lucid main universe restricted multiverse 
deb-src http://mirror.rootguide.org/ubuntu/ lucid main universe restricted multiverse 
deb http://mirror.rootguide.org/ubuntu/ lucid-security universe main multiverse restricted 
deb-src http://mirror.rootguide.org/ubuntu/ lucid-security universe main multiverse restricted 
deb http://mirror.rootguide.org/ubuntu/ lucid-updates universe main multiverse restricted 
deb http://mirror.rootguide.org/ubuntu/ lucid-proposed universe main multiverse restricted 
deb-src http://mirror.rootguide.org/ubuntu/ lucid-proposed universe main multiverse restricted 
deb http://mirror.rootguide.org/ubuntu/ lucid-backports universe main multiverse restricted 
deb-src http://mirror.rootguide.org/ubuntu/ lucid-backports universe main multiverse restricted 
deb-src http://mirror.rootguide.org/ubuntu/ lucid-updates universe main multiverse restricted 

5. 参考文献

http://www.jb51.net/os/Ubuntu/45292.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值