amdgpu-dkms: Failing to uninstall because of uninstalled old kernel

revision 4b2c14be663da13531ccabfa3be56f9178c9b524

raw

0-problem.txt

root@pixy:~# LC_ALL=C apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  amdgpu-dkms
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 514 MB disk space will be freed.
Do you want to continue? [Y/n] 
(Reading database ... 463484 files and directories currently installed.)
Removing amdgpu-dkms (1:6.10.5.60303-2119913.22.04) ...
update-initramfs: Generating /boot/initrd.img-6.1.0-32-amd64
grep: /boot/config-6.1.0-32-amd64: No such file or directory
W: zstd compression (CONFIG_RD_ZSTD) not supported by kernel, using gzip
grep: /boot/config-6.1.0-32-amd64: No such file or directory
E: gzip compression (CONFIG_RD_GZIP) not supported by kernel
update-initramfs: failed for /boot/initrd.img-6.1.0-32-amd64 with 1.
dpkg: error processing package amdgpu-dkms (--remove):
 installed amdgpu-dkms package post-removal script subprocess returned error exit status 1
dpkg: too many errors, stopping
Errors were encountered while processing:
 amdgpu-dkms
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
raw

1-solution.txt

root@pixy:~# rm /var/tmp/amdgpu-dkms-kernels
root@pixy:~# LC_ALL=C apt --fix-broken install

History