## 1.更换软件源 在上一篇文章 [01.PVE系统安装](./01.PVE系统安装.md) 中,从刚装好的 PVE 系统中获取了系统的一些参数。 ![PVE系统信息](img/p01/pve_sys_info.jpg) 此处显示出 PVE 底层使用的是 Debian 的系统,代号为 `trixie` 。 为了后续能对 PVE 系统进行升级,需要更换其镜像仓库,也就是大家熟知的软件源。 当前处于 “离线” 安装状态,更换软件源后,因无网络连接,无法执行系统更新操作。 ### 1.1.系统软件源 使用终端工具登录到 PVE 服务器,查看现有软件源配置文件。 ```bash ## 查看系统默认软件源 $ cat /etc/apt/sources.list.d/debian.sources #### 系统默认软件源示例输出 Types: deb URIs: http://deb.debian.org/debian/ Suites: trixie trixie-updates Components: main contrib non-free-firmware Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg Types: deb URIs: http://security.debian.org/debian-security/ Suites: trixie-security Components: main contrib non-free-firmware Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg ``` 这里将使用 [中国科技大(USTC)](http://mirrors.ustc.edu.cn/help/proxmox.html) 的镜像仓库进行替换,执行以下命令。 ```bash ## 配置 PVE 系统默认软件源脚本 $ cat > /etc/apt/sources.list.d/debian.sources < /etc/apt/sources.list.d/pve-no-subscription.sources < /etc/apt/sources.list.d/pve-ceph-no-subscription.sources <