You need to load the kernel first and more issues

‘You need to load the kernel first’

This was my first issue coming back after my laptop presumably ran out of batteries during an update. I did the steps in the solution presented in Boot file not found only to be given this:

File var/cache/pacman/pkg/pacman-mirrors-5.3-1-any.pkg.tar.zst is corrupted. Do you want to delete it? [Y/n]

The first time I answered ‘y’ and got

Error: failed to commit transaction (invalid or corrupted package)

Errors occurred, no packages were upgraded

I received the same message when I tried avaim and answered ‘n’.

Seeing it was a problem with a PGP signature, I looked for a solution. I did the commamds in the solution shown in Failed to commit transaction (invalid or corrupted package (PGP signature)) - #3 by motox and they seemed to go through, but when I attempted the first set of commands again I was blocked by the same corrupt PGP signature problem.

I get the same ‘you need to load the kernel first’ message when attempting to boot.

It is likely that you will be able to boot your real system again
if you do, from while you are in chroot
(manjaro-chroot -a after having booted from USB)

mkinitcpio -P
update-grub

exit

to exit chroot

It’s worth a try - things might be easier to work on when the real system is up.

Reason this might work:
the kernel is removed at the start of the update, but only put back as the last thing, after all of the update went through - which it did not in your case for some reason
The above commands should remedy that situation.

Otherwise you may want to show us the exact sequence of commands you did - including the response that you got.
Not a description, the actual copy/pasted terminal output.

1 Like
1 Like
(496/496) checking keys in keyring                 [######################]
100%downloading required keys…:: Import PGP key 6F120DAEC909FAD7, “Frede Hundewadt
fh@manjaro.org”? [Y/n] y(496/496) checking package integrity
[######################] 100%error: pacman-mirrors: signature from “Frede
Hundewadt fh@manjaro.org” is unknown trust:: File /var/cache/pacman/pkg/pacman-
mirrors-5.3-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP
signature)).Do you want to delete it? [Y/n] yerror: failed to commit transaction
(invalid or corrupted package)Errors occurred, no packages were upgraded.[manjaro
~]# mkinitcpio -P==> Building image from preset: /etc/mkinitcpio.d/
linux612.preset: ‘default’==> Using default configuration file: ‘/etc/
mkinitcpio.conf’→ -k /boot/vmlinuz-6.12-x86_64 -g /boot/initramfs-6.12-
x86_64.img==> Starting build: ‘6.12.48-1-MANJARO’→ Running build hook: [base]→
Running build hook: [udev]→ Running build hook: [autodetect]==> WARNING: cannot
detect type of overlayfs root filesystem→ Running build hook: [microcode]→ Running
build hook: [modconf]→ Running build hook: [kms]→ Running build hook: [keyboard]→
Running build hook: [keymap]→ Running build hook: [consolefont]==> WARNING:
consolefont: no font found in configuration→ Running build hook: [block]→ Running
build hook: [filesystems]→ Running build hook: [fsck]==> Generating module
dependencies==> Creating zstd-compressed initcpio image: ‘/boot/initramfs-6.12-
x86_64.img’→ Early uncompressed CPIO image generation successful==> Initcpio image
generation successful==> Running post hooks→ Running post hook: [sbctl]Secureboot
key directory doesn’t exist, not signing!==> Post processing done==> Building
image from preset: /etc/mkinitcpio.d/linux612.preset: ‘fallback’==> Using default
configuration file: ‘/etc/mkinitcpio.conf’→ -k /boot/vmlinuz-6.12-x86_64 -g /boot/
initramfs-6.12-x86_64-fallback.img -S autodetect==> Starting build: ‘6.12.48-1-
MANJARO’→ Running build hook: [base]→ Running build hook: [udev]→ Running build
hook: [microcode]→ Running build hook: [modconf]→ Running build hook: [kms]==>
WARNING: Possibly missing firmware for module: ‘ast’→ Running build hook:
[keyboard]==> WARNING: Possibly missing firmware for module: ‘xhci_pci_renesas’→
Running build hook: [keymap]→ Running build hook: [consolefont]==> WARNING:
consolefont: no font found in configuration→ Running build hook: [block]==>
WARNING: Possibly missing firmware for module: ‘aic94xx’==> WARNING: Possibly
missing firmware for module: ‘bfa’==> WARNING: Possibly missing firmware for
module: ‘qed’==> WARNING: Possibly missing firmware for module: ‘qla1280’==>
WARNING: Possibly missing firmware for module: ‘qla2xxx’==> WARNING: Possibly
missing firmware for module: ‘wd719x’→ Running build hook: [filesystems]→ Running
build hook: [fsck]==> Generating module dependencies==> Creating zstd-compressed
initcpio image: ‘/boot/initramfs-6.12-x86_64-fallback.img’→ Early uncompressed
CPIO image generation successful==> Initcpio image generation successful==>
Running post hooks→ Running post hook: [sbctl]Secureboot key directory doesn’t
exist, not signing!==> Post processing done[manjaro ~]# update-grub/usr/bin/grub-
probe: error: failed to get canonical path of `overlay’.

This is the end of my attempt at -Syyu and the result of the commands you gave me.

:: Proceed with installation? [Y/n] Y:: Retrieving packages…

libappindicator-…    50.6 KiB   888 KiB/s 00:00 [######################]
100%pacman-mirrors-5…   218.4 KiB  2.37 MiB/s 00:00 [######################]
100%Total (2/2)           269.0 KiB  2.63 MiB/s 00:00 [######################]
100%(497/497) checking keys in keyring                 [######################]
100%(497/497) checking package integrity               [######################]
100%error: pacman-mirrors: signature from “Frede Hundewadt fh@manjaro.org” is
unknown trust:: File /var/cache/pacman/pkg/pacman-mirrors-5.3-1-any.pkg.tar.zst is
corrupted (invalid or corrupted package (PGP signature)).Do you want to delete it?
[Y/n] Yerror: failed to commit transaction (invalid or corrupted package)Errors
occurred, no packages were upgraded./usr/bin/grub-probe: error: failed to get
canonical path of `overlay’.logoutgrub-probe: error: cannot find a GRUB drive for
/dev/sda1.  Check your device.map.grub-probe: error: cannot  a GRUB drive for /
dev/sda1.  Check your device.map.==> ERROR: No Linux partitions detected!

