PBS in Synology VMM - Upgrade Fehler

berlon

Member
Apr 20, 2022
31
2
13
Hallo,
Mein PBS läuft in einer VMM von Synology.
Nun wollte ich wieder unter Administration -> Updates ein Upgrade durchführen.
Das funktioniert nicht.
Hier die Ausgaben:
Code:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libnss-systemd : Depends: systemd (= 252.31-1~deb12u1) but 252.30-1~deb12u2 is installed
 libpam-systemd : Depends: systemd (= 252.31-1~deb12u1) but 252.30-1~deb12u2 is installed
                  Recommends: dbus-user-session but it is not installed
 systemd-boot : Depends: libsystemd-shared (= 252.31-1~deb12u1) but 252.30-1~deb12u2 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@pbs:/#

Wenn ich nun den angegebenen Befehl apt --fix-broken install eingebe kommt folgende Ausgabe:
Code:
root@pbs:/# apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  libsystemd-shared libsystemd0 libudev1 systemd udev
Suggested packages:
  systemd-container systemd-homed systemd-userdbd systemd-resolved libtss2-esys-3.0.2-0
  libtss2-mu0 libtss2-rc0 polkitd | policykit-1
The following packages will be upgraded:
  libsystemd-shared libsystemd0 libudev1 systemd udev
