一、查看系统版本

root@pve1:~# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

二、更换安装源

查看到当前 Proxmox VE 8.0.3 版本适用的 Debian 操作系统是12版本,更换为清华的安装源。

提示:防止误操作,在修改配置前请进行备份操作。

系统源

文件位置:/etc/atp/sources.list ,清空文件内容,将以下内容添加到文件中。

deb https://mirrors.tuna.tsinghua.edu.cn/debian bookworm main contrib
deb https://mirrors.tuna.tsinghua.edu.cn/debian bookworm-updates main contrib
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security/ bookworm-security main contrib

Ceph 源

文件位置:/etc/apt/sources.list.d/ceph.list ,清空文件内容,将以下内容添加到文件中。

deb https://mirrors.ustc.edu.cn/proxmox/debian/ceph-quincy bookworm no-subscription

企业源

文件位置:/etc/apt/sources.list.d/pve-enterprise.list ,清空文件内容,将以下内容添加到文件中。

deb https://mirrors.ustc.edu.cn/proxmox/debian/pve bookworm pve-no-subscription

更新源

配置完成后,通过执行 apt update 命令更新源。