Ubuntu更换国内源

2018-09-07  本文已影响0人  七八个星天

1.备份原来的源

sudo cp /etc/apt/sources.list /etc/apt/sources_init.list

2.编辑配置文件,添加新的源

使用gedit打开文档,将下边的阿里源复制进去,然后点击保存关闭。

sudo gedit /etc/apt/sources.list

然后更新源

sudo apt-get update

阿里源

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

上一篇 下一篇

猜你喜欢

热点阅读