Error on boot on "boot/vmlinuz-linux"

On my system I have un SSD with two partitions, with Eos and Fedora.

On EndeavourOS Gnome I got the following error after an update involving the lts kernel I’ve installed:

Chargement de Linux linux-lts...
erreur : fichier « /boot/vmlinuz-linux-lts » non disponible.
Chargement du disque mémoire initial...
erreur : le noyau doit d'abord être chargé.

Appuyez une touche pour continuer…

That is

Loading linux linux-llts
error: file «/boot/vmlinuz-linux-lts» not found 
Loading initial ramdisk…
Error: you need to load the kernel first.

By my live iso I chrooted trying to solve the problem but I got errors.

[liveuser@eos-2025.02.08 ~]$ sudo lsblk -f
NAME   FSTYPE   FSVER            LABEL       UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
loop0  squashfs 4.0                                                                     0   100% /run/archiso/airootfs
sda
├─sda1 ext4     1.0                          e7821ebb-d627-45ab-9593-f575b340cbf9
└─sda2 ext4     1.0              fedora      f4114bfc-134e-4376-83f2-5f0986c6d091
sdb
├─sdb1 ext4     1.0              Dati        e7bf7c94-336d-4f4a-a4c8-901dac2cc977
├─sdb2 ext4     1.0              Documenti   b1b5a152-0101-4449-ad60-2198b3ac766b
├─sdb3 ext4     1.0              Multimedia  7b9b0044-13b0-492c-b59d-dbe5195687b4
└─sdb4 ext4     1.0              Backups     531afa06-7c77-42e8-8b26-d8603efbbacd
sdc    iso9660  Joliet Extension EOS_202502  2025-02-08-08-06-14-00
├─sdc1 iso9660  Joliet Extension EOS_202502  2025-02-08-08-06-14-00                     0   100% /run/archiso/bootmnt
└─sdc2 vfat     FAT32            ARCHISO_EFI 67A7-1076

Then

[liveuser@eos-2025.02.08 ~]$ sudo mount /dev/sda1 /mnt
[liveuser@eos-2025.02.08 ~]$ sudo arch-chroot /mnt
[root@EndeavourOS /]# ls /home
ply

All is perfect.

But

[root@EndeavourOS /]# pacman -Syu linux
:: Synchronizing package databases...
error: failed to synchronize all databases (unable to lock database)
[root@EndeavourOS /]# pacman -Syu linux
:: Synchronizing package databases...
 endeavouros                            15.8 KiB  58.2 KiB/s 00:00 [------------------------------------] 100%
 core                                  122.2 KiB   295 KiB/s 00:00 [------------------------------------] 100%
 extra                                   7.8 MiB  2.99 MiB/s 00:03 [------------------------------------] 100%
 multilib                              133.5 KiB   297 KiB/s 00:00 [------------------------------------] 100%
:: Starting full system upgrade...
error: could not open file /var/lib/pacman/local/linux-headers-6.16.arch2-1/desc: No such file or directory
resolving dependencies...
looking for conflicting packages...
warning: could not fully load metadata for package linux-headers-6.16.arch2-1
error: failed to prepare transaction (invalid or corrupted package)
[root@EndeavourOS /]# yay -Syyuu
 -> Avoid running yay as root/sudo.
:: Synchronizing package databases...
 endeavouros                                15.8 KiB  36.9 KiB/s 00:00 [---------------------------------------] 100%
 core                                      122.2 KiB   212 KiB/s 00:01 [---------------------------------------] 100%
 extra                                       7.8 MiB  1581 KiB/s 00:05 [---------------------------------------] 100%
 multilib                                  133.5 KiB   215 KiB/s 00:01 [---------------------------------------] 100%
:: Searching AUR for updates...
 -> could not open file /var/lib/pacman/local/linux-headers-6.16.arch2-1/desc: No such file or directory
:: Searching databases for updates...
:: 23 packages to upgrade/install.
23  endeavouros/dracut            106-1             -> 108_eos-1
22  core/btrfs-progs              6.15-1            -> 6.16-1
21  core/ca-certificates-mozilla  3.114-1           -> 3.115-1
20  core/glib2                    2.84.3-1          -> 2.84.4-2
19  core/glib2-devel              2.84.3-1          -> 2.84.4-2
18  core/libgcrypt                1.11.1-1          -> 1.11.2-1
17  core/linux                    6.16.arch2-1      -> 6.16.1.arch1-1
16  core/linux-headers            6.16.arch2-1      -> 6.16.1.arch1-1
15  core/linux-lts                6.12.41-1         -> 6.12.42-1
14  core/linux-lts-headers        6.12.41-1         -> 6.12.42-1
13  core/nss                      3.114-1           -> 3.115-1
12  core/python                   3.13.5-1          -> 3.13.7-1
11  core/rpcbind                  1.2.7-2           -> 1.2.8-1
10  extra/ell                     0.78-1            -> 0.79-1
 9  extra/hwdetect                2025.03.06.1935-1 -> 2025.08.16.1333-1
 8  extra/libinput                1.28.1-1          -> 1.29.0-1
 7  extra/librsvg                 2:2.60.0-2        -> 2:2.61.0-1
 6  extra/networkmanager-openvpn  1.12.0-1          -> 1.12.2-1
 5  extra/python-termcolor        2.5.0-1           -> 3.1.0-1
 4  extra/vapoursynth             R70-2             -> 72-1
 3  extra/whois                   5.6.1-1           -> 5.6.4-1
 2  extra/xorg-xdpyinfo           1.3.4-2           -> 1.4.0-1
 1  aur/freetube-bin              0.23.6-1          -> 0.23.7-1
