proxmox不付费订阅要出麻烦
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了proxmox不付费订阅要出麻烦相关的知识,希望对你有一定的参考价值。
前几天因事去北京,有兄弟反应,proxmox安装pveceph出现警告,具体信息如下:
W: (pve-apt-hook) !! WARNING !!
W: (pve-apt-hook) You are attempting to remove the meta-package ‘proxmox-ve‘!
W: (pve-apt-hook)
W: (pve-apt-hook) If you really you want to permanently remove ‘proxmox-ve‘ from your system, run the following command
W: (pve-apt-hook) touch ‘/please-remove-proxmox-ve‘
W: (pve-apt-hook) and repeat your apt-get/apt invocation.
W: (pve-apt-hook)
W: (pve-apt-hook) If you are unsure why ‘proxmox-ve‘ would be removed, please verify
W: (pve-apt-hook) - your APT repository settings
W: (pve-apt-hook) - that you are using ‘apt-get dist-upgrade‘ or ‘apt full-upgrade‘ to upgrade your system
E: Sub-process /usr/share/proxmox-ve/pve-apt-hook returned an error code (1)
E: Failure running script /usr/share/proxmox-ve/pve-apt-hook
因为当时没实验环境,暂时没发测试。今早,又有另外的兄弟发信息说这个问题,赶紧开机测试,果然如此!
既然提示“Failure running script /usr/share/proxmox-ve/pve-apt-hook”,那好,打开这个文件看一下,是个perl脚本,做了个备份,然后试着删掉如下行:
if ($pkg eq ‘proxmox-ve‘ && $action eq ‘**REMOVE**‘) {
if (-e $check_file) {
$log->("‘$check_file‘ exists, proceeding with removal of package ‘${check_package}‘
");
unlink $check_file;
} else {
$log->("!! WARNING !!
");
$log->("You are attempting to remove the meta-package ‘${check_package}‘!
");
$log->("
");
$log->("If you really you want to permanently remove ‘${check_package}‘ from your system, run the following command
")
;
$log->(" touch ‘${check_file}‘
");
$log->("and repeat your apt-get/apt invocation.
");
$log->("
");
$log->("If you are unsure why ‘$check_package‘ would be removed, please verify
");
$log->(" - your APT repository settings
");
$log->(" - that you are using ‘apt-get dist-upgrade‘ or ‘apt full-upgrade‘ to upgrade your system
");
$cleanup->(1);
}
}
再执行pveceph install ,不报错了。但等执行完,pve相关程序都给干掉了!
切换到proxmox web 管理界面,连登录页面都访问不到了,悲催啊!
以上是关于proxmox不付费订阅要出麻烦的主要内容,如果未能解决你的问题,请参考以下文章