‘/boot/initramfs-linux.img’ not found - chroot on live and update doesn't help

I am using zfs.

# cat /etc/dracut.conf.d/*
omit_dracutmodules+=" network cifs nfs nbd brltty "
compress="zstd"
add_dracutmodules+=" resume "

Are you using zfs-dkms? If so, you need to be careful when a new kernel comes out. Often they aren’t supported yet. You should probably install the LTS kernel.

pacman -S linux-lts linux-lts-headers
# pacman -S linux-lts linux-lts-headers
resolving dependencies...
looking for conflicting packages...

Package (2)             New Version  Net Change  Download Size

core/linux-lts          6.6.12-1     128.72 MiB     128.64 MiB
core/linux-lts-headers  6.6.12-1     124.26 MiB      24.78 MiB

Total Download Size:   153.42 MiB
Total Installed Size:  252.98 MiB

:: Proceed with installation? [Y/n] 
:: Retrieving packages...
 linux-lts-6.6.12-1-x86_64.pkg.tar.zst failed to download
 linux-lts-headers-6.6.12-1-x86_64.pkg.tar.zst failed to download
 Total (2/2)                                                 153.4 MiB   103 MiB/s 00:01 [----------------------------------------------------] 100%
error: failed retrieving file 'linux-lts-headers-6.6.12-1-x86_64.pkg.tar.zst' from mirror.dogado.de : The requested URL returned error: 404
error: failed retrieving file 'linux-lts-headers-6.6.12-1-x86_64.pkg.tar.zst' from archlinux.thaller.ws : The requested URL returned error: 404
error: failed retrieving file 'linux-lts-6.6.12-1-x86_64.pkg.tar.zst' from mirror.dogado.de : The requested URL returned error: 404
error: failed retrieving file 'linux-lts-6.6.12-1-x86_64.pkg.tar.zst' from archlinux.thaller.ws : The requested URL returned error: 404
error: failed retrieving file 'linux-lts-6.6.12-1-x86_64.pkg.tar.zst' from mirror.f4st.host : The requested URL returned error: 404
error: failed retrieving file 'linux-lts-headers-6.6.12-1-x86_64.pkg.tar.zst' from mirror.f4st.host : The requested URL returned error: 404
error: failed retrieving file 'linux-lts-6.6.12-1-x86_64.pkg.tar.zst' from mirror.moson.org : The requested URL returned error: 404
error: failed retrieving file 'linux-lts-headers-6.6.12-1-x86_64.pkg.tar.zst' from mirror.moson.org : The requested URL returned error: 404
error: failed retrieving file 'linux-lts-6.6.12-1-x86_64.pkg.tar.zst' from mirror.sunred.org : The requested URL returned error: 404
error: failed retrieving file 'linux-lts-headers-6.6.12-1-x86_64.pkg.tar.zst' from mirror.sunred.org : The requested URL returned error: 404
error: failed retrieving file 'linux-lts-6.6.12-1-x86_64.pkg.tar.zst' from mirror.pseudoform.org : The requested URL returned error: 404
error: failed retrieving file 'linux-lts-headers-6.6.12-1-x86_64.pkg.tar.zst' from mirror.pseudoform.org : The requested URL returned error: 404
error: failed retrieving file 'linux-lts-6.6.12-1-x86_64.pkg.tar.zst' from mirror.ubrco.de : The requested URL returned error: 404
error: failed retrieving file 'linux-lts-headers-6.6.12-1-x86_64.pkg.tar.zst' from mirror.ubrco.de : The requested URL returned error: 404
error: failed retrieving file 'linux-lts-6.6.12-1-x86_64.pkg.tar.zst' from mirror.fra10.de.leaseweb.net : The requested URL returned error: 404
error: failed retrieving file 'linux-lts-headers-6.6.12-1-x86_64.pkg.tar.zst' from mirror.fra10.de.leaseweb.net : The requested URL returned error: 404
error: failed retrieving file 'linux-lts-6.6.12-1-x86_64.pkg.tar.zst' from archlinux.richard-neumann.de : The requested URL returned error: 404
error: failed retrieving file 'linux-lts-headers-6.6.12-1-x86_64.pkg.tar.zst' from archlinux.richard-neumann.de : The requested URL returned error: 404
error: failed retrieving file 'linux-lts-6.6.12-1-x86_64.pkg.tar.zst' from mirror.kumi.systems : The requested URL returned error: 404
error: failed retrieving file 'linux-lts-headers-6.6.12-1-x86_64.pkg.tar.zst' from mirror.kumi.systems : The requested URL returned error: 404
error: failed retrieving file 'linux-lts-6.6.12-1-x86_64.pkg.tar.zst' from mirror.selfnet.de : The requested URL returned error: 404
error: failed retrieving file 'linux-lts-headers-6.6.12-1-x86_64.pkg.tar.zst' from mirror.selfnet.de : The requested URL returned error: 404
error: failed retrieving file 'linux-lts-headers-6.6.12-1-x86_64.pkg.tar.zst' from mirror.23m.com : The requested URL returned error: 404
error: failed retrieving file 'linux-lts-6.6.12-1-x86_64.pkg.tar.zst' from mirror.23m.com : The requested URL returned error: 404
error: failed retrieving file 'linux-lts-headers-6.6.12-1-x86_64.pkg.tar.zst' from arch.unixpeople.org : The requested URL returned error: 404
error: failed retrieving file 'linux-lts-6.6.12-1-x86_64.pkg.tar.zst' from arch.unixpeople.org : The requested URL returned error: 404
error: failed retrieving file 'linux-lts-headers-6.6.12-1-x86_64.pkg.tar.zst' from mirror.pagenotfound.de : The requested URL returned error: 404
error: failed retrieving file 'linux-lts-6.6.12-1-x86_64.pkg.tar.zst' from mirror.pagenotfound.de : The requested URL returned error: 404
error: failed retrieving file 'linux-lts-headers-6.6.12-1-x86_64.pkg.tar.zst' from mirror.cmt.de : The requested URL returned error: 404
error: failed retrieving file 'linux-lts-6.6.12-1-x86_64.pkg.tar.zst' from mirror.cmt.de : The requested URL returned error: 404
error: failed retrieving file 'linux-lts-headers-6.6.12-1-x86_64.pkg.tar.zst' from mirror.hugo-betrugo.de : The requested URL returned error: 404
error: failed retrieving file 'linux-lts-6.6.12-1-x86_64.pkg.tar.zst' from mirror.hugo-betrugo.de : The requested URL returned error: 404
error: failed retrieving file 'linux-lts-headers-6.6.12-1-x86_64.pkg.tar.zst' from mirror.nekos.host : The requested URL returned error: 404
error: failed retrieving file 'linux-lts-6.6.12-1-x86_64.pkg.tar.zst' from mirror.nekos.host : The requested URL returned error: 404
error: failed retrieving file 'linux-lts-6.6.12-1-x86_64.pkg.tar.zst' from dist-mirror.fem.tu-ilmenau.de : The requested URL returned error: 404
error: failed retrieving file 'linux-lts-headers-6.6.12-1-x86_64.pkg.tar.zst' from dist-mirror.fem.tu-ilmenau.de : The requested URL returned error: 404
error: failed retrieving file 'linux-lts-6.6.12-1-x86_64.pkg.tar.zst' from ftp.fau.de : The requested URL returned error: 404
error: failed retrieving file 'linux-lts-headers-6.6.12-1-x86_64.pkg.tar.zst' from ftp.fau.de : The requested URL returned error: 404
warning: failed to retrieve some files
error: failed to commit transaction (failed to retrieve some files)
Errors occurred, no packages were upgraded.

all mirrors fail with error: 404

And thanks for the hint regarding zfs, read sth about the issues you mentioned. thinking about switch back to btrfs.

But first i hope to save my data the easy way…

Try:

pacman -Sy linux-lts linux-lts-headers

You can avoid those issues pretty easily by either using the LTS kernel or the archzfs repo. However, you need to get the system working first.

1 Like

That’s the solution: switching to lts-kernel.

To sum up for others facing the same problem, if you’re using zfs and updated to “not yet” supported kernel-version, which may lead to << Error: File /@/boot/initramfs-linux.img not found. >> :

First - liveboot from e.g. USB and do proper mounting, in my case…

Second, arch-chroot /mnt and do…

Then remove your deprecated kernel with…

pacman -R linux

finally update grub…

grub-mkconfig -o /boot/grub/grub.cfg

reboot and your system should be up and running the lts kernel now.

And @dalto … you are my hero. Thanks a lot for taking your time to help me and also teach sth. Give that man a medal!!

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.