==> Packages to exclude: (eg: "1 2 3", "1-3", "^4" or repo name)
 -> Excluding packages may cause partial upgrades and break systems
==>
Sync Dependency (12): ell-0.79-1, vapoursynth-72-1, glib2-2.84.4-2, libgcrypt-1.11.2-1, librsvg-2:2.61.0-1, ca-certificates-mozilla-3.115-1, libinput-1.29.0-1, whois-5.6.4-1, rpcbind-1.2.8-1, glib2-devel-2.84.4-2, nss-3.115-1, python-termcolor-3.1.0-1
Sync Explicit (10): linux-headers-6.16.1.arch1-1, xorg-xdpyinfo-1.4.0-1, linux-6.16.1.arch1-1, python-3.13.7-1, networkmanager-openvpn-1.12.2-1, linux-lts-headers-6.12.42-1, dracut-108_eos-1, linux-lts-6.12.42-1, hwdetect-2025.08.16.1333-1, btrfs-progs-6.16-1
AUR Explicit (1): freetube-bin-0.23.7-1
:: (0/1) Failed to download PKGBUILD: freetube-bin
 -> error fetching freetube-bin: fatal: cannot change to '/tmp/yay': No such file or directory
         context: exit status 128

[root@EndeavourOS /]# pacman -Syyuu
:: Synchronizing package databases...
 endeavouros                                15.8 KiB   122 KiB/s 00:00 [---------------------------------------] 100%
 core                                      122.2 KiB   424 KiB/s 00:00 [---------------------------------------] 100%
 extra                                       7.8 MiB  2.76 MiB/s 00:03 [---------------------------------------] 100%
 multilib                                  133.5 KiB   415 KiB/s 00:00 [---------------------------------------] 100%
:: Starting full system upgrade...
error: could not open file /var/lib/pacman/local/linux-headers-6.16.arch2-1/desc: No such file or directory
resolving dependencies...
looking for conflicting packages...
warning: could not fully load metadata for package linux-headers-6.16.arch2-1
error: failed to prepare transaction (invalid or corrupted package)
[root@EndeavourOS /]#

Please I need help because I’m not good to solve.

Can you post the content of /boot ?

The content of the file? Would you please tell me where it is?

It is the directory of /boot.

In /boot there’s a folder (grub) and a file (intel-ucode.img).

The only files named “boot” are in /grub/i386-pc, they are «boot.img» and «boot.mod».

I wonder if you want the content of them…?

Yes , the content of /boot.
ls -l of that folder.

I ‘m doing it with Fedora, because I can’t open EOs.

ply@2a02-842a-5500-c601-d986-753e-f66a-6eb3:/run/media/ply/e7821ebb-d627-45ab-9593-f575b340cbf9/boot$ ls -l
total 12980
drwxr-xr-x 6 root root     4096 19 avril 21:49 grub
-rw-r–r-- 1 root root 13286400 12 août  19:02 intel-ucode.img
ply@2a02-842a-5500-c601-d986-753e-f66a-6eb3:/run/media/ply/e7821ebb-d627-45ab-9593-f575b340cbf9/boot$ 

Could help a command like that?

sudo dracut-rebuild

Or/and

sudo reinstall-kernels

Chroot into the system.
pacman -Syu linux linux-lts.

here it is

[root@EndeavourOS /]# pacman -Syu linux linux-lts
:: Synchronizing package databases...
endeavouros is up to date
core is up to date
extra 7.8 MiB 3.28 MiB/s 00:02 [------------------------------------] 100%
multilib is up to date
:: Starting full system upgrade...
error: could not open file /var/lib/pacman/local/linux-headers-6.16.arch2-1/desc: No such file or directory
resolving dependencies...
looking for conflicting packages...
warning: could not fully load metadata for package linux-headers-6.16.arch2-1
error: failed to prepare transaction (invalid or corrupted package)
[root@EndeavourOS /]#

Then try to remove the two kernels linux and linux-lts and reinstall them both.

Please give me the commands…

I remove them like that?

pacman -R linux linux
pacman -R linux linux-lts

Then

pacman -S linux linux
pacman -S linux linux-lts

You could try first:

touch /var/lib/pacman/local/linux-headers-6.16.arch2-1/desc
pacman -Syu linux linux-headers linux-lts linux-lts-headers

It did not work

[root@EndeavourOS /]# sudo touch /var/lib/pacman/local/linux-headers-6.16.arch2-1/desc
[root@EndeavourOS /]# sudo pacman -Syu linux linux-headers linux-lts linux-lts-headers
:: Synchronizing package databases...
endeavouros is up to date
core is up to date
extra 7.8 MiB 2.30 MiB/s 00:03 [------------------------------------] 100%
multilib is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
error: could not open file /var/lib/pacman/local/linux-headers-6.16.arch2-1/files: No such file or directory
warning: could not fully load metadata for package linux-headers-6.16.arch2-1
error: failed to prepare transaction (invalid or corrupted package)
[root@EndeavourOS /]#

Should I try that?

pacman -R linux
pacman -R linux-lts

Then

pacman -S linux
pacman -S linux-lts

But what about the linux-headers?

Because

warning: could not fully load metadata for package linux-headers-6.16.arch2-1
error: failed to prepare transaction (invalid or corrupted package)

The kernel is at 6.16.1, try installing that one.

  1. sudo pacman -R linux linux-headers
  2. sudo pacman -S linux linux-headers
  3. sudo pacman -Rdd linux-firmware
  4. sudo pacman -Syu linux-firmware
  5. dracut rebuild

What about the lts kernel? In fact I have them both

Can’t boot from it as well ?

Now touch files and then try update:

touch /var/lib/pacman/local/linux-headers-6.16.arch2-1/files
pacman -Syu linux linux-headers linux-lts linux-lts-headers