You are not logged in.
I have tried to arch-chroot from usb and I get "chroot: failed to run command /bin/bash: exec format error"
I have tried to chroot but commands like 'ls' are not recognized: "zsh: exec format error: ls"
The command "pacman --root=/mnt --cachedir=/mnt/var/cache/pacman/pkg -Syu" starts the update, but it asks me to import PKG keys. After checking package integrity it returns 'error: glib2: key "some_key...' is unknown". After asking if I want to import it and if I say Yes it returns File /mnt/var/cache/pacman/pkg/glib2-2.80.5-1x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)). If I dont import the unknown key I get again the error of the corrupted package, but some other package.
Could you help me reinstall the kernel and boot into arch successfully?
Offline
Use
pacman --sysroot=/mnt -Syuinstead of
pacman --root...Offline