Having problems with the linux-firmware


<span style="color:#323232;">debconf: unable to initialize frontend: Dialog
</span><span style="color:#323232;">debconf: (Dialog frontend requires a screen at least 13 lines tall and 31 columns wide.)
</span><span style="color:#323232;">debconf: falling back to frontend: Readline
</span><span style="color:#323232;">Setting up linux-firmware (20230629.gitee91452d-0ubuntu1+system76~1689594960~22.04~9d563bf) ...
</span><span style="color:#323232;">update-initramfs: Generating /boot/initrd.img-6.2.6-76060206-generic
</span><span style="color:#323232;">cp: cannot stat '/lib/klibc-*.so': No such file or directory
</span><span style="color:#323232;">E: /usr/share/initramfs-tools/hooks/klibc-utils failed with return 1.
</span><span style="color:#323232;">update-initramfs: failed for /boot/initrd.img-6.2.6-76060206-generic with 1.
</span><span style="color:#323232;">dpkg: error processing package linux-firmware (--configure):
</span><span style="color:#323232;"> installed linux-firmware package post-installation script subprocess returned error exit status 1
</span><span style="color:#323232;">Errors were encountered while processing:
</span><span style="color:#323232;"> linux-firmware
</span><span style="color:#323232;">E: Sub-process /usr/bin/dpkg returned an error code (1)
</span>

This happens when trying to update things in apt in PopOS. Tell me if more info is needed. I hope I posted to the right community.>>>

AapoL,

Porblem solved! I downloaded the libklibc package manually.

AapoL,

There’s also an another thread on the PopOS community.

Illecors,

Have you wiped your /lib/?

Illecors,

Also please increase the window size of your terminal.

And use tripe backticks to paste terminal output/code. Makes it easier to read.

Example:


debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend requires a screen at least 13 lines tall and 31 columns wide.) debconf: falling back to frontend: Readline Setting up linux-firmware (20230629.gitee91452d-0ubuntu1+system76168959496022.04~9d563bf) … update-initramfs: Generating /boot/initrd.img-6.2.6-76060206-generic cp: cannot stat ‘/lib/klibc-*.so’: No such file or directory E: /usr/share/initramfs-tools/hooks/klibc-utils failed with return 1. update-initramfs: failed for /boot/initrd.img-6.2.6-76060206-generic with 1. dpkg: error processing package linux-firmware (–configure): installed linux-firmware package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: linux-firmware E: Sub-process /usr/bin/dpkg returned an error code (1)

would result in


<span style="color:#323232;">debconf: unable to initialize frontend: Dialog debconf: (Dialog frontend requires a screen at least 13 lines tall and 31 columns wide.) 
</span><span style="color:#323232;">debconf: falling back to frontend: Readline Setting up linux-firmware (20230629.gitee91452d-0ubuntu1+system76168959496022.04~9d563bf) … 
</span><span style="color:#323232;">update-initramfs: Generating /boot/initrd.img-6.2.6-76060206-generic cp: cannot stat ‘/lib/klibc-*.so’: No such file or directory E: /usr/share/initramfs-tools/hooks/klibc-utils failed with return 1. update-initramfs: failed for /boot/initrd.img-6.2.6-76060206-generic with 1. dpkg: error processing package linux-firmware (–configure): installed linux-firmware package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: linux-firmware E: Sub-process /usr/bin/dpkg returned an error code (1)
</span>
AapoL,

Have you wiped your /lib/?

Intentionally or by mistake? Do you mean that if I would have wiped it that would result in apt not finding it? If you mean that then I haven’t intentionally at least. There is things there so it should be good. Also what do you mean by please increase the window size of your terminal?

Illecors,

debconf: (Dialog frontend requires a screen at least 13 lines tall and 31 columns wide.)

This suggests your terminal is too small for debconf output. Could be missing some important log output.

If your /lib is intact, then you might need to reinstall initramfs-tools.

Check if the missing file exits:


<span style="color:#323232;">ls -la /lib/klibc-*.so
</span>

If it does - it could a permission issue. dpkg-reconfigure initramfs-tools might fix it.

If it doesn’t - try reinstalling initramfs-tools:


<span style="color:#323232;">sudo apt-get install --reinstall initramfs-tools
</span>
AapoL,

Thanks! Yea it seems like initramfs-tools is broken.


<span style="color:#323232;">aapo@pop-os:~$ sudo dpkg-reconfigure initramfs-tools
</span><span style="color:#323232;">/usr/sbin/dpkg-reconfigure: initramfs-tools is broken or not fully installed
</span>

<span style="color:#323232;">aapo@pop-os:~$ sudo apt-get install --reinstall initramfs-tools
</span><span style="color:#323232;">Reading package lists... Done
</span><span style="color:#323232;">Building dependency tree... Done
</span><span style="color:#323232;">Reading state information... Done
</span><span style="color:#323232;">0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 169 not upgraded.
</span><span style="color:#323232;">55 not fully installed or removed.
</span><span style="color:#323232;">After this operation, 0 B of additional disk space will be used.
</span><span style="color:#323232;">E: Internal Error, No file name for initramfs-tools:amd64
</span>

