How to change the domestic source of Ubuntu 20.04 apt

How to change the domestic source of Ubuntu 20.04 apt

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

Graphical interface operation - suitable for desktop version

Click on the upper right corner of the desktop to open the menu and click on the Settings option.

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

In the software and update interface, you can see "Download from", which we can modify.

It is recommended to choose mirros.aliyun.com or mirrors.tuna.tsinghua.edu.cn . You can also click Select the best server to test the fastest software source (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 versions

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

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

Use your favorite text editor to 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 and you can feel the speed improvement after changing the domestic source:

sudo apt upgrade

postscript

The article has not been updated yet (after all, Ubuntu 20.04 LTS has not been officially released yet).
In the future, we may add source change operations for other commonly used software (equivalent to collecting many tutorials together, welcome to collect them).

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 uses them (such as Sogou Input Method ( qt4 has been abandoned), s*r ( python2 has been abandoned), N card driver, etc.).

This is the end of this article about how to implement Ubuntu 20.04 apt to replace the domestic source. For more relevant Ubuntu 20.04 apt to replace the domestic source content, please search 123WORDPRESS.COM’s previous articles or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • How to change apt-get source in Ubuntu 18.04
  • Detailed explanation of several domestic update sources for Ubuntu 16.04
  • How to change Alibaba source in Ubuntu 14.04 and Ubuntu 16.04
  • How to configure Ubuntu 17.04 to change the domestic source
  • How to change the Ali source in Ubuntu 20.04
  • Example of how to change the domestic source in Ubuntu 18.04
  • Detailed process of changing apt source to Alibaba Cloud source in Ubuntu 18.04

<<:  mysql8 Common Table Expression CTE usage example analysis

>>:  WeChat applet implements sorting function based on date and time

Recommend

Vue project @change multiple parameters to pass multiple events

First, there is only one change event. changeleve...

A complete guide to the Docker command line (18 things you have to know)

Preface A Docker image consists of a Dockerfile a...

Detailed explanation of SSH password-free login configuration under Linux

Assume there are two Linux servers A and B, and w...

Sample code for partitioning and formatting a disk larger than 20TB on centos6

1. Server environment configuration: 1. Check dis...

A colorful cat under Linux

Friends who have used the Linux system must have ...

How to handle images in Vue forms

question: I have a form in Vue for uploading blog...

Method of dynamically loading geojson based on Vue+Openlayer

Load one or more features <template> <di...

Mysql 5.6 adds a method to modify username and password

Log in to MySQL first shell> mysql --user=root...

Simple implementation of Mysql add, delete, modify and query statements

Simple implementation of Mysql add, delete, modif...

JavaScript array deduplication solution

Table of contents Method 1: set: It is not a data...

Put frameset in body through iframe

Because frameset and body are on the same level, y...

7 interview questions about JS this, how many can you answer correctly

Preface In JavaScript, this is the function calli...

JavaScript to achieve window display effect

This article shares the specific code of JavaScri...