Ubuntu18.04 替换软件源
时间: 2023-10-20 07:07:26 浏览: 159
要替换Ubuntu18.04的软件源,你可以按照以下步骤进行操作:
1. 打开终端,输入以下命令以备份原来的软件源文件:
```
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
```
2. 打开软件源配置文件,输入以下命令:
```
sudo gedit /etc/apt/sources.list
```
3. 在打开的文件中,将所有内容替换为阿里源的配置。你可以使用以下配置:
```
deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
```
4. 保存文件并关闭编辑器。
5. 最后,输入以下命令以更新软件源:
```
sudo apt-get update
```
这样,你就成功替换了Ubuntu18.04的软件源为阿里源。请注意,这个过程可能需要一些时间来完成。
#### 引用[.reference_title]
- *1* [【Ubuntu18.04系统换源】](https://blog.csdn.net/dally2/article/details/127910493)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [ubuntu18.04更换阿里源教程](https://blog.csdn.net/weixin_35756373/article/details/129576781)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [Ubuntu18.04更换阿里源](https://blog.csdn.net/qq_43542732/article/details/128052430)[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^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文