Ubuntu14.04 desktop使用网易163镜像源

原创
2016/01/19 11:01
阅读数 1.3K

修改/etc/apt/sources.list

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

或者下载

http://mirrors.163.com/.help/sources.list.trusty替换/etc/apt/sources.list

具体步骤:

默认ubuntu14.04 destktop版没有安装wget 可先安装下wget

sudo apt-get install wget

然后切换到/etc/apt目录下

cd /etc/apt

将系统默认的配置文件重命名

sudo mv /etc/apt/sources.list /etc/apt/sources.list.default

然后将下载的sources.list.trusty,放到/etc/apt/sources.list

sudo wget http://mirrors.163.com/.help/sources.list.trusty

重命名

sudo mv sources.list.trusty sources.list

更新软件源列表

sudo apt-get update

参考资料

http://mirrors.163.com/.help/ubuntu.html

展开阅读全文
加载中
点击引领话题📣 发布并加入讨论🔥
打赏
0 评论
0 收藏
1
分享
返回顶部
顶部