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)

This happens when trying to update or install things in apt. Tell me if more info is needed.

  • pnutzh4x0r@lemmy.ndlug.org
    link
    fedilink
    English
    arrow-up
    4
    ·
    1 year ago

    If you are missing the /lib/klibc-*.so files, then you have a broken libklibc package. You can try to reinstall it as follows:

    sudo apt --reinstall install libklibc
    

    After that, you can try to repair the rest of the system with:

    sudo apt install -f
    sudo dpkg --configure -a
    
    • AapoLOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      sudo apt --reinstall install libklibc

      Runs into the same problem because the firmware tries to update. Tried install

      sudo apt --reinstall install -f libklibc 
      

      too but didn’t work

  • MrShelbs@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    1 year ago

    Throwing stuff at the wall but I’d personally start with a good old

    sudo apt install -f

    sudo dpkg --configure -a

    It will reconfigure all your installed packages. Afterwards, I’d try a full upgrade:

    sudo apt update && sudo apt upgrade

    Let me know if this helps :)

    • AapoLOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      These didn’t work. Look at the other comments for error messages.

  • Matthew@lemmy.ca
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    Throwing stuff at the wall but I’d personally start with:

    sudo apt install -f

    sudo dpkg --configure -a

    It will reconfigure all your installed packages. Afterwards, I’d try a full upgrade:

    sudo apt update && sudo apt upgrade

    Let me know if this helps :)

    • AapoLOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      1 year ago

      sudo apt install -f

      This fails and gives the same error.

      sudo dpkg --configure -a

      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 (--configure): installed initramfs-tools package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: linux-firmware initramfs-tools

  • AapoLOP
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    Porblem solved! I downloaded the libklibc package manually.