Ubuntu添加源列表
Posted 风追海浪
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Ubuntu添加源列表相关的知识,希望对你有一定的参考价值。
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添加源列表的主要内容,如果未能解决你的问题,请参考以下文章