VUM-PVE整合包关于如何更换国内源问题「VUM-PVE说明书」

前言

整合包中我们遵守的是不更换系统底层数据内容的,所以关于VUM-PVE整合包中,默认还是官方源,但是有很多朋友还是需要更换为国内源,由于不能修改底层系统的原则,那么我们就以手动的方式更换吧。

问题复现

图片[1]-VUM-PVE整合包关于如何更换国内源问题「VUM-PVE说明书」-VUM星球

更换方法

备份源文件

cp /etc/apt/sources.list /etc/apt/sources.list.backup
图片[2]-VUM-PVE整合包关于如何更换国内源问题「VUM-PVE说明书」-VUM星球

添加国内源

cat <<EOF > /etc/apt/sources.list
deb http://mirrors.ustc.edu.cn/debian/ bookworm main non-free-firmware
deb-src http://mirrors.ustc.edu.cn/debian/ bookworm main non-free-firmware

deb https://mirrors.ustc.edu.cn/debian-security bookworm-security main contrib

deb http://mirrors.ustc.edu.cn/debian/ bookworm-updates main non-free-firmware
deb-src http://mirrors.ustc.edu.cn/debian/ bookworm-updates main non-free-firmware
EOF
图片[3]-VUM-PVE整合包关于如何更换国内源问题「VUM-PVE说明书」-VUM星球
echo "deb https://mirrors.tuna.tsinghua.edu.cn/proxmox/debian bookworm pve-no-subscription" > /etc/apt/sources.list.d/pve-no-subscription.list
图片[4]-VUM-PVE整合包关于如何更换国内源问题「VUM-PVE说明书」-VUM星球

屏蔽企业源

sed -i 's/^deb https:\/\/enterprise.proxmox.com\/debian\/pve/#deb https:\/\/enterprise.proxmox.com\/debian\/pve/' /etc/apt/sources.list.d/pve-enterprise.list
图片[5]-VUM-PVE整合包关于如何更换国内源问题「VUM-PVE说明书」-VUM星球

屏蔽 Ceph 源

sed -i 's/^deb https:\/\/enterprise.proxmox.com\/debian\/ceph-quincy/#deb https:\/\/enterprise.proxmox.com\/debian\/ceph-quincy/' /etc/apt/sources.list.d/ceph.list
图片[6]-VUM-PVE整合包关于如何更换国内源问题「VUM-PVE说明书」-VUM星球

更新源

apt-get update
图片[7]-VUM-PVE整合包关于如何更换国内源问题「VUM-PVE说明书」-VUM星球

    测试还会不会报错

    图片[8]-VUM-PVE整合包关于如何更换国内源问题「VUM-PVE说明书」-VUM星球
    图片[9]-VUM-PVE整合包关于如何更换国内源问题「VUM-PVE说明书」-VUM星球
    © 版权声明
    THE END
    喜欢就支持一下吧
    点赞15赞赏 分享
    评论 共3条

    请登录后发表评论