Ubuntu update software source

By default, Ubuntu's software source is not ideally used in China, and the network speed limit is too large, causing some large software downloads and installations to always time out.

In view of this situation, you only need to add and update the software sources maintained by domestic bigwigs or organizations to the Ubuntu software source (remote warehouse that automatically searches and installs software).

Take Ubuntu18.04 as an example:

1. Back up the original software source files####

cp /etc/apt/sources.list /etc/apt/sources.list.bak_yyyymmdd

2. Open the sources.list file and add the following software source address #### at the end of the file

vi /etc/apt/sources.list

Add the following address:

# 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

3. Update system software source####

Execute command to update system software source address

apt-get update
apt-get upgrade

4. Other software sources

University of Science and Technology
## University of Science and Technology
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 source
##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

Tsinghuayuan
## Tsinghuayuan
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

Recommended Posts

Ubuntu update software source
Ubuntu software
Ubuntu configuration source and installation software
ubuntu replacement source
How to modify software source in Ubuntu 7.10
How to add Apt software source on Ubuntu
Ubuntu make offline source
ubuntu 14.04 16.04 18.04 use Alibaba source
ubuntu dpkg software uninstall
Ubuntu own software record
Install common software on Ubuntu 16.04
Raspberry Pi Ubuntu Mate 16.04 modified as a domestic update source
Ubuntu18 super detailed common software installation
Windows10 update Ubuntu20.04 LTS method steps
Android source code compilation (ubuntu16.04 64-bit)
Ubuntu 20.04 use must install tool software
How to uninstall software on Ubuntu
Ubuntu upgrade software and ubuntu upgrade system commands
Modify the software default source to Tencent source
Ubuntu Intel graphics driver installation (Ubuntu 14.04--Ubuntu 16.10 + Intel® Graphics Update Tool)
Ubuntu18.04 system installation and prerequisite software installation guide
How to replace apt-get source on Ubuntu 18.04
Ubuntu 18.04 source code compile and install ffmpeg4.1
Install Zimbra Open Source Edition on Ubuntu 14.04
Download OpenJDK11 source code in Ubuntu environment
Three ways to install software under Ubuntu
Ubuntu 18.04 install Odoo14 tutorial through source code
Install utility software collection under Ubuntu system
Edit OpenJDK11 source code in Ubuntu environment