Results 1 to 7 of 7

Thread: initramfs-tools errors... a few "fixes" but none work for me

  1. #1
    Join Date
    2022-Jun
    Location
    USA
    Posts
    8

    Angry initramfs-tools errors... a few "fixes" but none work for me

    So I have been inundated with many errors with initramfs-tools. Upon research I have seen many fixes that worked for others but did not seem to do anything for any of the errors I am getting and I am at a loss. Here is one of the outputs I got with this text of ****:

    Code:
    $ dpkg: error processing package linux-image-amd64 (--configure):
     dependency problems - leaving unconfigured
    Processing triggers for initramfs-tools (0.141) ...
    update-initramfs: Generating /boot/initrd.img-5.17.0-kali3-amd64
    raspi-firmware: missing /boot/firmware, did you forget to mount it?
    run-parts: /etc/initramfs/post-update.d//z50-raspi-firmware exited with return code 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-image-5.17.0-kali3-amd64
     linux-image-amd64
     initramfs-tools
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    Here are the "fixes" I have tried to no avail:



    Code:
    sudo dpkg --configure -a
    Setting up initramfs-tools (0.141) ...
    update-initramfs: deferring update (trigger activated)
    Setting up linux-image-5.17.0-kali3-amd64 (5.17.11-1kali1) ...
    /etc/kernel/postinst.d/dkms:
    dkms: running auto installation service for kernel 5.17.0-kali3-amd64:.
    /etc/kernel/postinst.d/initramfs-tools:
    update-initramfs: Generating /boot/initrd.img-5.17.0-kali3-amd64
    raspi-firmware: missing /boot/firmware, did you forget to mount it?
    run-parts: /etc/initramfs/post-update.d//z50-raspi-firmware exited with return code 1
    run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
    dpkg: error processing package linux-image-5.17.0-kali3-amd64 (--configure):
     installed linux-image-5.17.0-kali3-amd64 package post-installation script subprocess returned error exit status 1
    dpkg: dependency problems prevent configuration of linux-image-amd64:
     linux-image-amd64 depends on linux-image-5.17.0-kali3-amd64 (= 5.17.11-1kali1); however:
      Package linux-image-5.17.0-kali3-amd64 is not configured yet.
    
    dpkg: error processing package linux-image-amd64 (--configure):
     dependency problems - leaving unconfigured
    Processing triggers for initramfs-tools (0.141) ...
    update-initramfs: Generating /boot/initrd.img-5.17.0-kali3-amd64
    raspi-firmware: missing /boot/firmware, did you forget to mount it?
    run-parts: /etc/initramfs/post-update.d//z50-raspi-firmware exited with return code 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-image-5.17.0-kali3-amd64
     linux-image-amd64
     initramfs-tools

    Code:
    $ sudo apt --fix-broken install 
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    The following packages were automatically installed and are no longer required:
      android-libunwind libdav1d5 libjim0.79 libnode83 libodpic3 qemu vim-gtk
    Use 'sudo apt autoremove' to remove them.
    0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
    3 not fully installed or removed.
    After this operation, 0 B of additional disk space will be used.
    Setting up initramfs-tools (0.141) ...
    update-initramfs: deferring update (trigger activated)
    Setting up linux-image-5.17.0-kali3-amd64 (5.17.11-1kali1) ...
    /etc/kernel/postinst.d/dkms:
    dkms: running auto installation service for kernel 5.17.0-kali3-amd64:.
    /etc/kernel/postinst.d/initramfs-tools:
    update-initramfs: Generating /boot/initrd.img-5.17.0-kali3-amd64
    raspi-firmware: missing /boot/firmware, did you forget to mount it?
    run-parts: /etc/initramfs/post-update.d//z50-raspi-firmware exited with return code 1
    run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
    dpkg: error processing package linux-image-5.17.0-kali3-amd64 (--configure):
     installed linux-image-5.17.0-kali3-amd64 package post-installation script subprocess returned error exit status 1
    dpkg: dependency problems prevent configuration of linux-image-amd64:
     linux-image-amd64 depends on linux-image-5.17.0-kali3-amd64 (= 5.17.11-1kali1); however:
      Package linux-image-5.17.0-kali3-amd64 is not configured yet.
    
    dpkg: error processing package linux-image-amd64 (--configure):
     dependency problems - leaving unconfigured
    Processing triggers for initramfs-tools (0.141) ...
    update-initramfs: Generating /boot/initrd.img-5.17.0-kali3-amd64
    raspi-firmware: missing /boot/firmware, did you forget to mount it?
    run-parts: /etc/initramfs/post-update.d//z50-raspi-firmware exited with return code 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-image-5.17.0-kali3-amd64
     linux-image-amd64
     initramfs-tools
    E: Sub-process /usr/bin/dpkg returned an error code (1)


    Code:
    $ sudo apt-get install --fix-broken
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    The following packages were automatically installed and are no longer required:
      android-libunwind libdav1d5 libjim0.79 libjs-uglify libnode83 libodpic3
      qemu ruby-uglifier vim-gtk
    Use 'sudo apt autoremove' to remove them.
    0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
    3 not fully installed or removed.
    After this operation, 0 B of additional disk space will be used.
    Setting up initramfs-tools (0.141) ...
    update-initramfs: deferring update (trigger activated)
    Setting up linux-image-5.17.0-kali3-amd64 (5.17.11-1kali1) ...
    /etc/kernel/postinst.d/dkms:
    dkms: running auto installation service for kernel 5.17.0-kali3-amd64:.
    /etc/kernel/postinst.d/initramfs-tools:
    update-initramfs: Generating /boot/initrd.img-5.17.0-kali3-amd64
    raspi-firmware: missing /boot/firmware, did you forget to mount it?
    run-parts: /etc/initramfs/post-update.d//z50-raspi-firmware exited with return code 1
    run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
    dpkg: error processing package linux-image-5.17.0-kali3-amd64 (--configure):
     installed linux-image-5.17.0-kali3-amd64 package post-installation script subprocess returned error exit status 1
    dpkg: dependency problems prevent configuration of linux-image-amd64:
     linux-image-amd64 depends on linux-image-5.17.0-kali3-amd64 (= 5.17.11-1kali1); however:
      Package linux-image-5.17.0-kali3-amd64 is not configured yet.
    
    dpkg: error processing package linux-image-amd64 (--configure):
     dependency problems - leaving unconfigured
    Processing triggers for initramfs-tools (0.141) ...
    update-initramfs: Generating /boot/initrd.img-5.17.0-kali3-amd64
    raspi-firmware: missing /boot/firmware, did you forget to mount it?
    run-parts: /etc/initramfs/post-update.d//z50-raspi-firmware exited with return code 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-image-5.17.0-kali3-amd64
     linux-image-amd64
     initramfs-tools
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    Now, two of the errors seem to be what those commands were trying to fix, but did not for me. The third one (located below), I could not find anything about and I am at a loss of what it could be referring to. Can anyone at all assist me in rectifying this mess? Or have any ideas on what else I can try? Many thanks in advance!

    Code:
    raspi-firmware: missing /boot/firmware, did you forget to mount it?
    run-parts: /etc/initramfs/post-update.d//z50-raspi-firmware exited with return code 1

  2. #2
    Join Date
    2021-May
    Location
    UK
    Posts
    772
    initramfs is your 'initial - RAM - File System' i.e. the bootable image that starts up your base system and gets everything working

    I believe you can update raspi firmware when you do a normal raspi OS upgrade, get a raspi OS image and mount it when your trying to update Kali and it should be happy, it needs to write a new boot file

  3. #3
    Join Date
    2022-Jun
    Location
    USA
    Posts
    8
    Quote Originally Posted by Fred Sheehan View Post
    initramfs is your 'initial - RAM - File System' i.e. the bootable image that starts up your base system and gets everything working

    I believe you can update raspi firmware when you do a normal raspi OS upgrade, get a raspi OS image and mount it when your trying to update Kali and it should be happy, it needs to write a new boot file
    I am not understanding why this firmware (part of a diffferent OS that I don't even use) would have anything to do with Kali Linux and the update process for it. However, thank you for the advice and I shall give it a try.

  4. #4
    Join Date
    2021-May
    Location
    UK
    Posts
    772
    if it 'shouldn't be there' then it would suggest its a hold over from a previous boot set up?

    in such a case you might have to start with a properly cleaned and 'blank' disk/partition to install on?

    You can find out whats going on with fdisk;

    https://www.howtogeek.com/106873/how...ions-on-linux/

  5. #5
    Join Date
    2022-Jun
    Location
    USA
    Posts
    8
    Quote Originally Posted by Fred Sheehan View Post
    if it 'shouldn't be there' then it would suggest its a hold over from a previous boot set up?

    in such a case you might have to start with a properly cleaned and 'blank' disk/partition to install on?

    You can find out whats going on with fdisk;

    https://www.howtogeek.com/106873/how...ions-on-linux/

    Wonderful, I will try it as soon as I am home from work. Sounds promising. I can deal with reinstallation of some programs and files, if I can get rid of this. I honestly don't even know how I would have obtained it but hopefully this will rectify it. Many thanks!

  6. #6
    Join Date
    2021-May
    Location
    UK
    Posts
    772
    The only other place perhaps, is old boot entries left on your EFI partition;

    https://www.linuxbabe.com/command-li...otmgr-examples

  7. #7
    Join Date
    2022-Jun
    Location
    USA
    Posts
    8
    Quote Originally Posted by Fred Sheehan View Post
    The only other place perhaps, is old boot entries left on your EFI partition;

    https://www.linuxbabe.com/command-li...otmgr-examples
    Thing is I never had raspi on ANY of my devices. That is what is so puzzling to me.

Similar Threads

  1. Replies: 0
    Last Post: 2022-04-14, 02:30
  2. Internet Adapters show as "Disconnected" any fixes?
    By Asphytheghoul in forum General Archive
    Replies: 0
    Last Post: 2020-06-08, 13:35
  3. Metasploit framework errors "could not connect to server"
    By webbsmurfen in forum TroubleShooting Archive
    Replies: 2
    Last Post: 2019-10-04, 21:45
  4. Errors booting Kali: "you need to load the kernel first"
    By Redemption116 in forum Installing Archive
    Replies: 3
    Last Post: 2017-06-27, 11:31
  5. apt-get errors - "configured multiple times"
    By BeTheGreyMan in forum TroubleShooting Archive
    Replies: 1
    Last Post: 2017-05-21, 12:44

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •