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

revision e73bf6e0f71c9266a741a2887dc5a93cf7328bca

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)


root@pixy:~# apt purge linux-image-6.1.0-32-amd64
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Die folgenden Pakete werden ENTFERNT:
  amdgpu-dkms linux-image-6.1.0-32-amd64*
0 aktualisiert, 0 neu installiert, 2 zu entfernen und 0 nicht aktualisiert.
1 nicht vollständig installiert oder entfernt.
Nach dieser Operation werden 514 MB Plattenplatz freigegeben.
Möchten Sie fortfahren? [J/n] 
(Lese Datenbank ... 463484 Dateien und Verzeichnisse sind derzeit installiert.)
Entfernen von 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: Datei oder Verzeichnis nicht gefunden
W: zstd compression (CONFIG_RD_ZSTD) not supported by kernel, using gzip
grep: /boot/config-6.1.0-32-amd64: Datei oder Verzeichnis nicht gefunden
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: Fehler beim Bearbeiten des Paketes amdgpu-dkms (--remove):
 »installiertes post-removal-Skript des Paketes amdgpu-dkms«-Unterprozess gab den Fehlerwert 1 zurück
dpkg: Zu viele Fehler, Abbruch
Fehler traten auf beim Bearbeiten von:
 amdgpu-dkms
Bearbeitung wurde angehalten, da zu viele Fehler auftraten.
W: Can not find PkgVer for 'linux-image-6.1.0-32-amd64'
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