返回首页
当前位置: 主页 > 操作系统 > Ubuntu教程 >

ubuntu 源修改

时间:2015-06-15 22:25来源:电脑教程学习网 www.etwiki.cn 编辑:admin

sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
#备份原来的软件列表,会要求输入密码

然后, sudo gedit /etc/apt/sources.list

#用gedit打开sources.list文件

在接下来在打开的文本编辑器中,把看到的内容全部删掉,把下面网易的源粘贴上去,保存
deb http://mirrors.163.com/ubuntu/ natty main universe restricted multiverse
deb-src http://mirrors.163.com/ubuntu/ natty main universe restricted multiverse
deb http://mirrors.163.com/ubuntu/ natty-security universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ natty-security universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ natty-updates universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ natty-proposed universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ natty-proposed universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ natty-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ natty-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ natty-updates universe main multiverse restricted
然后在终端中输入:sudo apt-get update
完成后输入sudo apt-get upgrade就能更更新了。
网易的源比默认提供的源快不少,速度几乎是默认源的3倍

无法打开锁文件 /var/lib/apt/lists/lock - open (13 Permission denied)
E: 无法对状态列表目录加锁

更新时出现问题
:解决方法
sudo rm /var/lib/apt/lists/lock

------分隔线----------------------------
标签(Tag):Ubuntu ubuntu教程 ubuntu技巧 ubuntu模板 ubuntu美化 ubuntu源
------分隔线----------------------------
推荐内容
猜你感兴趣