<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed><type>rich</type><version>1.0</version><provider_name>phorkie</provider_name><provider_url>https://p.cweiske.de/</provider_url><title>amdgpu-dkms: Failing to uninstall because of uninstalled old kernel</title><author_name>Christian Weiske</author_name><cache_age>86400</cache_age><width>900</width><height>900</height><html>&lt;!-- embedding all files of https://p.cweiske.de/973 --&gt;
&lt;link rel="stylesheet" href="https://p.cweiske.de/css/embed.css"/&gt;
&lt;div class="phork" id="973"&gt;
    &lt;div class="phork-file"&gt;
 &lt;div class="phork-content"&gt;
  &lt;div class="code"&gt;&lt;pre class="txt"&gt;root@pixy:~# LC_ALL=C apt --fix-broken install&#13;
Reading package lists... Done&#13;
Building dependency tree... Done&#13;
Reading state information... Done&#13;
The following packages will be REMOVED:&#13;
  amdgpu-dkms&#13;
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.&#13;
1 not fully installed or removed.&#13;
After this operation, 514 MB disk space will be freed.&#13;
Do you want to continue? [Y/n] &#13;
(Reading database ... 463484 files and directories currently installed.)&#13;
Removing amdgpu-dkms (1:6.10.5.60303-2119913.22.04) ...&#13;
update-initramfs: Generating /boot/initrd.img-6.1.0-32-amd64&#13;
grep: /boot/config-6.1.0-32-amd64: No such file or directory&#13;
W: zstd compression (CONFIG_RD_ZSTD) not supported by kernel, using gzip&#13;
grep: /boot/config-6.1.0-32-amd64: No such file or directory&#13;
E: gzip compression (CONFIG_RD_GZIP) not supported by kernel&#13;
update-initramfs: failed for /boot/initrd.img-6.1.0-32-amd64 with 1.&#13;
dpkg: error processing package amdgpu-dkms (--remove):&#13;
 installed amdgpu-dkms package post-removal script subprocess returned error exit status 1&#13;
dpkg: too many errors, stopping&#13;
Errors were encountered while processing:&#13;
 amdgpu-dkms&#13;
Processing was halted because there were too many errors.&#13;
E: Sub-process /usr/bin/dpkg returned an error code (1)&#13;
&#13;
&#13;
root@pixy:~# apt purge linux-image-6.1.0-32-amd64&#13;
Paketlisten werden gelesen… Fertig&#13;
Abhängigkeitsbaum wird aufgebaut… Fertig&#13;
Statusinformationen werden eingelesen… Fertig&#13;
Die folgenden Pakete werden ENTFERNT:&#13;
  amdgpu-dkms linux-image-6.1.0-32-amd64*&#13;
0 aktualisiert, 0 neu installiert, 2 zu entfernen und 0 nicht aktualisiert.&#13;
1 nicht vollständig installiert oder entfernt.&#13;
Nach dieser Operation werden 514 MB Plattenplatz freigegeben.&#13;
Möchten Sie fortfahren? [J/n] &#13;
(Lese Datenbank ... 463484 Dateien und Verzeichnisse sind derzeit installiert.)&#13;
Entfernen von amdgpu-dkms (1:6.10.5.60303-2119913.22.04) ...&#13;
update-initramfs: Generating /boot/initrd.img-6.1.0-32-amd64&#13;
grep: /boot/config-6.1.0-32-amd64: Datei oder Verzeichnis nicht gefunden&#13;
W: zstd compression (CONFIG_RD_ZSTD) not supported by kernel, using gzip&#13;
grep: /boot/config-6.1.0-32-amd64: Datei oder Verzeichnis nicht gefunden&#13;
E: gzip compression (CONFIG_RD_GZIP) not supported by kernel&#13;
update-initramfs: failed for /boot/initrd.img-6.1.0-32-amd64 with 1.&#13;
dpkg: Fehler beim Bearbeiten des Paketes amdgpu-dkms (--remove):&#13;
 »installiertes post-removal-Skript des Paketes amdgpu-dkms«-Unterprozess gab den Fehlerwert 1 zurück&#13;
dpkg: Zu viele Fehler, Abbruch&#13;
Fehler traten auf beim Bearbeiten von:&#13;
 amdgpu-dkms&#13;
Bearbeitung wurde angehalten, da zu viele Fehler auftraten.&#13;
W: Can not find PkgVer for &amp;#039;linux-image-6.1.0-32-amd64&amp;#039;&#13;
E: Sub-process /usr/bin/dpkg returned an error code (1)&#13;
&lt;/pre&gt;&lt;/div&gt;

 &lt;/div&gt;
 &lt;div class="phork-meta"&gt;
  &lt;a href="https://p.cweiske.de/973/rev-raw/e73bf6e0f71c9266a741a2887dc5a93cf7328bca/0-problem.txt" style="float: right"&gt;view raw source&lt;/a&gt;
  &lt;a href="https://p.cweiske.de/973#0-problem.txt"&gt;0-problem.txt&lt;/a&gt;
 &lt;/div&gt;
&lt;/div&gt;
    &lt;div class="phork-file"&gt;
 &lt;div class="phork-content"&gt;
  &lt;div class="code"&gt;&lt;pre class="txt"&gt;root@pixy:~# rm /var/tmp/amdgpu-dkms-kernels&#13;
root@pixy:~# LC_ALL=C apt --fix-broken install&#13;
&lt;/pre&gt;&lt;/div&gt;

 &lt;/div&gt;
 &lt;div class="phork-meta"&gt;
  &lt;a href="https://p.cweiske.de/973/rev-raw/e73bf6e0f71c9266a741a2887dc5a93cf7328bca/1-solution.txt" style="float: right"&gt;view raw source&lt;/a&gt;
  &lt;a href="https://p.cweiske.de/973#1-solution.txt"&gt;1-solution.txt&lt;/a&gt;
 &lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</html></oembed>
