PVE9更换国内源
PVE 9 基于 Debian trixie,不是 bookworm(bookworm 是 PVE 8)。用 bookworm 会导致和系统其他 trixie 源不匹配。
一、 删除企业源
Markup 全选
## PVE 9 pve-enterprise.list 改名为 pve-enterprise.sources
#屏蔽企业源
mv /etc/apt/sources.list.d/pve-enterprise.sources /etc/apt/sources.list.d/pve-enterprise.sources.bak
# 或者直接删除
rm -rf /etc/apt/sources.list.d/pve-enterprise.sources二、 更换中科大源
Markup 全选
cat > /etc/apt/sources.list.d/pve-no-subscription.sources <<'EOF'
Types: deb
URIs: https://mirrors.ustc.edu.cn/proxmox/debian/pve
Suites: trixie
Components: pve-no-subscription
Signed-By: /usr/share/keyrings/proxmox-archive-keyring.gpg
EOF三、 更新CEPH分布式源
Markup 全选
cat > /etc/apt/sources.list.d/ceph.sources <<'EOF'
Types: deb
URIs: https://mirrors.ustc.edu.cn/proxmox/debian/ceph-squid
Suites: trixie
Components: no-subscription
Signed-By: /usr/share/keyrings/proxmox-archive-keyring.gpg
EOF四、执行更新源
最后执行
Markup 全选
apt update #更新源版权声明:本文为YES开发框架网发布内容,转载请附上原文出处连接
post 张国生