5 upgraded, 0 newly installed, 0 to remove and 54 not upgraded.
4 not fully installed or removed.
Need to get 0 B/8,881 kB of archives.
After this operation, 10.2 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Reading changelogs... Done
dpkg: error processing package libssl3:amd64 (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
Errors were encountered while processing:
 libssl3:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@pbs:/#

Ich bekam zwischenzeitlich noch die Anregung den Befehl dpkg --configure -a anzuwenden.
Hierzu diese Ausgabe:
Code:
root@pbs:~# dpkg --configure -a
dpkg: error processing package libssl3:amd64 (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
dpkg: dependency problems prevent configuration of libnss-systemd:amd64:
 libnss-systemd:amd64 depends on systemd (= 252.31-1~deb12u1); however:
  Version of systemd on system is 252.30-1~deb12u2.

dpkg: error processing package libnss-systemd:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of systemd-boot:
 systemd-boot depends on libsystemd-shared (= 252.31-1~deb12u1); however:
  Version of libsystemd-shared:amd64 on system is 252.30-1~deb12u2.

dpkg: error processing package systemd-boot (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libpam-systemd:amd64:
 libpam-systemd:amd64 depends on systemd (= 252.31-1~deb12u1); however:
  Version of systemd on system is 252.30-1~deb12u2.

dpkg: error processing package libpam-systemd:amd64 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libssl3:amd64
 libnss-systemd:amd64
 systemd-boot
 libpam-systemd:amd64
root@pbs:~#

Gibt es einen Befehl um PBS einer "Reparaturinstallation! zu unterziehen um die Fehler zu beseitigen?
Ansonsten bräuchte ich euer geballtes Wissen da ich von Linux keine Ahnung habe.
Gruß
Bernd
 
Hallo Johannes,
danke für deine Antwort.
Habe deinen Befehl mal ausgeführt. Es werde 2 Pakete mit fehlenden abhängigkeiten aufgeführt.
Diese lassen sich aber nicht reinstallieren.
Auch der Reinstall von dpkg bleibt bei den beiden Paketen hängen.
Code:
root@pbs:~# apt-get install --reinstall libssl3
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libnss-systemd : Depends: systemd (= 252.31-1~deb12u1) but 252.30-1~deb12u2 is to be installed
 libpam-systemd : Depends: systemd (= 252.31-1~deb12u1) but 252.30-1~deb12u2 is to be installed
                  Recommends: dbus-user-session but it is not going to be installed
 systemd-boot : Depends: libsystemd-shared (= 252.31-1~deb12u1) but 252.30-1~deb12u2 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@pbs:~# apt-get install --reinstall libnss-systemd
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libnss-systemd : Depends: systemd (= 252.31-1~deb12u1) but 252.30-1~deb12u2 is to be installed
 libpam-systemd : Depends: systemd (= 252.31-1~deb12u1) but 252.30-1~deb12u2 is to be installed
                  Recommends: dbus-user-session but it is not going to be installed
 systemd-boot : Depends: libsystemd-shared (= 252.31-1~deb12u1) but 252.30-1~deb12u2 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@pbs:~# apt-get install --reinstall libpam-systemd
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libnss-systemd : Depends: systemd (= 252.31-1~deb12u1) but 252.30-1~deb12u2 is to be installed
 libpam-systemd : Depends: systemd (= 252.31-1~deb12u1) but 252.30-1~deb12u2 is to be installed
                  Recommends: dbus-user-session but it is not going to be installed
 systemd-boot : Depends: libsystemd-shared (= 252.31-1~deb12u1) but 252.30-1~deb12u2 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@pbs:~# apt-get install --reinstall dpkg
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libnss-systemd : Depends: systemd (= 252.31-1~deb12u1) but 252.30-1~deb12u2 is to be installed
 libpam-systemd : Depends: systemd (= 252.31-1~deb12u1) but 252.30-1~deb12u2 is to be installed
                  Recommends: dbus-user-session but it is not going to be installed
 systemd-boot : Depends: libsystemd-shared (= 252.31-1~deb12u1) but 252.30-1~deb12u2 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@pbs:~# apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  libsystemd-shared libsystemd0 libudev1 systemd udev
Suggested packages:
  systemd-container systemd-homed systemd-userdbd systemd-resolved libtss2-esys-3.0.2-0 libtss2-mu0 libtss2-rc0 polkitd | policykit-1
The following packages will be upgraded:
  libsystemd-shared libsystemd0 libudev1 systemd udev
5 upgraded, 0 newly installed, 0 to remove and 54 not upgraded.
4 not fully installed or removed.
Need to get 0 B/8,881 kB of archives.
After this operation, 10.2 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Reading changelogs... Done
dpkg: error processing package libssl3:amd64 (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
Errors were encountered while processing:
 libssl3:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@pbs:~#
 
Naja da steht ja welche Pakete kaputt sind und neu installiert werden müssen, ist halt Handarbeit. Wenn dir das zu mühsam wird, könntest du auch versuchen eine neue PBS anzulegen und die Backups aus der alten zu übernehmen, wie ist deren Datastore an die vm angebunden?
 
Die Datastore ist auch in der VM als Virtuelle Platte angelegt. Ein NFS Share funktioniert bei mir nicht.
Wie ich Eingangs schon geschrieben habe tendieren meine Linuxkenntnisse gegen Null.
Ich habe auch gesehen, das die Pakete libnss-systemd und libpam-systemd scheinbar defekt sind.
Ein reinstall (apt-get install --reinstall libnss-systemd und apt-get install --reinstall libpam-systemd) schlägt mit dem Verweis auf eben diese defekte Pakete fehl (Siehe oben angehängte Bildschirmausgabe). Also ein Kreis der sich nicht schließen lässt.

Eine Frage ist noch, ob das PBS Install-ISO eine Reparaturinstallation beinhaltet und wie diese gestartet wird.
 
Last edited:
Wie schaut denn die jeweils vollständige Ausgabe aus von?:
  • proxmox-backup-manager version --verbose
  • grep -r '' /etc/apt/sources.list* (* am Ende nicht vergessen!)
  • apt update
  • (apt full-upgrade)
 
Die Datastore ist auch in der VM als Virtuelle Platte angelegt. Ein NFS Share funktioniert bei mir nicht.

Erlaubt es die Synology diese Platte (nach Herunterfahren der VM) einer anderen VM zuzuweisen oder zu kopieren und diese neue Platte einer anderen VM zuzuweisen? Dann könntest du einen neuen PBS aufsetzen und dort den Datastore dann anhängen. Wäre vielleicht einfacher...
Wie ich Eingangs schon geschrieben habe tendieren meine Linuxkenntnisse gegen Null.

Gerade darum glaube ich, dass "neuinstallieren" am Ende einfacher und schneller gehen dürfte.
 
Hallo Neobin,
danke, das du dich mit einbringst. Dein Wunsch ist mir Befehl:
proxmox-backup-manager version --verbose
Code:
root@pbs:~# proxmox-backup-manager version --verbose
proxmox-backup                    3.3.0         running kernel: 6.8.4-2-pve
proxmox-backup-server             3.3.0-2       running version: 3.2.2    
proxmox-kernel-helper             8.1.0                                  
proxmox-kernel-6.8                6.8.12-4                                
proxmox-kernel-6.8.4-2-pve-signed 6.8.4-2                                
ifupdown2                         3.2.0-1+pmx11                          
libjs-extjs                       7.0.0-5                                
proxmox-backup-docs               3.3.0-1                                
proxmox-backup-client             3.3.0-1                                
proxmox-mail-forward              0.3.1                                  
proxmox-mini-journalreader        1.4.0                                  
proxmox-offline-mirror-helper     0.6.7                                  
proxmox-widget-toolkit            4.3.3                                  
pve-xtermjs                       5.3.0-3                                
smartmontools                     7.3-pve1                                
zfsutils-linux                    2.2.6-pve1                              
root@pbs:~#

grep -r '' /etc/apt/sources.list*
Code:
root@pbs:~# grep -r '' /etc/apt/sources.list*
/etc/apt/sources.list:deb http://deb.debian.org/debian bookworm main contrib
/etc/apt/sources.list:deb http://deb.debian.org/debian bookworm-updates main contrib
/etc/apt/sources.list:deb http://security.debian.org/debian-security bookworm-security main contrib
/etc/apt/sources.list.d/pbstest-for-beta.list:# deb http://download.proxmox.com/debian/pbs bookworm pbstest
/etc/apt/sources.list.d/pbs-install-repo.list:deb http://download.proxmox.com/debian/pbs bookworm pbs-no-subscription
/etc/apt/sources.list.d/pbs-enterprise.list:# deb https://enterprise.proxmox.com/debian/pbs bookworm pbs-enterprise
root@pbs:~#

apt update
Code:
oot@pbs:~# apt update
Hit:1 http://download.proxmox.com/debian/pbs bookworm InRelease
Hit:2 http://deb.debian.org/debian bookworm InRelease
Get:3 http://security.debian.org/debian-security bookworm-security InRelease [48.0 kB]
Get:4 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
Fetched 103 kB in 1s (103 kB/s)                          
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
59 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@pbs:~#

apt full-upgrade
Code:
root@pbs:~# apt full-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 libnss-systemd : Depends: systemd (= 252.31-1~deb12u1) but 252.30-1~deb12u2 is installed
 libpam-systemd : Depends: systemd (= 252.31-1~deb12u1) but 252.30-1~deb12u2 is installed
                  Recommends: dbus-user-session but it is not installed
 systemd-boot : Depends: libsystemd-shared (= 252.31-1~deb12u1) but 252.30-1~deb12u2 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@pbs:~#

Wenn ich hier nun apt --fix-broken install ausführe:
Code:
root@pbs:~# apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  libsystemd-shared libsystemd0 libudev1 systemd udev
Suggested packages:
  systemd-container systemd-homed systemd-userdbd systemd-resolved libtss2-esys-3.0.2-0 libtss2-mu0 libtss2-rc0 polkitd | policykit-1
The following packages will be upgraded:
  libsystemd-shared libsystemd0 libudev1 systemd udev
5 upgraded, 0 newly installed, 0 to remove and 54 not upgraded.
4 not fully installed or removed.
Need to get 0 B/8,881 kB of archives.
After this operation, 10.2 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Reading changelogs... Done
dpkg: error processing package libssl3:amd64 (--configure):
 package is in a very bad inconsistent state; you should
 reinstall it before attempting configuration
Errors were encountered while processing:
 libssl3:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@pbs:~#
Gerade darum glaube ich, dass "neuinstallieren" am Ende einfacher und schneller gehen dürfte.
Hast recht, würde schneller gehen. Aber ich versuche die Fehler zu verstehen und etwas zu lernen.
 
Last edited:
  • Like
Reactions: Johannes S

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!