ProxmoxVE初次安装后更换国内源
ProxmoxVE初次安装后更换国内源
一个懒人更新debian源
修改文件的同时, 会创建一个.bak后缀的备份文件
1 | sed -i.bak 's|^deb http://ftp.debian.org|deb https://mirrors.ustc.edu.cn|g' /etc/apt/sources.list |
中科大Debian源
1 | sed -i 's|^deb http://security.debian.org|deb https://mirrors.ustc.edu.cn/debian-security|g' /etc/apt/sources.list |
更新PVE软件源
删除企业源
1 | rm -rf /etc/apt/sources.list.d/pve-enterprise.list |
屏蔽企业源
1 | mv /etc/apt/sources.list.d/pve-enterprise.list /etc/apt/sources.list.d/pve-enterprise.list.bak |
更换中科大源
1 | echo "deb https://mirrors.ustc.edu.cn/proxmox/debian/pve bookworm pve-no-subscription" > /etc/apt/sources.list.d/pve-no-subscription.list |
更新CEPH分布式源
1 | echo "deb https://mirrors.ustc.edu.cn/proxmox/debian/ceph-quincy bookworm no-subscription" > /etc/apt/sources.list.d/ceph.list |
修复https证书并更新软件源
1 | apt update && apt-get install -y apt-transport-https ca-certificates --fix-missing |
更新索引并升级安装软件包
1 | apt update && apt dist-upgrade |
更新LXC容器仓库员(CT)
1 | sed -i.bak "s#http://download.proxmox.com/images#https://mirrors.ustc.edu.cn/proxmox/images#g" /usr/share/perl5/PVE/APLInfo.pm |
删除无效订阅弹窗
1 | 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 |
其它常用源
1 | # 清华源 |
评论
匿名评论隐私政策