Ubuntu17.04配置更换国内源的方法

时间:2023-01-14 16:19:27

### 修改源命令:

?
1
sudo vi /etc/apt/source.list

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

?
1
2
3
4
5
6
7
8
9
10
11
12
13
##阿里云
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
?
1
2
3
4
5
6
7
8
9
10
11
12
13
##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配置更换国内源的方法

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

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持服务器之家。

原文链接:http://blog.csdn.net/ly6cyh/article/details/76825133