bullseye系统更改国内镜像源具体步骤
时间: 2024-05-18 09:06:25 浏览: 138
要更改Bullseye系统的国内镜像源,你需要按照以下步骤进行操作:
1. 打开终端并以管理员身份运行。
2. 执行以下命令备份原始源列表:
```bash
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
```
3. 用编辑器打开源列表文件:
```bash
sudo nano /etc/apt/sources.list
```
4. 将文件中的所有内容删除并用以下内容替换:
```bash
deb http://mirrors.aliyun.com/debian/ bullseye main contrib non-free
deb-src http://mirrors.aliyun.com/debian/ bullseye main contrib non-free
deb http://mirrors.aliyun.com/debian-security bullseye-security main
deb-src http://mirrors.aliyun.com/debian-security bullseye-security main
deb http://mirrors.aliyun.com/debian/ bullseye-updates main contrib non-free
deb-src http://mirrors.aliyun.com/debian/ bullseye-updates main contrib non-free
deb http://mirrors.aliyun.com/debian/ bullseye-backports main contrib non-free
deb-src http://mirrors.aliyun.com/debian/ bullseye-backports main contrib non-free
```
5. 按下 "Ctrl + X" 保存并退出编辑器。
6. 更新源列表:
```bash
sudo apt update
```
7. 完成,现在你的Bullseye系统已经更改为国内镜像源。
阅读全文