Ubuntu mate 18.04 更换国内源
时间: 2024-01-09 09:39:12 浏览: 81
您可以通过以下步骤将Ubuntu MATE 18.04更换为国内源:
1. 打开终端,并以root用户身份执行以下命令:
```
sudo su
```
2. 执行以下命令备份原有的软件源列表:
```
cp /etc/apt/sources.list /etc/apt/sources.list.bak
```
3. 执行以下命令编辑软件源列表:
```
nano /etc/apt/sources.list
```
4. 将文件中的所有内容替换为以下内容,表示使用阿里云的Ubuntu软件源:
```
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
```
5. 保存文件并退出编辑器。
6. 执行以下命令更新软件源信息:
```
apt-get update
```
现在,您的Ubuntu MATE 18.04已经更换为国内源了。
阅读全文
相关推荐

















