From 5b073b068e82735d54a7f71b9077731d7b2470d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=8B=E5=88=80=E7=8B=90=E7=8B=B8?= Date: Fri, 5 Aug 2022 13:10:05 +0000 Subject: [PATCH] =?UTF-8?q?update=204.PVE=E5=88=B6=E4=BD=9C=E8=99=9A?= =?UTF-8?q?=E6=8B=9F=E6=9C=BA=E6=A8=A1=E6=9D=BF.md.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 4.PVE制作虚拟机模板.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/4.PVE制作虚拟机模板.md b/4.PVE制作虚拟机模板.md index 8219fe6..960d797 100644 --- a/4.PVE制作虚拟机模板.md +++ b/4.PVE制作虚拟机模板.md @@ -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` 键,即可保存。 \ No newline at end of file