【Ubuntu】修改Ubuntu的apt-get源为国内镜像源的方法

2018-01-13 11:00:19来源:http://www.zgljl2012.com/ubuntu-xiu-gai-ubuntude-apt-getyuan作者:zgljl2012的个人专栏人点击

分享

1、原文件备份



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


2、编辑源列表文件



sudo vim /etc/apt/sources.list


3、将原来的列表删除,添加如下内容(中科大镜像源)


deb /2014th7cj/d/file/p/20180113/ xenial main restricted universe multiverse
deb /2014th7cj/d/file/p/20180113/ xenial-security main restricted universe multiverse
deb /2014th7cj/d/file/p/20180113/ xenial-updates main restricted universe multiverse
deb /2014th7cj/d/file/p/20180113/ xenial-proposed main restricted universe multiverse
deb /2014th7cj/d/file/p/20180113/ xenial-backports main restricted universe multiverse
deb-src /2014th7cj/d/file/p/20180113/ xenial main restricted universe multiverse
deb-src /2014th7cj/d/file/p/20180113/ xenial-security main restricted universe multiverse
deb-src /2014th7cj/d/file/p/20180113/ xenial-updates main restricted universe multiverse
deb-src /2014th7cj/d/file/p/20180113/ xenial-proposed main restricted universe multiverse
deb-src /2014th7cj/d/file/p/20180113/ xenial-backports main restricted universe multiverse


4、运行sudo apt-get update


转载请注明出处


http://www.zgljl2012.com/ubuntu-xiu-gai-ubuntude-apt-getyuan-wei-a-li-yun-yuan-de-fang-fa/


最新文章

123

最新摄影

微信扫一扫

第七城市微信公众平台