Ubuntu12.04 use IPv6 source for traffic update on Campus Network

Source: Internet
Author: User
The default source of Ubuntu is the official update server located in Europe (China is slow, but there is no synchronization latency problem). Now many colleges and universities have activated IPv6, and there is no traffic fee for IPv6, ubuntu has many image sites that support IPv6, so we can manually set the Ubuntu source to achieve the purpose of no traffic updates, and the speed is faster. First, back up the source list: sudocp/etc/apt/sources. list/etc/apt/sources. list_backup and then use gedi

The default source of Ubuntu is the official update server located in Europe (China is slow, but there is no synchronization latency problem). Now many colleges and universities have activated IPv6, and there is no traffic fee for IPv6, ubuntu has many image sites that support IPv6, so we can manually set the Ubuntu source to achieve the purpose of no traffic updates, and the speed is faster.

First, back up the source list:
Sudo cp/etc/apt/sources. list/etc/apt/sources. list_backup
Then open it in gedit or another Editor:
Gksu gedit/etc/apt/sources. list
Select the source of the open source image site of Tsinghua University, replace all the content in the file, and save the edited file:

Tsinghua University Update Server, IPv6-Only address (for 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

Then, refresh the list. Note: You must refresh the list.
Sudo apt-get update

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.