ubuntu mate20.04换源
时间: 2023-04-26 17:00:46 浏览: 170
1. 打开终端,输入以下命令备份原有源列表文件:
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
2. 编辑源列表文件:
sudo nano /etc/apt/sources.list
3. 将原有源列表文件中的内容全部删除,然后将以下内容复制到文件中:
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse
4. 保存文件并退出编辑器。
5. 更新源列表:
sudo apt update
6. 完成。现在您的 Ubuntu Mate 20.04 已经成功更换了源。
阅读全文