解决Proxmox VE 7.4更换国内源以及订阅问题

本文详细介绍了如何更换ProxmoxVE为国内源,包括更新证书、替换通用软件源、PVE软件源、CTTemplates源的修改,以及解决PVE未订阅问题的过程,最后涉及重启相关服务以确保更改生效。
摘要由CSDN通过智能技术生成

1、更换Proxmox VE为国内源

        (1)替换前更新证书,否则由于证书的问题导致https无法使用

apt install apt-transport-https ca-certificates

root@pve-node1:~# apt install apt-transport-https ca-certificates
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'apt' instead of 'apt-transport-https'
apt is already the newest version (2.2.4).
ca-certificates is already the newest version (20210119).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

        (2)替换通用软件源,Debian的软件源配置文件  /etc/apt/sources.list,将其备份后修改

# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free

# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free

# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free

deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free

# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free

deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free

# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free

         (3)替换完成后,替换PVE软件,PVE镜像默认的PVE软件源配置/etc/apt/sources.list.d/pve-enterprise.list,备份后修改以下内容:

deb https://mirrors.tuna.tsinghua.edu.cn/proxmox/debian bullseye pve-no-subscription

         (4)更换完成后,更新

root@pve-node1:~# apt-get update

        (5)修改 CT Templates (LXC 容器) 源

/usr/share/perl5/PVE/APLInfo.pm 文件中默认的源地址 http://download.proxmox.com 替换为 https://mirrors.tuna.tsinghua.edu.cn/proxmox 即可。

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

针对 /usr/share/perl5/PVE/APLInfo.pm 文件的修改,重启后生效。

systemctl restart pvedaemon.service

 

2、解决PVE的未订阅问题

        (1)在该文件/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js,使用编辑工具搜索“date.status”

将该内容修改为

if(false)

修改完成后,重启网页服务

systemctl restart pveproxy

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值