So I have been trying to fix this myself in order to learn more but I am stuck with anything to do with pacman
I have seen from other discussions here and on other forums different things and have followed many wiki’s and guides but no progress.
Also currently /etc/pacman.conf is set to
SigLevel = Never
I am currently in a live environment but I have also tried without being in it.
Any help is much appreciated
[manjaro /]# pacman -S vlc
:: Some packages should be upgraded first...
resolving dependencies...
looking for conflicting packages...
Packages (1) archlinux-keyring-20231207-1
Total Download Size: 1.15 MiB
Total Installed Size: 1.64 MiB
Net Upgrade Size: 0.02 MiB
:: Proceed with installation? [Y/n]
:: Retrieving packages...
archlinux-keyring-20231207-1-any
archlinux-keyring-20231207-1-any 1180.2 KiB 1033 KiB/s 00:01 [#######################################################] 100%
(1/1) checking keys in keyring [#######################################################] 100%
warning: Public keyring not found; have you run 'pacman-key --init'?
error: GPGME error: Invalid crypto engine
(1/1) checking package integrity [#######################################################] 100%
warning: Public keyring not found; have you run 'pacman-key --init'?
error: GPGME error: Invalid crypto engine
error: archlinux-keyring: missing required signature
:: File /var/cache/pacman/pkg/archlinux-keyring-20231207-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.
warning: vlc-3.0.20-2 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
Packages (1) vlc-3.0.20-2
Total Download Size: 11.70 MiB
Total Installed Size: 59.96 MiB
Net Upgrade Size: 0.00 MiB
:: Proceed with installation? [Y/n]
:: Retrieving packages...
vlc-3.0.20-2-x86_64 11.7 MiB 1525 KiB/s 00:08 [#######################################################] 100%
(1/1) checking keys in keyring [#######################################################] 100%
warning: Public keyring not found; have you run 'pacman-key --init'?
error: GPGME error: Invalid crypto engine
(1/1) checking package integrity [#######################################################] 100%
warning: Public keyring not found; have you run 'pacman-key --init'?
error: GPGME error: Invalid crypto engine
error: vlc: missing required signature
:: File /var/cache/pacman/pkg/vlc-3.0.20-2-x86_64.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.
pacman -S glibc
:: Some packages should be upgraded first...
resolving dependencies...
looking for conflicting packages...
Packages (1) archlinux-keyring-20231207-1
Total Download Size: 1.15 MiB
Total Installed Size: 1.64 MiB
Net Upgrade Size: 0.02 MiB
:: Proceed with installation? [Y/n]
:: Retrieving packages...
archlinux-keyring-20231207-1-any 1180.2 KiB 291 KiB/s 00:04 [#######################################################] 100%
(1/1) checking keys in keyring [#######################################################] 100%
warning: Public keyring not found; have you run 'pacman-key --init'?
error: GPGME error: Invalid crypto engine
(1/1) checking package integrity [#######################################################] 100%
warning: Public keyring not found; have you run 'pacman-key --init'?
error: GPGME error: Invalid crypto engine
error: archlinux-keyring: missing required signature
:: File /var/cache/pacman/pkg/archlinux-keyring-20231207-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.
resolving dependencies...
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: installing glibc (2.38-7) breaks dependency 'glibc=2.37' required by lib32-glibc
[manjaro /]# pacman-key --init
gpg: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by gpg)
chmod: cannot access '/etc/pacman.d/gnupg//trustdb.gpg': No such file or directory
gpg: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by gpg)
gpg: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by gpg)
==> Generating pacman master key. This may take some time.
gpg: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by gpg)
==> Updating trust database...
gpg: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by gpg)
==> ERROR: Trust database could not be updated.
[manjaro /]#
That is a classical partial-update which breaks now core functionality. Really, if you install anything upgrade everything beforehand, otherwise it will break on a rolling-release model.
gpg needs GLIBC_2.38, but installed is a lower version. You can try fixing that on a live session like that:
Start a live session.
Mount your root partition:
sudo mount -m /dev/sda1 /mnt/system
Replace sda1 with the appropriate block device. See lsblk --fs
Include system directory:
cd /mnt/system
sudo mount -t proc /proc proc/
sudo mount -t sysfs /sys sys/
sudo mount --rbind /dev dev/
Copy the pacman.conf from the live session into your installation:
Here are a few but i have been looking for a while and across multiple devices as I wanted to learn more as I try to fix it.
Here are a few from my history on this device in no particular order
I don’t remember where or when but have set it back to
SigLevel = Required DatabaseOptional
Im looking into it now
I will restart live boot now as it fails
[manjaro manjaro]# mount -m /dev/encryp /mnt/system
mount: /mnt/system: special device /dev/encryp does not exist.
dmesg(1) may have more information after failed mount system call.