注:安装时记得选择硬盘旁边的options,里面的maxroot填写50G即可。
1、备份自带的源列表
cp /etc/apt/sources.list /etc/apt/sources.list.bak
2、添加PVE8.0的清华源
nano /etc/apt/sources.list
注释掉原来官方源,添加8.0清华源
# 官方源
#deb http://ftp.debian.org/debian bookworm main contrib
#deb http://ftp.debian.org/debian bookworm-updates main contrib
# security updates
#deb http://security.debian.org bookworm-security main contrib
# 手动添加8.0清华源
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
# security updates
deb https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
3、编辑企业源
nano /etc/apt/sources.list.d/pve-enterprise.list
注释到原来官方源,添加清华源
#官方源
#deb https://enterprise.proxmox.com/debian/pve bookworm pve-enterprise
#手动添加清华源
deb https://mirrors.tuna.tsinghua.edu.cn/proxmox/debian bookworm pve-no-subscription
4、修复更新时源报401错
echo "deb http://download.proxmox.com/debian/ceph-quincy bookworm no-subscription" > /etc/apt/sources.list.d/ceph.list
5、更新列表检查是否有错误
apt update
apt upgrade
6、更换LXC国内源
cp /usr/share/perl5/PVE/APLInfo.pm /usr/share/perl5/PVE/APLInfo.pm_back
sed -i 's|http://download.proxmox.com|https://mirrors.tuna.tsinghua.edu.cn/proxmox|g' /usr/share/perl5/PVE/APLInfo.pm
重启服务
systemctl restart pvedaemon.service
7、PVE去除登录弹窗
sed -Ezi.bak "s/(Ext.Msg.show\(\{\s+title: gettext\('No valid sub)/void\(\{ \/\/\1/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && systemctl restart pveproxy.service
评论 (0)