1、设置debian中科大源
cat > /etc/apt/sources.list <<EOF
deb http://mirrors.ustc.edu.cn/debian/ bookworm main non-free contrib
deb http://mirrors.ustc.edu.cn/debian/ bookworm-updates main non-free contrib
deb http://mirrors.ustc.edu.cn/debian/ bookworm-backports main non-free contrib
deb-src http://mirrors.ustc.edu.cn/debian/ bookworm main non-free contrib
deb-src http://mirrors.ustc.edu.cn/debian/ bookworm-updates main non-free contrib
deb-src http://mirrors.ustc.edu.cn/debian/ bookworm-backports main non-free contrib
deb http://mirrors.ustc.edu.cn/debian-security/ bookworm-security main non-free contrib
deb-src http://mirrors.ustc.edu.cn/debian-security/ bookworm-security main non-free contrib
EOF
2、删除企业源
rm -rf /etc/apt/sources.list.d/pve-install-repo.list
echo "#deb https://enterprise.proxmox.com/debian/pve Bookworm pve-enterprise" > /etc/apt/sources.list.d/pve-enterprise.list
3、下载密钥
wget http://mirrors.ustc.edu.cn/proxmox/debian/proxmox-release-bookworm.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bookworm.gpg
4、添加国内源
echo "deb http://mirrors.ustc.edu.cn/proxmox/debian/pve bookworm pve-no-subscription" >/etc/apt/sources.list.d/pve-install-repo.list
5、修改自带的CEPH源
echo "deb https://mirrors.ustc.edu.cn/proxmox/debian/ceph-quincy bookworm main" > /etc/apt/sources.list.d/ceph.list
6、更新
apt update -y && apt dist-upgrade -y
文章评论
厉害