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

  • Illecors@lemmy.cafe
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

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

    sudo apt download initramfs-tools
    sudo dpkg -i initramfs-tools.whatever.is.the.actual.name.deb
    
    • AapoLOP
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago
      aapo@pop-os:~$ sudo dpkg -i initramfs-tools_0.140ubuntu13.2_all.deb
      (Reading database ... 292735 files and directories currently installed.)
      Preparing to unpack initramfs-tools_0.140ubuntu13.2_all.deb ...
      Unpacking initramfs-tools (0.140ubuntu13.2) over (0.140ubuntu13.2) ...
      Setting up initramfs-tools (0.140ubuntu13.2) ...
      update-initramfs: deferring update (trigger activated)
      Processing triggers for man-db (2.10.2-1) ...
      Processing triggers for initramfs-tools (0.140ubuntu13.2) ...
      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 initramfs-tools (--install):
       installed initramfs-tools package post-installation script subprocess returned error exit status 1
      Errors were encountered while processing:
       initramfs-tools
      

      Yea the problem’s pretty bad it seems.

      • Illecors@lemmy.cafe
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

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

        sudo apt-get install --reinstall libklibc
        
        • AapoLOP
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago
          aapo@pop-os:~$ sudo apt-get install --reinstall libklibc
          Reading package lists... Done
          Building dependency tree... Done
          Reading state information... Done
          0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 169 not upgraded.
          2 not fully installed or removed.
          Need to get 0 B/45.6 kB of archives.
          After this operation, 0 B of additional disk space will be used.
          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)
          

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

          • Illecors@lemmy.cafe
            link
            fedilink
            arrow-up
            2
            ·
            1 year ago

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

              • Illecors@lemmy.cafe
                link
                fedilink
                arrow-up
                2
                ·
                1 year ago

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