ubuntu server 22.04 国内镜像源
时间: 2023-09-15 17:18:19 浏览: 219
以下是 Ubuntu Server 22.04 国内镜像源列表:
1. 清华大学镜像站:https://mirrors.tuna.tsinghua.edu.cn/ubuntu-server/22.04/
2. 阿里云镜像站:https://mirrors.aliyun.com/ubuntu-server/22.04/
3. 中国科技大学镜像站:https://mirrors.ustc.edu.cn/ubuntu-server/22.04/
4. 华中科技大学镜像站:https://mirrors.hust.edu.cn/ubuntu-server/22.04/
5. 东软信息学院镜像站:https://mirrors.neusoft.edu.cn/ubuntu-server/22.04/
6. 北京交通大学镜像站:https://mirror.bjtu.edu.cn/ubuntu-server/22.04/
7. 上海交通大学镜像站:https://ftp.sjtu.edu.cn/ubuntu-server/22.04/
8. 腾讯云镜像站:https://mirrors.cloud.tencent.com/ubuntu-server/22.04/
9. 华为云镜像站:https://mirrors.huaweicloud.com/ubuntu-server/22.04/
10. 中科大镜像站:https://mirrors.uc.edu.cn/ubuntu-server/22.04/
建议选择就近的镜像站点进行下载,以提高下载速度。
相关问题
ubuntu server 22.04怎么切换国内镜像源
在 Ubuntu Server 22.04 中,可以通过以下步骤切换国内镜像源:
1. 打开终端,使用管理员权限登录(或使用 sudo 命令)。
2. 执行以下命令备份原有镜像源:
```
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
```
3. 执行以下命令编辑 sources.list 文件:
```
sudo nano /etc/apt/sources.list
```
4. 将原有镜像源地址注释掉,添加国内镜像源地址。例如,将原有的源地址:
```
deb http://archive.ubuntu.com/ubuntu/ focal main restricted
deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted
deb http://archive.ubuntu.com/ubuntu/ focal universe
deb http://archive.ubuntu.com/ubuntu/ focal-updates universe
deb http://archive.ubuntu.com/ubuntu/ focal multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-updates multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ focal-security main restricted
deb http://security.ubuntu.com/ubuntu/ focal-security universe
deb http://security.ubuntu.com/ubuntu/ focal-security multiverse
```
改为以下国内镜像源地址:
```
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted
deb http://mirrors.aliyun.com/ubuntu/ focal universe
deb http://mirrors.aliyun.com/ubuntu/ focal-updates universe
deb http://mirrors.aliyun.com/ubuntu/ focal multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-updates multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted
deb http://mirrors.aliyun.com/ubuntu/ focal-security universe
deb http://mirrors.aliyun.com/ubuntu/ focal-security multiverse
```
5. 保存并关闭文件。
6. 执行以下命令更新软件源:
```
sudo apt-get update
```
7. 切换完毕后可以执行以下命令验证一下是否已经成功切换为国内镜像源:
```
cat /etc/apt/sources.list
```
如果输出的内容中包含了国内镜像源地址,则表示切换成功。
ubuntu server 22.04换源
Ubuntu Server 22.04 是一款基于 Ubuntu 操作系统的服务器版本,换源是指将系统默认的软件源更换为国内的镜像源,以提高软件下载速度和安装效率。具体步骤如下:
1. 打开终端,使用 root 用户或者具有 sudo 权限的用户登录系统。
2. 备份系统默认的软件源配置文件,执行以下命令:
```
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
```
3. 打开软件源配置文件,使用编辑器打开 /etc/apt/sources.list 文件,将其中的内容全部替换为以下内容:
```
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ hirsute main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ hirsute main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ hirsute-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ hirsute-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ hirsute-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ hirsute-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ hirsute-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ hirsute-security main restricted universe multiverse
```
注意:以上内容是针对清华大学镜像站的配置,如果你想使用其他的镜像站,请将上述链接替换为相应的地址。
4. 更新软件源信息,执行以下命令:
```
sudo apt-get update
```
5. 完成换源操作后,你可以尝试通过以下命令安装一个软件包来测试是否生效:
```
sudo apt-get install tree
```
如果以上步骤都没有问题,那么你就已经成功地将 Ubuntu Server 22.04 的软件源更换为国内的镜像源了。
阅读全文
相关推荐
![list](https://img-home.csdnimg.cn/images/20250102104920.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/20241231044955.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)