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}'\n");
      unlink $check_file;
    } else {
      $log->("!! WARNING !!\n");
      $log->("You are attempting to remove the meta-package '${check_package}'!\n");
      $log->("\n");
      $log->("If you really you want to permanently remove '${check_package}' from your system, run the following command\n")
;
      $log->("\ttouch '${check_file}'\n");
      $log->("and repeat your apt-get/apt invocation.\n");
      $log->("\n");
      $log->("If you are unsure why '$check_package' would be removed, please verify\n");
      $log->("\t- your APT repository settings\n");
      $log->("\t- that you are using 'apt-get dist-upgrade' or 'apt full-upgrade' to upgrade your system\n");
      $cleanup->(1);
    }
  }

再执行pveceph install ,不报错了。但等执行完,pve相关程序都给干掉了!
proxmox不付费订阅要出麻烦_第1张图片
proxmox不付费订阅要出麻烦_第2张图片
proxmox不付费订阅要出麻烦_第3张图片
切换到proxmox web 管理界面,连登录页面都访问不到了,悲催啊!

你可能感兴趣的:(proxmox不付费订阅要出麻烦)