PDA

View Full Version : initramfs-tools errors... a few "fixes" but none work for me



paul.neocune
2022-06-08, 01:04
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 ****:


$ 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:




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



$ 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)




$ 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!


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

Fred Sheehan
2022-07-30, 02:47
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

paul.neocune
2022-07-31, 21:51
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.

Fred Sheehan
2022-08-01, 00:44
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-to-use-fdisk-to-manage-partitions-on-linux/

paul.neocune
2022-08-01, 12:40
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-to-use-fdisk-to-manage-partitions-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!

Fred Sheehan
2022-08-01, 15:18
The only other place perhaps, is old boot entries left on your EFI partition;

https://www.linuxbabe.com/command-line/how-to-use-linux-efibootmgr-examples

paul.neocune
2022-08-01, 15:38
The only other place perhaps, is old boot entries left on your EFI partition;

https://www.linuxbabe.com/command-line/how-to-use-linux-efibootmgr-examples

Thing is I never had raspi on ANY of my devices. That is what is so puzzling to me.