Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How Ubuntu12.04 updates the source

2025-01-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces how to update the source of Ubuntu12.04, the article introduces in great detail, has a certain reference value, interested friends must read it!

It is too slow to use foreign sources, and it will be much faster to change them to domestic sources. Here is to share the modification method for you, friends who need it can refer to it.

1.sudo gedit / etc/apt/sources.list

Edit your source list, delete all the original contents or make a backup

Sudo cp / etc/apt/sources.list / etc/apt/sources.list.backup (backup current source list)

Add the source that works best for you in the list below (be careful not to add it all), select the one that works best for you, copy it to your list, and then save the list.

2.sudo apt-get update updates source list information

You can check the error message while running "sudo apt-get update", delete the unreachable sources and rerun "sudo apt-get update".

3.sudo apt-get upgrade can also be upgraded or upgraded with the update manager that comes with ubuntu.

Ubuntu 12.04 Source list:

163 Source (preferred):

Deb http://mirrors.163.com/ubuntu/ precise main restricted

Deb-src http://mirrors.163.com/ubuntu/ precise main restricted

Deb http://mirrors.163.com/ubuntu/ precise-updates main restricted

Deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted

Deb http://mirrors.163.com/ubuntu/ precise universe

Deb-src http://mirrors.163.com/ubuntu/ precise universe

Deb http://mirrors.163.com/ubuntu/ precise-updates universe

Deb-src http://mirrors.163.com/ubuntu/ precise-updates universe

Deb http://mirrors.163.com/ubuntu/ precise multiverse

Deb-src http://mirrors.163.com/ubuntu/ precise multiverse

Deb http://mirrors.163.com/ubuntu/ precise-updates multiverse

Deb-src http://mirrors.163.com/ubuntu/ precise-updates multiverse

Deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse

Deb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse

Deb http://mirrors.163.com/ubuntu/ precise-security main restricted

Deb-src http://mirrors.163.com/ubuntu/ precise-security main restricted

Deb http://mirrors.163.com/ubuntu/ precise-security universe

Deb-src http://mirrors.163.com/ubuntu/ precise-security universe

Deb http://mirrors.163.com/ubuntu/ precise-security multiverse

Deb-src http://mirrors.163.com/ubuntu/ precise-security multiverse

Deb http://extras.ubuntu.com/ubuntu precise main

Deb-src http://extras.ubuntu.com/ubuntu precise main

Sohu source:

Deb http://mirrors.sohu.com/ubuntu/ precise main restricted

Deb-src http://mirrors.sohu.com/ubuntu/ precise main restricted

Deb http://mirrors.sohu.com/ubuntu/ precise-updates main restricted

Deb-src http://mirrors.sohu.com/ubuntu/ precise-updates main restricted

Deb http://mirrors.sohu.com/ubuntu/ precise universe

Deb-src http://mirrors.sohu.com/ubuntu/ precise universe

Deb http://mirrors.sohu.com/ubuntu/ precise-updates universe

Deb-src http://mirrors.sohu.com/ubuntu/ precise-updates universe

Deb http://mirrors.sohu.com/ubuntu/ precise multiverse

Deb-src http://mirrors.sohu.com/ubuntu/ precise multiverse

Deb http://mirrors.sohu.com/ubuntu/ precise-updates multiverse

Deb-src http://mirrors.sohu.com/ubuntu/ precise-updates multiverse

Deb http://mirrors.sohu.com/ubuntu/ precise-backports main restricted universe multiverse

Deb-src http://mirrors.sohu.com/ubuntu/ precise-backports main restricted universe multiverse

Deb http://mirrors.sohu.com/ubuntu/ precise-security main restricted

Deb-src http://mirrors.sohu.com/ubuntu/ precise-security main restricted

Deb http://mirrors.sohu.com/ubuntu/ precise-security universe

Deb-src http://mirrors.sohu.com/ubuntu/ precise-security universe

Deb http://mirrors.sohu.com/ubuntu/ precise-security multiverse

Deb-src http://mirrors.sohu.com/ubuntu/ precise-security multiverse

Deb http://extras.ubuntu.com/ubuntu precise main

Deb-src http://extras.ubuntu.com/ubuntu precise main

