大佬教程收集整理的这篇文章主要介绍了Ubuntu 16.04 几个国内更新源,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
执行备份命令
sudo cp /etc/apt/sources.list /etc/apt/sources.list.old
可以用vim,gedit,atom等工具打开
sudo vim /etc/apt/source.list
或
sudo gedit /etc/apt/source.list
或(你得自己安装atom,我觉得挺好的一个工具)
sudo atom /etc/apt/source.list
把下面的任意一下复制到source.list中去,并覆盖原来的文件内容。
deb-src http://mirror.neu.edu.cn/ubuntu/ xenial main reStricted #Added by software-properties
deb http://mirror.neu.edu.cn/ubuntu/ xenial main reStricted
deb-src http://mirror.neu.edu.cn/ubuntu/ xenial reStricted multiverse universe #Added by software-properties
deb http://mirror.neu.edu.cn/ubuntu/ xenial-updates main reStricted
deb-src http://mirror.neu.edu.cn/ubuntu/ xenial-updates main reStricted multiverse universe #Added by software-properties
deb http://mirror.neu.edu.cn/ubuntu/ xenial universe
deb http://mirror.neu.edu.cn/ubuntu/ xenial-updates universe
deb http://mirror.neu.edu.cn/ubuntu/ xenial multiverse
deb http://mirror.neu.edu.cn/ubuntu/ xenial-updates multiverse
deb http://mirror.neu.edu.cn/ubuntu/ xenial-BACkports main reStricted universe multiverse
deb-src http://mirror.neu.edu.cn/ubuntu/ xenial-BACkports main reStricted universe multiverse #Added by software-properties
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner
deb http://mirror.neu.edu.cn/ubuntu/ xenial-security main reStricted
deb-src http://mirror.neu.edu.cn/ubuntu/ xenial-security main reStricted multiverse universe #Added by software-properties
deb http://mirror.neu.edu.cn/ubuntu/ xenial-security universe
deb http://mirror.neu.edu.cn/ubuntu/ xenial-security multiverse
# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main reStricted
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main reStricted
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main reStricted
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-BACkports main reStricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main reStricted
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security multiverse
阿里云源
# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main reStricted
deb-src http://archive.ubuntu.com/ubuntu xenial main reStricted #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial main reStricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial main reStricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main reStricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main reStricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb http://mirrors.aliyun.com/ubuntu/ xenial multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse
deb http://mirrors.aliyun.com/ubuntu/ xenial-BACkports main reStricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-BACkports main reStricted universe multiverse #Added by software-properties
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner
deb http://mirrors.aliyun.com/ubuntu/ xenial-security main reStricted
deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main reStricted multiverse universe #Added by software-properties
deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
deb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse
sudo apt-get update
以上是大佬教程为你收集整理的Ubuntu 16.04 几个国内更新源全部内容,希望文章能够帮你解决Ubuntu 16.04 几个国内更新源所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。