PVE 虚拟机主机 更换国内源以及解决无效订阅的问题
创始人
2025-01-19 19:33:15
0

1、PVE更换国内源

 注:本文以 pve 7.3.3 为例。

替换前建议先更新下证书,否则可能由于证书不可用导致 https 无法使用,进而无法下载所有软件。

apt install apt-transport-https ca-certificates

首先替换通用软件源, 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

 ctrl+x 再按Y,回车,就可以完成。

之后替换 pve 软件源,pve 镜像默认的 pve 软件源配置文件是 /etc/apt/sources.list.d/pve-enterprise.list ,备份后将其中内容替换为以下即可:(修改步骤同前面。)

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

最后更新下,速度很快:

apt-get update

修改 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

之后在 pve 网页端下载 CT Templates 速度就很快了。

2、去除无效订阅

首先你可以登录shh工具,下载proxmoxlib.js这个js文件。 

在这个路径为:/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js,用编辑工具搜索“data.status” 

 修改成

if (false) {

文件修改后保存上传,执行 systemctl restart pveproxy 命令重启网页服务

systemctl restart pveproxy

相关内容

热门资讯

科普透视!wpk刷入池率脚本,... 科普透视!wpk刷入池率脚本,微乐自建房怎么提高运气,绝活儿教程(有挂头条)-哔哩哔哩该软件可以轻松...
网友热议!多乐小程序游戏辅助器... 网友热议!多乐小程序游戏辅助器,创思维激k辅助器视频,经验教程(真的有挂)-哔哩哔哩1、多乐小程序游...
现有说明如下!智星德州插件20... 现有说明如下!智星德州插件2024最新版,漳州老友辅助,绝活儿教程(有挂总结)-哔哩哔哩1、让任何用...
科普透视!德州局怎么透视,收i... 科普透视!德州局怎么透视,收i就微乐小程序游戏破解器,步骤教程(有挂实锤)-哔哩哔哩1、上手简单,内...
现有说明如下!陕西三代陕西三代... 现有说明如下!陕西三代陕西三代辅助器免费使用,广东雀神智能插件,方式教程(有挂细节)-哔哩哔哩运陕西...
刚刚!poker world辅... 刚刚!poker world辅助器,闲逸辅助功能在哪,积累教程(有挂实锤)-哔哩哔哩1、闲逸辅助功能...
解谜透视!德普之星怎么设置埋牌... 解谜透视!德普之星怎么设置埋牌,微乐a3纸牌有脚本,阶段教程(有挂秘诀)-哔哩哔哩1、该软件可以轻松...
针对!微乐江西小程序辅助器免费... 针对!微乐江西小程序辅助器免费,麻友圈插件,课程教程(有挂分享)-哔哩哔哩1、不需要AI权限,帮助你...
透视软件!德州真人透视脚本,四... 您好,德州真人透视脚本这款游戏可以开挂的,确实是有挂的,需要了解加去威信【485275054】很多玩...
了解透视!pokemmo手机版... 了解透视!pokemmo手机版脚本,微乐小程序多乐辅助器,资料教程(有人有挂)-哔哩哔哩pokemm...