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

What are the advantages of using B+Tree as an index in MySQL?

Table of contents Why do databases need indexes? ...

Docker+gitlab+jenkins builds automated deployment from scratch

Table of contents Preface: 1. Install Docker 2. I...

HTML table markup tutorial (5): light border color attribute BORDERCOLORLIGHT

In a table, you can define the color of the upper...

The difference between MySQL count(1), count(*), and count(field)

Table of contents 1. First look at COUNT 2. The d...

HTML 5 Reset Stylesheet

This CSS reset is modified based on Eric Meyers...

Nginx compiled nginx - add new module

1. View existing modules /usr/local/nginx/sbin/ng...

How to block IP and IP range in Nginx

Written in front Nginx is not just a reverse prox...

Docker starts MySQL configuration implementation process

Table of contents Actual combat process Let's...

JavaScript Composition and Inheritance Explained

Table of contents 1. Introduction 2. Prototype ch...

Detailed explanation of web page loading progress bar (recommended)

(When a web page is loading, sometimes there is t...

How to determine if the Linux system is installed on VMware

How to determine whether the current Linux system...

Specific use of nginx keepalive

The default request header of the http1.1 protoco...

Summary of commonly used multi-table modification statements in Mysql and Oracle

I saw this question in the SQL training question ...