How to replace domestic sources with Ubuntu 20.04 apt

UPD 2020.2.26 Ubuntu 20.04 LTS has not yet been released, the tutorial is only applicable to the development branch (but this kind of tutorial should be universal)

Graphical interface operation-for desktop version

In the upper right corner of the desktop, click to open the menu, and click Settings.

Pull down on the right side of the settings option to find "About", and click Software Updates.

You can see "downloaded from" in the software and update interface, and we can modify it.

It is recommended to choose mirros.aliyun.com or mirrors.tuna.tsinghua.edu.cn. You can also click to select the best server and test the software source with the fastest connection (the test time is longer).

Finally, when you exit the software and update interface, you will be prompted to update the software list information, just click Reload.

Terminal operation-applicable to Server & Desktop version

First we need to back up the original software source files (to prevent mistakes), and then delete sources.list (because we need to add content directly).

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak

Use your favorite text editor, open sources.list and add the following content (you can also replace mirrors.tuna.tsinghua.edu.cn with your favorite software source:

deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security multiverse

Refresh software source information:

sudo apt update

Update the software, you can feel the speed improvement after replacing the domestic source:

sudo apt upgrade

postscript

The article has not been updated yet (after all, Ubuntu 20.04 LTS has not yet been officially released).
In the future, other commonly used software may be added to change the source operation (equivalent to a collection of many tutorials, welcome to collect).

In addition, it is not recommended to update Ubuntu 20.04 now. When updating, try not to delete unnecessary software packages, because it is very likely that your previous software will use them (such as Sogou input method (qt4 is abandoned)), Certain s*r (python2 is abandoned), N card driver, etc.).

So far, this article on the implementation of Ubuntu 20.04 apt to replace domestic sources is introduced. For more related Ubuntu 20.04 apt to replace domestic sources, please search for previous articles of ZaLou.Cn or continue to browse related articles below. Hope you all Support ZaLou.Cn a lot!

Recommended Posts

How to replace domestic sources with Ubuntu 20.04 apt
Example of how to replace domestic sources on Ubuntu 18.04
Ubuntu17.04 configuration method to replace domestic sources
Ubuntu17.04 configuration method to replace domestic sources
How to replace domestic sources with Ubuntu 20.04 apt
Example of how to replace domestic sources on Ubuntu 18.04
CentOS8 yum/dnf configuration method of domestic sources
How to replace apt-get source on Ubuntu 18.04
How to install Prometheus with Docker on Ubuntu 14.04
How to add Apt software source on Ubuntu
How to upgrade to Ubuntu 20.04
How to manage Jenkins with Rancher on Ubuntu 14.04
How to play happily with Python3 on Ubuntu
How to upgrade to Ubuntu 20.04
How to protect Apache with Let's Encrypt on Ubuntu 16.04
How to upgrade to Ubuntu 16.04 LTS
How to set up a firewall with UFW on Ubuntu 14.04
How to set up password authentication with Nginx on Ubuntu 14.04
How to install Helm in Ubuntu
How to install Ruby on Ubuntu 20.04
How to install Memcached on Ubuntu 20.04
How to install Java on Ubuntu 20.04
How to install MySQL on Ubuntu 20.04
How to use hanlp in ubuntu
How to install VirtualBox on Ubuntu 20.04
How to install Elasticsearch on Ubuntu 20.04
How to install Nginx on Ubuntu 20.04
How to install Apache on Ubuntu 20.04
How to install Git on Ubuntu 20.04
How to install Node.js on Ubuntu 16.04
How to install MySQL on Ubuntu 20.04
How to install Vagrant on Ubuntu 20.04
How to install PostgreSQL on Ubuntu 16.04
How to install Git on Ubuntu 20.04
How to compile ijkplayer-android under ubuntu
How to install mysql in Ubuntu 14.04
How to install Memcached on Ubuntu 18.04
How to install Jenkins on Ubuntu 16.04
How to install MemSQL on Ubuntu 14.04
How to install MongoDB on Ubuntu 16.04
How to install Mailpile on Ubuntu 14.04
How to upgrade to PHP 7 on Ubuntu 14.04
How to install Skype on Ubuntu 20.04
How to install Jenkins on Ubuntu 20.04
How to install Python 3.8 on Ubuntu 18.04
How to install KVM on Ubuntu 18.04
How to install KVM on Ubuntu 20.04
How to install opencv3.0.0 on ubuntu14.04
How to install Anaconda on Ubuntu 20.04
How to install Jenkins on Ubuntu 18.04
How to install Apache on Ubuntu 20.04
How to install R on Ubuntu 20.04
How to install Moodle on Ubuntu 16.04
How to install Teamviewer on Ubuntu 16.04
How to secure Nginx on Ubuntu 14.04
How to install MariaDB on Ubuntu 20.04
How to install Nginx on Ubuntu 20.04
How to install Go on Ubuntu 20.04
How to install Zoom on Ubuntu 20.04
How to install mysql in Ubuntu 14.04
How to install Nginx on Ubuntu 16.04
How to install OpenCV on Ubuntu 20.04
How to install Spotify on Ubuntu 20.04
How to install Postman on Ubuntu 18.04