ubuntu22换源中科大
时间: 2023-11-11 08:00:49 浏览: 33
要将 Ubuntu 22.04 的软件源更换为中科大的源,可以按照以下步骤操作:
1. 备份原有的软件源列表文件:
```
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
```
2. 编辑软件源列表文件,将其中的内容替换为中科大的源:
```
sudo nano /etc/apt/sources.list
```
在编辑器中输入以下内容:
```
deb https://mirrors.ustc.edu.cn/ubuntu/ hirsute main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ hirsute main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ hirsute-updates main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ hirsute-updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ hirsute-backports main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ hirsute-backports main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ hirsute-security main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ hirsute-security main restricted universe multiverse
```
3. 更新软件源列表:
```
sudo apt update
```
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![list](https://img-home.csdnimg.cn/images/20210720083646.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)