System Crash during update

Hello

System during update just crash and now I can’t log in. Downloaded manajro USB and I’m on manjaro-chroot -a

the errors are:

pacman-key --init
gpg: symbol lookup error: /usr/lib/libsqlite3.so.0: undefined symbol: exp, version GLIBC_2.29
awk: symbol lookup error: awk: undefined symbol: exp, version GLIBC_2.29
gpg: symbol lookup error: /usr/lib/libsqlite3.so.0: undefined symbol: exp, version GLIBC_2.29
==> Generating pacman master key. This may take some time.
gpg: symbol lookup error: /usr/lib/libsqlite3.so.0: undefined symbol: exp, version GLIBC_2.29
==> Updating trust database...
gpg: symbol lookup error: /usr/lib/libsqlite3.so.0: undefined symbol: exp, version GLIBC_2.29
==> ERROR: Trust database could not be updated.
[manjaro-gnome pkg]# 

pacman -Syyu

error: GPGME error: Invalid crypto engine
error: GPGME error: Invalid crypto engine
error: GPGME error: Invalid crypto engine
error: GPGME error: Invalid crypto engine
error: GPGME error: Invalid crypto engine
error: GPGME error: Invalid crypto engine
error: GPGME error: Invalid crypto engine
error: GPGME error: Invalid crypto engine
error: GPGME error: Invalid crypto engine
error: GPGME error: Invalid crypto engine
error: GPGME error: Invalid crypto engine
error: lib32-glibc: missing required signature
:: File /var/cache/pacman/pkg/lib32-glibc-2.36-5-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] ^[[A^[[B
error: xz: missing required signature
:: File /var/cache/pacman/pkg/xz-5.2.7-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: apache: missing required signature
:: File /var/cache/pacman/pkg/apache-2.4.54-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: cairomm: missing required signature
:: File /var/cache/pacman/pkg/cairomm-1.14.4-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] n
error: pango: missing required signature
:: File /var/cache/pacman/pkg/pango-1:1.50.11-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: hwdata: missing required signature
:: File /var/cache/pacman/pkg/hwdata-0.363-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] n^C
Interrupt signal received

[manjaro-gnome pkg]# pacman -U https://mirror.alpix.eu/manjaro/stable/core/x86_64/lib32-glibc-2.36-5-x86_64.pkg.tar.zst
loading packages...
error: GPGME error: Invalid crypto engine
error: GPGME error: Invalid crypto engine
error: '/var/cache/pacman/pkg/lib32-glibc-2.36-5-x86_64.pkg.tar.zst': invalid or corrupted package (PGP signature)

System can’t be updated :confused:

try running these from chroot of course:

rm -f /var/lib/pacman/sync/*
rm -rf /etc/pacman.d/gnupg
pacman -Scc
pacman-key --init
pacman-key --populate manjaro archlinux
pacman-key --refresh
pacman -Syu

can’t add new key because glib error

[manjaro-gnome pkg]# pacman-key --init
gpg: symbol lookup error: /usr/lib/libsqlite3.so.0: undefined symbol: exp, version GLIBC_2.29
chmod: cannot access '/etc/pacman.d/gnupg//trustdb.gpg': No such file or directory
awk: symbol lookup error: awk: undefined symbol: exp, version GLIBC_2.29
gpg: symbol lookup error: /usr/lib/libsqlite3.so.0: undefined symbol: exp, version GLIBC_2.29
gpg: symbol lookup error: /usr/lib/libsqlite3.so.0: undefined symbol: exp, version GLIBC_2.29
==> Generating pacman master key. This may take some time.
gpg: symbol lookup error: /usr/lib/libsqlite3.so.0: undefined symbol: exp, version GLIBC_2.29
==> Updating trust database...
gpg: symbol lookup error: /usr/lib/libsqlite3.so.0: undefined symbol: exp, version GLIBC_2.29
==> ERROR: Trust database could not be updated.

so exit chroot with:
exit
then run this:

sudo sed -i 's/ trap/#trap/' /usr/lib/manjaro-tools/util-mount.sh
exit | manjaro-chroot -a
sudo pacman-mirrors -f5
sudo pacman --sysroot /mnt -Qqn | sudo pacman --sysroot /mnt -Syu -

Packages are downloading

Could You explain all commands? The whole packages in the system are downloaded again?

did it already finished?
we used external pacman - from live usb - to repair your system … maybe reinstalling only glibc would be enough?

Packages are still downloading Current: 1600/2265

Maybe :confused:
But error again:

warning: Public keyring not found; have you run 'pacman-key --init'?
error: GPGME error: Invalid crypto engine
error: linux-api-headers: missing required signature
:: File /var/cache/pacman/pkg/linux-api-headers-5.18.15-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 

so if you press y, what happens?

How do that?

I have still errors:

error: ca-certificates: missing required signature
:: File /var/cache/pacman/pkg/ca-certificates-20220905-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: brotli: missing required signature
:: File /var/cache/pacman/pkg/brotli-1.0.9-8-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: libnghttp2: missing required signature
:: File /var/cache/pacman/pkg/libnghttp2-1.50.0-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: libpsl: missing required signature
:: File /var/cache/pacman/pkg/libpsl-0.21.1-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
:: File /var/cache/pacman/pkg/ca-certificates-20220905-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: brotli: missing required signature
:: File /var/cache/pacman/pkg/brotli-1.0.9-8-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package :: File /var/cache/pacman/pkg/zita-resampler-1.8.0-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: zsh: missing required signature
:: File /var/cache/pacman/pkg/zsh-5.9-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: zsh-completions: missing required signature
:: File /var/cache/pacman/pkg/zsh-completions-0.34.0-2-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.

ok, so lets try this, instead of trying to fix the signatures issues with commands:
open this file:
kate /mnt/etc/pacman.conf and edit this line:
SigLevel = Required DatabaseOptional - its on the 45 line
to look like this:
SigLevel = Optional TrustAll
save the file and try running the update again

Changed the line to
SigLevel = Optional TrustAll

The whole packages are downloading again :confused:

Total (   4/2221) 
``

cancel it, and rerun update only:

sudo pacman --sysroot /mnt -Syu

Same error:

rning: Public keyring not found; have you run 'pacman-key --init'?
error: GPGME error: Invalid crypto engine
warning: Public keyring not found; have you run 'pacman-key --init'?
error: GPGME error: Invalid crypto engine
error: xz: missing required signature
:: File /var/cache/pacman/pkg/xz-5.2.7-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] Y
error: apache: missing required signature
:: File /var/cache/pacman/pkg/apache-2.4.54-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] Y
error: cairomm: missing required signature
:: File /var/cache/pacman/pkg/cairomm-1.14.4-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] Y
error: pango: missing required signature
:: File /var/cache/pacman/pkg/pango-1:1.50.11-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: hwdata: missing required signature
:: File /var/cache/pacman/pkg/hwdata-0.363-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: xkeyboard-config: missing required signature
:: File /var/cache/pacman/pkg/xkeyboard-config-2.37-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: code: missing required signature
:: File /var/cache/pacman/pkg/code-1.72.0-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: dconf-editor: missing required signature
:: File /var/cache/pacman/pkg/dconf-editor-43.0-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
:: File /var/cache/pacman/pkg/yelp-xsl-42.1-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.

in pacman.conf there are lines:

[core]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

[extra]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

[community]
SigLevel = PackageRequired
Include = /etc/pacman.d/mirrorlist

Maybe sigLevel also change?

Changed this and rerun sudo pacman --sysroot /mnt -Syu and still the same error

chnaged to NEVER and packages are upgrading

ok good, hopefully no more errors