侧边栏壁纸
博主头像
MicroMatrix博主等级

曲则全,枉则直,洼则盈,敝则新,少则得,多则惑。是以圣人抱一为天下式。不自见,故明;不自是,故彰;不自伐,故有功;不自矜,故长。夫唯不争,故天下莫能与之争。古之所谓“曲则全”者,岂虚言哉!诚全而归之。

  • 累计撰写 80 篇文章
  • 累计创建 21 个标签
  • 累计收到 0 条评论

目 录CONTENT

文章目录

ProxmoxVE(PVE) 7.0配置国内软件源并删除订阅弹窗

蜗牛
2022-04-23 / 0 评论 / 0 点赞 / 7 阅读 / 4897 字 / 正在检测是否收录...

说明

由于PVE 7.0更换了Debian 11作为内核,软件源管理方式也发生了变化,因此原软件源配置方法已失效。

默认情况下是企业订阅版,如果不进行修改,在使用pveceph init进行ceph初始化安装时会破坏整个环境,请注意!

  • 登录各节点Shell控制台
  • **【重要】****将/etc/apt/sources.list.d/pve-enterprise.list文件内的唯一一条记录注释掉:
echo "#deb <https://enterprise.proxmox.com/debian/pve> bullseye pve-enterprise" > /etc/apt/sources.list.d/pve-enterprise.list

Proxmox软件源更换

中科大源(二选一):

wget <https://mirrors.ustc.edu.cn/proxmox/debian/proxmox-release-bullseye.gpg> -O /etc/apt/trusted.gpg.d/proxmox-release-bullseye.gpg

echo "deb <https://mirrors.ustc.edu.cn/proxmox/debian/pve> bullseye pve-no-subscription" > /etc/apt/sources.list.d/pve-no-subscription.list     #中科大源

echo "deb <https://mirrors.ustc.edu.cn/proxmox/debian/ceph-pacific> bullseye main" > /etc/apt/sources.list.d/ceph.list     #中科大源

sed -i.bak "s#<http://download.proxmox.com/debian#https://mirrors.ustc.edu.cn/proxmox/debian#g>" /usr/share/perl5/PVE/CLI/pveceph.pm     #中科大源

apt update && apt dist-upgrade     #更新软件,可不执行

Proxmox中文社区源(二选一):

wget <http://download.proxmox.wiki/debian/proxmox-release-bullseye.gpg> -O /etc/apt/trusted.gpg.d/proxmox-release-bullseye.gpg

echo "deb <http://download.proxmox.wiki/debian/pve> bullseye pve-no-subscription" > /etc/apt/sources.list.d/pve-no-subscription.list     #Proxmox中文社区源

echo "deb <https://download.proxmox.wiki/debian/ceph-pacific> bullseye main" > /etc/apt/sources.list.d/ceph.list     #Proxmox中文社区源

sed -i.bak "s#<http://download.proxmox.com/debian#https://download.proxmox.wiki/debian#g>" /usr/share/perl5/PVE/CLI/pveceph.pm     #Proxmox中文社区源

apt update && apt dist-upgrade     #更新软件,可不执行

Debian系统源更换

阿里Debian源(二选一):

sed -i.bak "s#ftp.debian.org/debian#mirrors.aliyun.com/debian#g" /etc/apt/sources.list     #阿里Debian源

sed -i "s#security.debian.org#mirrors.aliyun.com/debian-security#g" /etc/apt/sources.list     #阿里Debian源

apt update && apt dist-upgrade     #更新软件,可不执行

163-Debian源(二选一):

sed -i.bak "s#ftp.debian.org/debian#mirrors.163.com/debian#g" /etc/apt/sources.list     #163Debian源

sed -i "s#security.debian.org#mirrors.163.com/debian-security#g" /etc/apt/sources.list     #163Debian源

apt update && apt dist-upgrade     #更新软件,可不执行

删除订阅弹窗

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

# 执行完成后,浏览器Ctrl+F5强制刷新缓存
0

评论区