当前位置:   article > 正文

ProxmoxVE(PVE) 8配置国内软件源并删除订阅弹窗_proxmox ve 8.1 国内源

proxmox ve 8.1 国内源

因PVE8.0更换了Debian12作为内核,软件源管理方式也发生了变更,故原软件源配置方法已失效。

默认是企业订阅版,如果不做修改,在使用 pveceph init 进行 ceph 初始化安装的时候会将整个环境破坏,切记!

PS:建议使用SHELL客户端操作。

登陆各节点Shell控制台
【重要】将/etc/apt/sources.list.d/pve-enterprise.list 文件删除:

rm -rf /etc/apt/sources.list.d/pve-enterprise.list

Proxmox软件源更换

南大NJU源(选一个):

  1. echo "deb https://mirrors.nju.edu.cn/proxmox/debian bookworm pve-no-subscription" > /etc/apt/sources.list.d/pve-no-subscription.list
  2. apt update && apt dist-upgrade #更新软件,可不执行

中科大源(选一个):

  1. echo "deb https://mirrors.ustc.edu.cn/proxmox/debian/pve bookworm pve-no-subscription" > /etc/apt/sources.list.d/pve-no-subscription.list
  2. apt update && apt dist-upgrade #更新软件,可不执行

其他可选源:

  1. # 清华Tuna源
  2. echo "deb https://mirrors.tuna.tsinghua.edu.cn/proxmox/debian bookworm pve-no-subscription" > /etc/apt/sources.list.d/pve-no-subscription.list

Debian系统源更换

阿里Debian源(选一个):

  1. sed -i.bak "s#ftp.debian.org/debian#mirrors.aliyun.com/debian#g" /etc/apt/sources.list #阿里Debian源
  2. sed -i "s#security.debian.org#mirrors.aliyun.com/debian-security#g" /etc/apt/sources.list #阿里Debian源
  3. apt update && apt-get install -y apt-transport-https ca-certificates --fix-missing

华为Debian源(选一个):

  1. sed -i.bak "s#http://ftp.debian.org#https://repo.huaweicloud.com#g" /etc/apt/sources.list #华为Debian源
  2. sed -i "s#http://security.debian.org#https://repo.huaweicloud.com/debian-security#g" /etc/apt/sources.list #华为Debian源
  3. apt update && apt-get install -y apt-transport-https ca-certificates --fix-missing

163-Debian源(选一个):

  1. sed -i.bak "s#ftp.debian.org/debian#mirrors.163.com/debian#g" /etc/apt/sources.list #163Debian源
  2. sed -i "s#security.debian.org#mirrors.163.com/debian-security#g" /etc/apt/sources.list #163Debian源
  3. apt update && apt-get install -y apt-transport-https ca-certificates --fix-missing

LXC仓库源更换

南大NJU源(选一个):

  1. sed -i.bak "s#http://download.proxmox.com/images#https://mirrors.nju.edu.cn/proxmox/images#g" /usr/share/perl5/PVE/APLInfo.pm
  2. wget -O /var/lib/pve-manager/apl-info/mirrors.nju.edu.cn https://mirrors.nju.edu.cn/proxmox/images/aplinfo-pve-7.dat
  3. systemctl restart pvedaemon

中科大源(选一个):

  1. sed -i.bak "s#http://download.proxmox.com/images#https://mirrors.ustc.edu.cn/proxmox/images#g" /usr/share/perl5/PVE/APLInfo.pm
  2. wget -O /var/lib/pve-manager/apl-info/mirrors.ustc.edu.cn https://mirrors.ustc.edu.cn/proxmox/images/aplinfo-pve-7.dat
  3. systemctl restart pvedaemon

CEPH源更换

  1. echo "deb https://mirrors.ustc.edu.cn/proxmox/debian/ceph-quincy bookworm no-subscription" > /etc/apt/sources.list.d/ceph.list #中科大源
  2. sed -i.bak "s#http://download.proxmox.com/debian#https://mirrors.ustc.edu.cn/proxmox/debian#g" /usr/share/perl5/PVE/CLI/pveceph.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
  2. # 执行完成后,浏览器Ctrl+F5强制刷新缓存
声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号