Ubuntu 12.04 校园网下使用IPv6源 免流量更新

Ubuntu的默认源是位于欧洲的官方更新服务器(国内较慢,但无同步延迟问题),现在很多高校都开通了IPv6,而且对IPv6的免流量费,正好Ubuntu有很多镜像站支持IPv6,因此我们可以手动设置Ubuntu的源来达到免流量更新的目的,速度也更快。

首先备份源列表:
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
而后用gedit或其他编辑器打开:
 gksu gedit /etc/apt/sources.list
选择清华大学开源镜像站的源,替换掉文件中所有的内容,保存编辑好的文件:

清华大学更新服务器,IPv6-Only 地址(适用于Ubuntu 12.04

deb precise main restricted universe multiverse
deb precise-security main restricted universe multiverse
deb precise-updates main restricted universe multiverse
deb precise-backports main restricted universe multiverse
deb precise-proposed main restricted universe multiverse
deb-src precise main restricted universe multiverse
deb-src precise-security main restricted universe multiverse
deb-src precise-updates main restricted universe multiverse
deb-src precise-backports main restricted universe multiverse
deb-src precise-proposed main restricted universe multiverse

然后,刷新列表 注意:一定要执行刷新
sudo apt-get update

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/21399.html