码迷,mamicode.com
首页 > 其他好文 > 详细

proxmox不付费订阅要出麻烦

时间:2018-09-21 15:03:02      阅读:1739      评论:0      收藏:0      [点我收藏+]

标签:please   setting   erro   turn   color   perm   RoCE   ase   ceph   

前几天因事去北京,有兄弟反应,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 web 管理界面,连登录页面都访问不到了,悲催啊!

proxmox不付费订阅要出麻烦

标签:please   setting   erro   turn   color   perm   RoCE   ase   ceph   

原文地址:http://blog.51cto.com/sery/2178466

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!