broken update

Merlin_of_Chaos

New Member
Nov 21, 2025
7
1
3
i updated other day and noticed today that noVNC was no longer working on all my VM's and containers. did a google search and it said to use the

apt --fix-broken install

the output of which came out as

root@vixen:~# apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
proxmox-kernel-6.8.12-10-pve-signed proxmox-kernel-6.8.12-17-pve-signed proxmox-kernel-6.8.12-18-pve-signed
0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
4 not fully installed or removed.
After this operation, 1,732 MB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 100280 files and directories currently installed.)
Removing proxmox-kernel-6.8.12-10-pve-signed (6.8.12-10) ...
Examining /etc/kernel/postrm.d.
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 6.8.12-10-pve /boot/vmlinuz-6.8.12-10-pve
/usr/sbin/update-initramfs: 301: getopt: not found

Usage: update-initramfs {-c|-d|-u} [-k version] [-v] [-b directory]

Options:
-k version Specify kernel version or 'all'
-c Create a new initramfs
-u Update an existing initramfs
-d Remove an existing initramfs
-b directory Set alternate boot directory
-v Be verbose

See update-initramfs(8) for further details.

run-parts: /etc/kernel/postrm.d/initramfs-tools exited with return code 2
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/proxmox-kernel-6.8.12-10-pve-signed.postrm line 15.
dpkg: error processing package proxmox-kernel-6.8.12-10-pve-signed (--remove):
installed proxmox-kernel-6.8.12-10-pve-signed package post-removal script subprocess returned error exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
proxmox-kernel-6.8.12-10-pve-signed
Processing was halted because there were too many errors.
Removing subscription nag from UI...
E: Sub-process /usr/bin/dpkg returned an error code (1)
any idea how to fix?
 
Removing subscription nag from UI...
E: Sub-process /usr/bin/dpkg returned an error code (1)
Your installation is very likely broken due to some third-party scripts modifying essential system files ..

Start by removing these and cleaning up the installation, then you can try running apt --fix-broken install again.
 
  • Like
Reactions: leesteken
i think i found that script but the command still isnt fixing things

EDIT: done a full reboot of the server and its still not working
 
Last edited:
Have you tried an apt update && apt dist-upgrade?

Sometimes regular apt upgrade can mess things up if there are disto changes that deal with dependancies.
 
  • Like
Reactions: Kingneutron
unfortunately that didnt work heres the output of that

root@vixen:~# apt update && apt dist-upgrade
Hit:1 http://deb.debian.org/debian bookworm InRelease
Get:2 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
Get:3 http://security.debian.org/debian-security bookworm-security InRelease [48.0 kB]
Hit:4 http://download.proxmox.com/debian/pve bookworm InRelease
Fetched 103 kB in 7s (14.7 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages will be REMOVED:
proxmox-kernel-6.8.12-18-pve-signed
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
4 not fully installed or removed.
Need to get 0 B/207 MB of archives.
After this operation, 577 MB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 100280 files and directories currently installed.)
Removing proxmox-kernel-6.8.12-18-pve-signed (6.8.12-18) ...
Examining /etc/kernel/postrm.d.
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 6.8.12-18-pve /boot/vmlinuz-6.8.12-18-pve
/usr/sbin/update-initramfs: 301: getopt: not found

Usage: update-initramfs {-c|-d|-u} [-k version] [-v] [-b directory]

Options:
-k version Specify kernel version or 'all'
-c Create a new initramfs
-u Update an existing initramfs
-d Remove an existing initramfs
-b directory Set alternate boot directory
-v Be verbose

See update-initramfs(8) for further details.

run-parts: /etc/kernel/postrm.d/initramfs-tools exited with return code 2
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/proxmox-kernel-6.8.12-18-pve-signed.postrm line 15.
dpkg: error processing package proxmox-kernel-6.8.12-18-pve-signed (--remove):
installed proxmox-kernel-6.8.12-18-pve-signed package post-removal script subprocess returned error exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
proxmox-kernel-6.8.12-18-pve-signed
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)

also from other checks i have been advised to make we have found that getopt is missing and tar has a segmentation fault. so its quite possible this proxmox has had it
 
  • Like
Reactions: Kingneutron
Can you try apt install util-linux and then apt dist-upgrade again?
The system seems to be missing the getopt utility, which is available through the util-linux package.

As a general advise: Don't run random/untrusted scripts off the internet.
 
if "tar" segfaults, that would indicate either memory or disk problems usually.. maybe try installing "debsums" and running "debsums -c", and run SMART and memtest (note that absence of failure in those tests doesn't mean there is no HW issue, it just means none was detected!)
 
  • Like
Reactions: Kingneutron