How to switch the apt repository of Linux mint 20 to the open source software mirror of Tsinghua University
overview
Linux mint 20 was released some time ago. In the process of using it, the speed of updating the software library with the help of the Linux mint software source located overseas is not satisfactory. Is there any way to solve this problem? There must be, and the answer is to switch the software source of Linux mint to a mirror server in China. There are many open source mirror servers in China Mirror, but under normal circumstances, Tsinghua University, University of Science and Technology of China, and Alibaba Cloud open source mirror stations have better actual results. Today, we will introduce to you how to switch the software source of Linux mint 20 to the open source mirror station of Tsinghua University.
Action
- 步骤1
编辑位于/etc/apt/sources.list.d目录下的文件official-package-repositories.list,将其内容修改为:
sudo tee /etc/docker/daemon.json <<-'EOF'
deb [arch=amd64] http://mirrors.tuna.tsinghua.edu.cn/linuxmint ulyana main upstream import backport
deb [arch=amd64] http://mirrors.tuna.tsinghua.edu.cn/ubuntu focal main restricted universe multiverse
deb [arch=amd64] http://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-updates main restricted universe multiverse
deb [arch=amd64] http://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-backports main restricted universe multiverse
deb [arch=amd64] http://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-security main restricted universe multiverse
deb [arch=amd64] http://archive.canonical.com/ubuntu/ focal partner
EOF
- 步骤 2
更新元数据
sudo apt update