明道学苑

学而不思则罔,思而不学则殆

0%

Ubuntu Linux更换镜像源

本文说明Ubuntu Linux如何更换默认的镜像源。

Ubuntu Linux默认镜像源安装升级系统速度慢,更换成国内的镜像源速度会提高很多。

通过修改/etc/apt/source.list文件可以更换镜像源:

sudo nano /etc/apt/source.list

Ubuntu 17.04的开发代号是Zesty Zapus,以下是Ubuntu 17.04网易源,速度非常的快。

文件备份后,将原来的文件内容更换为下面的内容

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-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ zesty-backports 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-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ zesty-backports main restricted universe multiverse