码迷,mamicode.com
首页 > 系统相关 > 详细

Ubuntu添加源列表

时间:2019-03-05 21:08:08      阅读:205      评论:0      收藏:0      [点我收藏+]

标签:arch   port   刷新   uri   date   网易   sed   main   显示   

1.
首先备份源列表:
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup

2.
清空原来的/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

3.
刷新列表:
sudo apt-get update

vim显示行号
vi /etc/vim/vimrc
set nu



deb http://cn.archive.ubuntu.com/ubuntu/ xenial main restricted
deb http://cn.archive.ubuntu.com/ubuntu/ xenial universe
deb http://cn.archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://download.virtualbox.org/virtualbox/debian xenial contrib



Ubuntu添加源列表

标签:arch   port   刷新   uri   date   网易   sed   main   显示   

原文地址:https://www.cnblogs.com/icemonkey/p/10479653.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!