Ubuntu   发布时间:2022-05-10  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了Ubuntu 16.04 几个国内更新源大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

如何更改源

1/ 在修改source.list前,最好先备份一份

执行备份命令

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

2/ 执行命令打开source.list文件:

可以用vim,gedit,atom等工具打开

sudo vim /etc/apt/source.list

sudo gedit /etc/apt/source.list

或(你得自己安装atom,我觉得挺好的一个工具)

sudo atom /etc/apt/source.list

3/复制源

把下面的任意一下复制到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

4/update命令

sudo apt-get update

大佬总结

以上是大佬教程为你收集整理的Ubuntu 16.04 几个国内更新源全部内容,希望文章能够帮你解决Ubuntu 16.04 几个国内更新源所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签:gedit