Skip Navigation

Having problems with the linux-firmware

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+system76~1689594960~22.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)

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.>>>

14
14 comments
  • Have you wiped your /lib/?

    3
    • 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

      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)
      
      3
    • 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?

      2
      • 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:

        ls -la /lib/klibc-*.so
        

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

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

        sudo apt-get install --reinstall initramfs-tools
        
        3
You've viewed 14 comments.