歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Ubuntu 12.04 校園網下使用IPv6源 免流量更新

Ubuntu 12.04 校園網下使用IPv6源 免流量更新

日期:2017/2/28 15:44:49   编辑:Linux教程

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 http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ precise main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ precise-security main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ precise-updates main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ precise-backports main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ precise main restricted universe multiverse
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ precise-security main restricted universe multiverse
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ precise-updates main restricted universe multiverse
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse

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

Copyright © Linux教程網 All Rights Reserved