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

Docker nginx implements one host to deploy multiple sites

The virtual machine I rented from a certain site ...

Using Zabbix to monitor the operation process of Oracle table space

0. Overview Zabbix is ​​an extremely powerful ope...

Do you know how to use Vue to take screenshots of web pages?

Table of contents 1. Install html2Canvas 2. Intro...

The implementation process of ECharts multi-chart linkage function

When there is a lot of data to be displayed, the ...

Introduction to CSS style classification (basic knowledge)

Classification of CSS styles 1. Internal style --...

Web Design Help: Web Font Size Data Reference

<br />The content is reproduced from the Int...

mysql5.7.21 utf8 encoding problem and solution in Mac environment

1. Goal: Change the value of character_set_server...

A simple way to implement all functions of shopping cart in Vue

The main functions are as follows: Add product in...

Introduction to the method attribute of the Form form in HTML

1 method is a property that specifies how data is ...

How to increase HTML page loading speed

(1) Reduce HTTP requests. (Merge resource files a...