ubunbtu 镜像源
时间: 2023-08-13 08:05:21 浏览: 61
Ubuntu 镜像源可以让我们在更新软件、安装软件包等操作时,提高下载速度和稳定性。以下是 Ubuntu 镜像源的几种常见类型:
1. 官方源(Main Server):官方源是 Ubuntu 官方提供的软件下载源,速度较快,适合大多数用户。在 /etc/apt/sources.list 中添加以下内容即可:
```
deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
```
2. 清华源:清华大学开源软件镜像站是国内较大的 Ubuntu 镜像源之一,可访问速度较快。在 /etc/apt/sources.list 中添加以下内容即可:
```
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
```
3. 阿里云源:阿里云开源镜像站也提供了 Ubuntu 镜像源,访问速度较快。在 /etc/apt/sources.list 中添加以下内容即可:
```
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
```
4. 163源:网易提供的 163 镜像源也是较为常用的 Ubuntu 镜像源之一,速度较快。在 /etc/apt/sources.list 中添加以下内容即可:
```
deb http://mirrors.163.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ focal main restricted universe multiverse
```
以上是常见的 Ubuntu 镜像源,你可以根据自己的实际情况选择使用。添加完镜像源后,别忘了运行 sudo apt update 命令更新本地软件包列表。
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.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)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)