ubuntu18.04更换阿里源
时间: 2023-08-24 21:09:22 浏览: 131
要将Ubuntu 18.04更换为阿里源,您可以按照以下步骤进行操作:
1. 备份原来的系统默认源:打开终端,执行以下命令进行备份:
```
sudo cp /etc/apt/sources.list /etc/apt/sources_init.list
```
2. 打开源文件进行编辑:执行以下命令打开源文件:
```
sudo gedit /etc/apt/sources.list
```
3. 在gedit文本编辑器中,将下面的阿里源复制粘贴到源文件中:
```
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
```
4. 保存并关闭文件。
通过执行以上步骤,您已成功将Ubuntu 18.04更换为阿里源。这样可以提高您的网速,使软件下载更加快速。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [Ubuntu18.04切换阿里源](https://blog.csdn.net/BruceFei1/article/details/110312722)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* [安装Ubuntu18.04及修改apt源为阿里云源](https://blog.csdn.net/weixin_46513495/article/details/113736829)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文