20
Mar
March 20, 2016, 6:00 pm

How can I get apt to use a mirror close to me, or choose a faster mirror?

给ubuntu系统选择最佳镜像源:apt-get命令支持'mirror'方法,根据主机位置选择最佳镜像.

apt-get now supports a 'mirror' method that will automatically select a good mirror based on your location. 示例:编辑source.list文件,将apt mirror的网址改为:

deb mirror://mirrors.ubuntu.com/mirrors.txt  trusty main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt trusty-updates main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt trusty-backports main restricted universe multiverse
deb mirror://mirrors.ubuntu.com/mirrors.txt trusty-security main restricted universe multiverse
打赏

Next Post Previous Post

Related Posts