[SOLVED] Installation completely broken

Zamana

Renowned Member
Dec 20, 2015
78
0
71
56
Hi!

I was using proxmox normally until i did a reboot and after that the installation seems completely broken.

The first sympton was the pve-manager, that wasn't listening on 8006 port. To summarize, that's the situation right now:

Code:
$ apt update
$ apt upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
7 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up pve-cluster (5.0-30) ...
Failed to retrieve unit: No such method 'GetUnit'
Failed to retrieve unit: No such method 'GetUnit'
Failed to start pve-ha-lrm.service: Unknown unit: pve-ha-lrm.service
See system logs and 'systemctl status pve-ha-lrm.service' for details.
dpkg: error processing package pve-cluster (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of pve-firewall:
 pve-firewall depends on pve-cluster; however:
  Package pve-cluster is not configured yet.

dpkg: error processing package pve-firewall (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libpve-guest-common-perl:
 libpve-guest-common-perl depends on pve-cluster; however:
  Package pve-cluster is not configured yet.

dpkg: error processing package libpve-guest-common-perl (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of qemu-server:
 qemu-server depends on libpve-guest-common-perl; however:
  Package libpve-guest-common-perl is not configured yet.
 qemu-server depends on pve-cluster; however:
  Package pve-cluster is not configured yet.
 qemu-server depends on pve-firewall; however:
  Package pve-firewall is not configured yet.

dpkg: error processing package qemu-server (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libpve-storage-perl:
 libpve-storage-perl depends on pve-cluster; however:
  Package pve-cluster is not configured yet.

dpkg: error processing package libpve-storage-perl (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of pve-manager:
 pve-manager depends on libpve-guest-common-perl (>= 2.0-14); however:
  Package libpve-guest-common-perl is not configured yet.
 pve-manager depends on libpve-storage-perl (>= 5.0-18); however:
  Package libpve-storage-perl is not configured yet.
 pve-manager depends on pve-cluster (>= 5.0-27); however:
  Package pve-cluster is not configured yet.
 pve-manager depends on pve-firewall; however:
  Package pve-firewall is not configured yet.
 pve-manager depends on qemu-server (>= 5.0-24); however:
  Package qemu-server is not configured yet.

dpkg: error processing package pve-manager (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of pve-container:
 pve-container depends on libpve-guest-common-perl; however:
  Package libpve-guest-common-perl is not configured yet.
 pve-container depends on libpve-storage-perl (>= 5.0-18); however:
  Package libpve-storage-perl is not configured yet.
 pve-container depends on pve-cluster (>= 4.0-8); however:
  Package pve-cluster is not configured yet.

dpkg: error processing package pve-container (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent processing triggers for pve-ha-manager:
 pve-ha-manager depends on pve-cluster (>= 3.0-17); however:
  Package pve-cluster is not configured yet.
 pve-ha-manager depends on qemu-server; however:
  Package qemu-server is not configured yet.

dpkg: error processing package pve-ha-manager (--configure):
 dependency problems - leaving triggers unprocessed
Errors were encountered while processing:
 pve-cluster
 pve-firewall
 libpve-guest-common-perl
 qemu-server
 libpve-storage-perl
 pve-manager
 pve-container
 pve-ha-manager
E: Sub-process /usr/bin/dpkg returned an error code (1)

$ dpkg -C
The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
 libpve-guest-common-perl Proxmox VE common guest-related modules
 libpve-storage-perl  Proxmox VE storage management library
 pve-container        Proxmox VE Container management tool
 pve-firewall         Proxmox VE Firewall
 pve-manager          Proxmox Virtual Environment Management Tools
 qemu-server          Qemu Server Tools

The following packages are only half configured, probably due to problems
configuring them the first time.  The configuration should be retried using
dpkg --configure <package> or the configure menu option in dselect:
 pve-cluster          Cluster Infrastructure for Proxmox Virtual Environment

The following packages have been triggered, but the trigger processing
has not yet been done.  Trigger processing can be requested using
dselect or dpkg --configure --pending (or dpkg --triggers-only):
 pve-ha-manager       Proxmox VE HA Manager

The question is that I'm locked down. Everything I tried to reinstall/reconfigure the missing/unconfigured packages does not work.

Here is my /etc/apt/sources.list.d:
Code:
deb http://download.proxmox.com/debian/pve stretch pve-no-subscription

Proxmox 5.2

Thanks for any help.
 
Hi!

Same problem:

Code:
apt-get install proxmox-ve
Reading package lists... Done
Building dependency tree
Reading state information... Done
proxmox-ve is already the newest version (5.2-2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
7 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Setting up pve-cluster (5.0-30) ...
Failed to retrieve unit: No such method 'GetUnit'
Failed to retrieve unit: No such method 'GetUnit'
Failed to start pve-ha-lrm.service: Unknown unit: pve-ha-lrm.service
See system logs and 'systemctl status pve-ha-lrm.service' for details.
dpkg: error processing package pve-cluster (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of pve-firewall:
 pve-firewall depends on pve-cluster; however:
  Package pve-cluster is not configured yet.
(...)

I'm locked down in a catch 22 with apt/dpkg...
 
Code:
 $ dpkg --configure pve-manager

dpkg: dependency problems prevent configuration of pve-manager:
 pve-manager depends on libpve-guest-common-perl (>= 2.0-14); however:
  Package libpve-guest-common-perl is not configured yet.
 pve-manager depends on libpve-storage-perl (>= 5.0-18); however:
  Package libpve-storage-perl is not configured yet.
 pve-manager depends on pve-cluster (>= 5.0-27); however:
  Package pve-cluster is not configured yet.
 pve-manager depends on pve-container (>= 2.0-21); however:
  Package pve-container is not configured yet.
 pve-manager depends on pve-firewall; however:
  Package pve-firewall is not configured yet.
 pve-manager depends on qemu-server (>= 5.0-24); however:
  Package qemu-server is not configured yet.

dpkg: error processing package pve-manager (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 pve-manager
 
The problem is only with Proxmox packages, because I can install other packages with no problem.

It seems some kind of recursive dependency...
 
The problem is only with Proxmox packages, because I can install other packages with no problem.

It seems some kind of recursive dependency...

Why recursive (cant see that)? TRy to configure packages individually, start with libpve-guest-common-perl ...

or maybe just

# dpkg --configure -a
 
Solved.

In my despair to restore the system I didn't take notes of the step by step in a detailed way. And even if I had took, they would not be accurate, because some commands failed in a first attempt but worked after the fourth or fifth tentative after I done three or four changes (and I can't know for sure which one worked after all).

Anyway, here are the key steps, the macro vision of the procedure:

1) I focused on the 6, 7 and sometimes 8 packages that was causing trouble
  • pve-cluster
  • pve-ha-manager
  • pve-container
  • pve-manager
  • libpve-storage-perl
  • qemu-server
  • libpve-guest-common-perl
  • pve-firewall
  • proxmox-ve

2) Then I got the latest & greatest debian packages of all of them from this source:
http://download.proxmox.com/debian/pve/dists/stretch/pve-no-subscription/binary-amd64/

3) Then I tried to install all of them with dpkg -i *.deb. It almost worked. I realized that 2 of them was preventing the others to get installed: proxmox-ve and pve-manager. So I excluded them from the list, and the list of packages with problems down to only these 2.

4) After this I fought with proxmox-ve and pve-manager to get them installed, and finally solved by removing the *.postinst files from /var/lib/dpkg/info/. This did let me install them with apt.

And after a reboot, everything worked fine.

I hope that this will help someone in the future, if this eventually happen again.

Thanks for all that tried to help.

Regards.
 
Thank you for taking me to tracks.. This is how i fixed this problem;
mv /var/lib/dpkg/info/pve-manager.postinst /tmp/ mv /var/lib/dpkg/info/proxmox-ve.postinst /tmp/ apt-get install proxmox-ve mv /tmp/*postinst //var/lib/dpkg/info/
 
  • Like
Reactions: mafen
esto funciono para mi:

deben editar
nano /etc/apt/sources.list


comentar las lineas y reemplazar por estas lineas

deb http://ftp.debian.org/debian stretch main contrib
# PVE pve-no-subscription repository provided by proxmox.com,
# NOT recommended for production use
deb http://download.proxmox.com/debian/pve stretch pve-no-subscription
# security updates
deb http://security.debian.org stretch/updates main contrib

reiniciar

esto puede ayudar mas

https://forum.proxmox.com/threads/pveceph-command-not-found.51023/
https://pve.proxmox.com/wiki/Package_Repositories
https://pve-user.pve.proxmox.narkive.com/IlrbMLHt/upgrade-from-pve-manager-4-1-22-to-4-1-33
https://forum.proxmox.com/threads/webgui-is-not-working.32017/
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!