Archived
update 4.PVE制作虚拟机模板.md.
This commit is contained in:
@@ -261,3 +261,37 @@ sudo systemctl restart sshd
|
||||
|
||||
使用 SSH 工具登录 Debian 虚拟机,常用 SSH 工具可以看之前的文章中的 [SSH 工具推荐](./0.PVE系统安装.md#03ssh工具) 。
|
||||
|
||||
首先需要对 Debian 系统的软件源进行修改,这里使用 USTC 的软件源。
|
||||
|
||||
如果以后系统版本发生变化,参考使用 snullp 大叔开发的 [配置生成器](https://mirrors.ustc.edu.cn/repogen/) 。
|
||||
|
||||
逐条执行以下命令:
|
||||
|
||||
```bash
|
||||
## 进入系统源配置文件目录
|
||||
cd /etc/apt/
|
||||
|
||||
## 备份旧的系统源配置文件
|
||||
sudo mv sources.list sources.list.bak
|
||||
|
||||
## 创建新的系统源配置文件
|
||||
sudo nano sources.list
|
||||
```
|
||||
|
||||
在 `nano` 编辑器对话框中输入以下内容(注释了 `deb-src` 以便加快软件源同步速度):
|
||||
|
||||
```bash
|
||||
deb https://mirrors.ustc.edu.cn/debian/ bullseye main contrib non-free
|
||||
#deb-src https://mirrors.ustc.edu.cn/debian/ bullseye main contrib non-free
|
||||
|
||||
deb https://mirrors.ustc.edu.cn/debian/ bullseye-updates main contrib non-free
|
||||
#deb-src https://mirrors.ustc.edu.cn/debian/ bullseye-updates main contrib non-free
|
||||
|
||||
deb https://mirrors.ustc.edu.cn/debian/ bullseye-backports main contrib non-free
|
||||
#deb-src https://mirrors.ustc.edu.cn/debian/ bullseye-backports main contrib non-free
|
||||
|
||||
deb https://mirrors.ustc.edu.cn/debian-security/ bullseye-security main contrib non-free
|
||||
#deb-src https://mirrors.ustc.edu.cn/debian-security/ bullseye-security main contrib non-free
|
||||
```
|
||||
|
||||
按下键盘 `ctrl 和 x` 组合键,再按下 `Y` 键,即可保存。
|
||||
Reference in New Issue
Block a user