Ubuntu.cn99.com source (recommended):

Deb http://ubuntu.cn99.com/ubuntu/ precise main restricted universe multiverse

Deb http://ubuntu.cn99.com/ubuntu/ precise-updates main restricted universe multiverse

Deb http://ubuntu.cn99.com/ubuntu/ precise-security main restricted universe multiverse

Deb http://ubuntu.cn99.com/ubuntu/ precise-backports main restricted universe multiverse

Deb http://ubuntu.cn99.com/ubuntu-cn/ precise main restricted universe multiverse

Educational network source

If you are a college student, you can use the campus network / education network, that is, use the resources of the education network, especially those that support ipv6, then the update speed is calculated by megabytes.

University of Electronic Science and Technology:

Deb http://ubuntu.uestc.edu.cn/ubuntu/ precise main restricted universe multiverse

Deb http://ubuntu.uestc.edu.cn/ubuntu/ precise-backports main restricted universe multiverse

Deb http://ubuntu.uestc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse

Deb http://ubuntu.uestc.edu.cn/ubuntu/ precise-security main restricted universe multiverse

Deb http://ubuntu.uestc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse

Deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise main restricted universe multiverse

Deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-backports main restricted universe multiverse

Deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse

Deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-security main restricted universe multiverse

Deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse

University of Science and Technology of China:

Deb http://debian.ustc.edu.cn/ubuntu/ precise main restricted universe multiverse

Deb http://debian.ustc.edu.cn/ubuntu/ precise-backports restricted universe multiverse

Deb http://debian.ustc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse

Deb http://debian.ustc.edu.cn/ubuntu/ precise-security main restricted universe multiverse

Deb http://debian.ustc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse

Deb-src http://debian.ustc.edu.cn/ubuntu/ precise main restricted universe multiverse

Deb-src http://debian.ustc.edu.cn/ubuntu/ precise-backports main restricted universe multiverse

Deb-src http://debian.ustc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse

Deb-src http://debian.ustc.edu.cn/ubuntu/ precise-security main restricted universe multiverse

Deb-src http://debian.ustc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse

Beijing Jiaotong University:

Deb http://mirror.bjtu.edu.cn/ubuntu/ precise main multiverse restricted universe

Deb http://mirror.bjtu.edu.cn/ubuntu/ precise-backports main multiverse restricted universe

Deb http://mirror.bjtu.edu.cn/ubuntu/ precise-proposed main multiverse restricted universe

Deb http://mirror.bjtu.edu.cn/ubuntu/ precise-security main multiverse restricted universe

Deb http://mirror.bjtu.edu.cn/ubuntu/ precise-updates main multiverse restricted universe

Deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise main multiverse restricted universe

Deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-backports main multiverse restricted universe

Deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-proposed main multiverse restricted universe

Deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-security main multiverse restricted universe

Deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-updates main multiverse restricted universe

4. Update the source (type the following command in the terminal)

Sudo apt-get update

After installing Ubuntu18.04, it is too slow to use a foreign source, and it will be much faster to change it to a domestic source.

Modify the Ali source to the default source of Ubuntu 18.04

Backup / etc/apt/sources.list

# backup

Cp / etc/apt/sources.list / etc/apt/sources.list.bak

Add the following entry before the / etc/apt/sources.list file

# add Ali source

Deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse

Deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse

Deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse

Deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse

Deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

Deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse

Deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse

Deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse

Deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse

Deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

Finally, execute the following command to update the source

# # Update

Sudo apt-get update

Sudo apt-get upgrade

Several other domestic sources are as follows:

Chinese science and technology Dayuan

# # Zhongke Dayuan

Deb https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse

Deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse

Deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse

Deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse

Deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse

Deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse

Deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse

Deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse

Deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse

Deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse

163 sourc

# # 163 Source

Deb http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse

Deb http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse

Deb http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse

Deb http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse

Deb http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse

Deb-src http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse

Deb-src http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse

Deb-src http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse

Deb-src http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse

Deb-src http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse

Tsinghua source

# # Tsinghua Source

Deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse

Deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic main restricted universe multiverse

Deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse

Deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse

Deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse

Deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse

Deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse

Deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-security main restricted universe multiverse

Deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse

Deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse

The above is all the contents of the article "how to update the source for Ubuntu12.04". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report