proxmox mail garteway deletion lead to initramfs failed

MajRonin

Member
Jun 16, 2020
21
1
23
Hello,

I'm encountering an issue after removing proxmox-mail-gateway i guess : I am trying to install some packages like btop for example and i get this issue :
Code:
root@pbs1:~# apt install --fix-broken
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  pve-kernel-5.15.158-2-pve
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 400 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 51638 files and directories currently installed.)
Removing pve-kernel-5.15.158-2-pve (5.15.158-2) ...
Examining /etc/kernel/postrm.d.
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 5.15.158-2-pve /boot/vmlinuz-5.15.158-2-pve
update-initramfs: Deleting /boot/initrd.img-5.15.158-2-pve
run-parts: executing /etc/kernel/postrm.d/proxmox-auto-removal 5.15.158-2-pve /boot/vmlinuz-5.15.158-2-pve
/etc/kernel/postrm.d/proxmox-auto-removal: 4: .: cannot open /usr/share/proxmox-kernel-helper/scripts/functions: No such file
run-parts: /etc/kernel/postrm.d/proxmox-auto-removal exited with return code 2
Failed to process /etc/kernel/postrm.d at /var/lib/dpkg/info/pve-kernel-5.15.158-2-pve.postrm line 14.
dpkg: error processing package pve-kernel-5.15.158-2-pve (--remove):
 installed pve-kernel-5.15.158-2-pve package post-removal script subprocess returned error exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
 pve-kernel-5.15.158-2-pve
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@pbs1:~#

I verified, i'm in UEFI mode in case of asking.

I don't rellay konw what to do and a bit loss into this mess i created by removing this (needed ?) package...

Thank you all in advance.
 

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!