Ubuntu 20.04 to change domestic source

tags: Linux system zero basic entry  linux  ubuntu

In different Linux distributions, when you download some software or packages, you will encounter a very or less slow speed or even unable to download or unable to find the package. Complex network problems have caused inconvenience of domestic developers (developing human resources using Python language or Maven, and Gradle tools will also encounter similar problems).


The software source configuration file of the ubuntu system is /etc/apt/sources.list

Step 1: Use the CP command to back up the file

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

There are many mirror sources of Ubuntu in China, including Ali, Netease, and many sources of education networks, such as: Tsinghua source, Zhongke Da source.
Here we use Ali source as an example to explain how to modify the default source in Ubuntu 20.04.
Edit /etc/apt/sources.list file, add the following content to the forefront

Step 2: Then execute the command

sudo apt-get update
sudo apt-get upgrade

Other domestic sources

Alibaba

deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse

Zhongke University

deb https://mirrors.ustc.edu.cn/ubuntu/ focal main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ focal-security main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-security main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse

Netease 163 source

deb http://mirrors.163.com/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ focal-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ focal-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ focal-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ focal-backports main restricted universe multiverse

Intelligent Recommendation

[Ubuntu 20.04 lts] Update software source switching to domestic source

Article catalog Backup View ubuntu version Revise renew Other sources Zhongke Source Netease source Tsinghua source Backup View ubuntu version Can see ourUbuntu 20.04 ofCodenameYesfocalIf you update o...

ubuntu change source (replace domestic Tsinghua source)

ubuntu change source (change domestic source) 1. Back up the original source file source.list 2. Modify the source file sources.list (1) Change the permissions of the sources.list file to make it edit...

Ubuntu application---change source (domestic mirror)

Ubuntu application---change source (domestic mirror) 1. Enter System Settings -> Software and Update 2. Choose a server 3. View 4. Update the app 1. Enter System Settings -> Software and Update ...

Ubuntu 20.04 Change the kernel

Ubuntu 20.04 Change the kernel Articles directory Ubuntu 20.04 Change the kernel Foreword Replace the detailed steps Foreword Replace the kernel because the kernel driver package of the Realsense SDK ...

Ubuntu 20.04 for domestic source, Tsinghua source, Ali source, University of Science and Technology source 163 source

Ubuntu 20.04 is the eighth LTS version of Ubuntu, and its major updates and improvements will end before 2030. It is scheduled to be released on April 23, 2020. There are many Ubuntu mirror sources in...

More Recommendation

ubuntu 18.04 Change source Change domestic source (Xiaobai)

After we installed ubuntu, the software update source is foreign. I think the biggest disadvantage is that the speed is too slow, too TM is too slow, 9kb per second It's actually very simple, fool-lik...

Ubantu 20.04 replaces domestic source

Ubantu 20.04 replaces domestic source I. Introduction Second, the domestic open source mirroring website Third, the operation steps I. Introduction When you install Ubantu, it is found that it is very...

Ubuntu Note (2) Virtual machine Ubuntu 20.04 and Raspberry Pi 4B 22.04 replace the domestic source

Ubuntu embedded programming Ubuntu Note (2) Virtual machine Ubuntu 20.04 and Raspberry Pi 4B 22.04 replace the domestic source Lawrence, the author of this article, is not allowed to reprint without t...

Ubuntu 20.04 update source

Tsinghua University Open Source Software Mirror Station China Linux Source Mirroring Station Daquan Backup Ubuntu default source address Update source server list Clear the Sources.list file first. Th...

Ubuntu 20.04 APT Source

Step 1: Switch to/etc/apt/ Under contents The second step (optional but recommended):BackupOriginalsources.list (I have already backed up here) Step 3: Find a domestic mirror source website, here I us...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top