This is the ending part that I get from what you just sent me.

Please edit your post and place any code or command output within a scrollable pre-formatted text enclosure according to forum guidelines. :eyes: :point_down:


[MiniHowTo] Present code or command output

Note: Grave accent (or, backtick) characters are used. :eyes:

For inline code or to show a single command:

  • please follow this simple example: code here.

For multi-line command output:

  • place text beween two rows of three (```) backtick characters to form a scrollable text box, or …
  • use the </> button in the Compose window to achieve the same result.

The empty row between these rows of backtick characters is where to paste any multi-line command output (such as inxi).

An example of a pre-formatted text enclosure:

What is a Quark?

A. In Physics, an elementary particle and fundamental constituent of matter. 
B. A character from the Star Trek: "Deep Space Nine" television series.
C. A soft, creamy, usually unsalted cheese traditional to central Europe.

For the signature of Frede look at the second post of the Announcement topic.
For the Overlay…i am not sure. But try to update everything else first.

1 Like

Did you try to reboot your system after these commands?

Fix your formatting - no one can read what you posted.

click </>
a black box will appear
paste the terminal output in it

I found what you’re talking about in post 2 that claims to fix this issue. The result of the shown command is:

[manjaro ~]# sudo pacman -S manjaro-keyring
sudo pacman-key --populate manjaro
resolving dependencies…looking for conflicting packages…
Packages (1) manjaro-keyring-20251003-1
Total Installed Size:  0.09 MiBNet Upgrade Size:      0.00 MiB
:: Proceed with installation? [Y/n] y(1/1) checking keys in keyring
[######################] 100%(1/1) checking package integrity
[######################] 100%(1/1) loading package files
[######################] 100%(1/1) checking for file conflicts
[######################] 100%(1/1) checking available disk space                [######################] 100%:: Running pre-transaction hooks…(1/1) Creating
Timeshift snapshot before upgrade…==> skipping timeshift-autosnap because system
is booted in Live CD mode…:: Processing package changes…(1/1) upgrading manjaro-keyring                    [######################] 100%==> Appending keys from
manjaro.gpg…==> Locally signing trusted keys in keyring… → Locally signed 4
keys.==> Importing owner trust values…gpg: setting ownertrust to 4==> Disabling
revoked keys in keyring… → Disabled 1 key.==> Updating trust database…gpg: 
Note: third-party key signatures using the SHA1 algorithm are rejectedgpg: (use option “–allow-weak-key-signatures” to override)gpg: marginals needed: 3
completes needed: 1  trust model: pgpgpg: depth: 0  valid:   1  signed:  22
trust: 0-, 0q, 0n, 0m, 0f, 1ugpg: depth: 1  valid:  22  signed:  98  trust: 0-, 0q, 0n, 22m, 0f, 0ugpg: depth: 2  valid:  71  signed:  18  trust: 71-, 0q, 0n, 0m,
0f, 0ugpg: next trustdb check due at 2026-01-24:: Running post-transaction hooks…(1/1) Arming ConditionNeedsUpdate…==> Appending keys from manjaro.gpg…==> Locally
signing trusted keys in keyring… → Locally signed 2 keys.==> Importing owner trust
values…==> Updating trust database…gpg: next trustdb check due at 2026-01-24

Then I ran pacman -Syuu and it appears to fail with the same error:

error: pacman-mirrors: signature from “Frede Hundewadt fh@manjaro.org” is unknown trust
:: File /var/cache/pacman/pkg/pacman-mirrors-5.3-1-any.pkg.tar.zst is corrupted 
(invalid or corrupted package (PGP signature)).Do you want to delete it? [Y/n] 
yerror: failed to commit transaction (invalid or corrupted package)Errors 
occurred, no packages were upgraded.

I think I have made the previous posts more legible.

I have since attempted to boot and get the same error.

So you have the key imported - or is it repeating itself - after you have used timeshift?

Using timeshift is loading a previous snapshot, yes? Attempting to do so bluescreens the laptop. I am chrooting in from a usb stick. is sudo pacman-key --populate manjaro what is meant by importing? I also removed and redownloaded the manjaro and archlinux default keys.

The keyring is important as it contains an update to the keys.

My old disabled key is removed and a new key has been added.

To avoid the random occasion where the pacman-mirrors package is updated before the keyring - you are advised to load the update package first.

Great - then the pacman-mirrors package should no longer be an issue.

But if you ran it on the live ISO only - then it is not worth anything

You need to correctly enter the chroot and if your filesystem is btrfs manjari-chroot -a will not work.

Please see this topic on how to correctly enter chroot when your file system is btrfs.

[root tip] [recovery] Basic Manjaro Linux Rescue and Recovery

In chroot - you need rebuild your mkinitcpio and rebuild your grub configuration

mkinitcpio -P
update-grub
1 Like