The problem is that apt can’t find the initramfs-tools file. I don’t think I have seen that error before.

Illecors,

OK, this is concerning. Try downloading the installer and installing it manually:


<span style="color:#323232;">sudo apt download initramfs-tools
</span><span style="color:#323232;">sudo dpkg -i initramfs-tools.whatever.is.the.actual.name.deb
</span>
AapoL,

<span style="color:#323232;">aapo@pop-os:~$ sudo dpkg -i initramfs-tools_0.140ubuntu13.2_all.deb
</span><span style="color:#323232;">(Reading database ... 292735 files and directories currently installed.)
</span><span style="color:#323232;">Preparing to unpack initramfs-tools_0.140ubuntu13.2_all.deb ...
</span><span style="color:#323232;">Unpacking initramfs-tools (0.140ubuntu13.2) over (0.140ubuntu13.2) ...
</span><span style="color:#323232;">Setting up initramfs-tools (0.140ubuntu13.2) ...
</span><span style="color:#323232;">update-initramfs: deferring update (trigger activated)
</span><span style="color:#323232;">Processing triggers for man-db (2.10.2-1) ...
</span><span style="color:#323232;">Processing triggers for initramfs-tools (0.140ubuntu13.2) ...
</span><span style="color:#323232;">update-initramfs: Generating /boot/initrd.img-6.2.6-76060206-generic
</span><span style="color:#323232;">cp: cannot stat '/lib/klibc-*.so': No such file or directory
</span><span style="color:#323232;">E: /usr/share/initramfs-tools/hooks/klibc-utils failed with return 1.
</span><span style="color:#323232;">update-initramfs: failed for /boot/initrd.img-6.2.6-76060206-generic with 1.
</span><span style="color:#323232;">dpkg: error processing package initramfs-tools (--install):
</span><span style="color:#323232;"> installed initramfs-tools package post-installation script subprocess returned error exit status 1
</span><span style="color:#323232;">Errors were encountered while processing:
</span><span style="color:#323232;"> initramfs-tools
</span>

Yea the problem’s pretty bad it seems.

Illecors,

OK, so that did not trigger the reinstallation of the missing file. Try reinstalling libklibc:


<span style="color:#323232;">sudo apt-get install --reinstall libklibc
</span>
AapoL,

<span style="color:#323232;">aapo@pop-os:~$ sudo apt-get install --reinstall libklibc
</span><span style="color:#323232;">Reading package lists... Done
</span><span style="color:#323232;">Building dependency tree... Done
</span><span style="color:#323232;">Reading state information... Done
</span><span style="color:#323232;">0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 169 not upgraded.
</span><span style="color:#323232;">2 not fully installed or removed.
</span><span style="color:#323232;">Need to get 0 B/45.6 kB of archives.
</span><span style="color:#323232;">After this operation, 0 B of additional disk space will be used.
</span><span style="color:#323232;">Setting up linux-firmware (20230629.gitee91452d-0ubuntu1+system76~1689594960~22.04~9d563bf) ...
</span><span style="color:#323232;">update-initramfs: Generating /boot/initrd.img-6.2.6-76060206-generic
</span><span style="color:#323232;">cp: cannot stat '/lib/klibc-*.so': No such file or directory
</span><span style="color:#323232;">E: /usr/share/initramfs-tools/hooks/klibc-utils failed with return 1.
</span><span style="color:#323232;">update-initramfs: failed for /boot/initrd.img-6.2.6-76060206-generic with 1.
</span><span style="color:#323232;">dpkg: error processing package linux-firmware (--configure):
</span><span style="color:#323232;"> installed linux-firmware package post-installation script subprocess returned error exit status 1
</span><span style="color:#323232;">Errors were encountered while processing:
</span><span style="color:#323232;"> linux-firmware
</span><span style="color:#323232;">E: Sub-process /usr/bin/dpkg returned an error code (1)
</span>

Tried that already. The installation tries to run but the problem blocks it from running.

Illecors,

Try downloading the deb and installing it manually using dpkg -i. Maybe that will allow it to skip this dependency.

AapoL,

Thanks! That worked.

Illecors,

So glad to hear! This is probably my first ever attempt at helping a fellow stranger and actually getting to the solution!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@sopuli.xyz
  • ngwrru68w68
  • DreamBathrooms
  • khanakhh
  • magazineikmin
  • InstantRegret
  • tacticalgear
  • thenastyranch
  • Youngstown
  • rosin
  • slotface
  • modclub
  • everett
  • kavyap
  • Durango
  • JUstTest
  • osvaldo12
  • normalnudes
  • cubers
  • ethstaker
  • mdbf
  • tester
  • GTA5RPClips
  • cisconetworking
  • Leos
  • megavids
  • provamag3
  • anitta
  • lostlight
  • All magazines