欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  运维

Ubuntu17.04如何配置更换国内源

程序员文章站 2022-04-13 22:58:30
...
本文主要和大家介绍了Ubuntu17.04配置国内源的方法,小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编过来看看吧,希望能帮助到大家。

### 修改源命令:

sudo vi /etc/apt/source.list

### 把source.list内容替换成下面其中一个源

##阿里云
deb http://mirrors.aliyun.com/ubuntu/ zesty main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ zesty-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ zesty-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ zesty-backports main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ zesty-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ zesty main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ zesty-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ zesty-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ zesty-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ zesty-proposed main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ zesty partner
deb http://extras.ubuntu.com/ubuntu/ zesty main
##Ubuntu官方中国
deb http://cn.archive.ubuntu.com/ubuntu/ zesty main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ zesty-security main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ zesty-updates main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ zesty-backports main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ zesty-proposed main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ zesty main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ zesty-security main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ zesty-updates main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ zesty-backports main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ zesty-proposed main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ zesty partner
deb http://extras.ubuntu.com/ubuntu/ zesty main
##网易源
deb http://mirrors.163.com/ubuntu/ zesty main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ zesty-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ zesty-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ zesty-backports main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ zesty-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ zesty main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ zesty-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ zesty-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ zesty-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ zesty-proposed main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ zesty partner
deb http://extras.ubuntu.com/ubuntu/ zesty main

第二种方法直接在界面打开:

Ubuntu17.04如何配置更换国内源

再进入software&updates:

Ubuntu17.04如何配置更换国内源

Ubuntu17.04如何配置更换国内源

选择自己所需要的源,

Ubuntu17.04如何配置更换国内源

过程完成,说明更新完成。

相关推荐:

ubuntu运行后台php服务详解

Ubuntu将PHP5升级到PHP7.0

php之Ubuntu服务器设置方法

以上就是Ubuntu17.04如何配置更换国内源的详细内容,更多请关注其它相关文章!