You are not logged in.

#1 2022-09-14 22:19:36

FearTheDragon
Member
Registered: 2020-04-11
Posts: 27

[Solved] error: failed to commit transaction (invalid or corrupted pac

 :: File /var/cache/pacman/pkg/yay-11.3.0-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded. 

I found a very old usb drive of arch that I was missing for a long time, and I want to use it again. I assume this error is because I have not used/updated in a long time. I've tried

Resetting my keys in a million different ways

pacman-key --init  && pacman-key --populate 
 sudo rm -r /etc/pacman.d/gnupg
sudo pacman -Sy gnupg archlinux-keyring 
sudo pacman-key --init
sudo pacman-key --populate archlinux  
sudo pacman-key --refresh-keys  

Updating it won't work because of this. Do you know how to fix it? Any help would be very much appreciated!

Last edited by FearTheDragon (2022-09-15 01:37:08)

Offline

#2 2022-09-14 22:33:18

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,486

Re: [Solved] error: failed to commit transaction (invalid or corrupted pac

Why is there a yay package in your package cache?
Is this archlinux-archlinux or manjaro-archlinux or something else?
What repos did you add and which one provides yay?

Offline

#3 2022-09-14 23:27:53

FearTheDragon
Member
Registered: 2020-04-11
Posts: 27

Re: [Solved] error: failed to commit transaction (invalid or corrupted pac

This was an old drive so I'm not 100% sure why I have yay. Probably downloaded it a while ago when pacman couldn't find something, probably.
This is arch linux, not manjaro!

This is my entire error message after I try to update my system:

error: filesystem: signature from "Philip Müller (Called Little) <philm@manjaro.org>" is unknown trust
:: File /var/cache/pacman/pkg/filesystem-2022.06.08-3-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: bashrc-manjaro: signature from "Mark Wagie <mark@manjaro.org>" is unknown trust
:: File /var/cache/pacman/pkg/bashrc-manjaro-5.1.016-2-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: bash: signature from "Mark Wagie <mark@manjaro.org>" is unknown trust
:: File /var/cache/pacman/pkg/bash-5.1.016-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: python-npyscreen: signature from "Mark Wagie <mark@manjaro.org>" is unknown trust
:: File /var/cache/pacman/pkg/python-npyscreen-4.10.5-7-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: pacman-mirrors: signature from "Mark Wagie <mark@manjaro.org>" is unknown trust
:: File /var/cache/pacman/pkg/pacman-mirrors-4.23.2-2-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: pacman: signature from "Mark Wagie <mark@manjaro.org>" is unknown trust
:: File /var/cache/pacman/pkg/pacman-6.0.1-12-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: manjaro-keyring: signature from "Mark Wagie <mark@manjaro.org>" is unknown trust
:: File /var/cache/pacman/pkg/manjaro-keyring-20220514-2-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: base: signature from "Philip Müller (Called Little) <philm@manjaro.org>" is unknown trust
:: File /var/cache/pacman/pkg/base-3-2-any.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: libxpresent: signature from "Philip Müller (Called Little) <philm@manjaro.org>" is unknown trust
:: File /var/cache/pacman/pkg/libxpresent-1.0.0+2+gdd6771c-2-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: nvidia-utils: signature from "Mark Wagie <mark@manjaro.org>" is unknown trust
:: File /var/cache/pacman/pkg/nvidia-utils-515.65.01-3-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: mugshot: signature from "Mark Wagie <mark@manjaro.org>" is unknown trust
:: File /var/cache/pacman/pkg/mugshot-0.4.3-3-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: optimus-manager: signature from "Bernhard Landauer <bernhard@manjaro.org>" is unknown trust
:: File /var/cache/pacman/pkg/optimus-manager-1.4+r12-2-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: snapd: signature from "Mark Wagie <mark@manjaro.org>" is unknown trust
:: File /var/cache/pacman/pkg/snapd-2.57.1-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: snapd-glib: signature from "Mark Wagie <mark@manjaro.org>" is unknown trust
:: File /var/cache/pacman/pkg/snapd-glib-1.63-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: game-devices-udev: signature from "Mark Wagie <mark@manjaro.org>" is unknown trust
:: File /var/cache/pacman/pkg/game-devices-udev-0.17-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: lib32-libxcrypt-compat: signature from "Mark Wagie <mark@manjaro.org>" is unknown trust
:: File /var/cache/pacman/pkg/lib32-libxcrypt-compat-4.4.28-4-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: steam: signature from "Mark Wagie <mark@manjaro.org>" is unknown trust
:: File /var/cache/pacman/pkg/steam-1.0.0.75-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: timeshift: signature from "Mark Wagie <mark@manjaro.org>" is unknown trust
:: File /var/cache/pacman/pkg/timeshift-22.06.5-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: xfce4-pulseaudio-plugin: signature from "Mark Wagie <mark@manjaro.org>" is unknown trust
:: File /var/cache/pacman/pkg/xfce4-pulseaudio-plugin-0.4.4-1.1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: yay: signature from "Mark Wagie <mark@manjaro.org>" is unknown trust
:: File /var/cache/pacman/pkg/yay-11.3.0-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.

Offline

#4 2022-09-14 23:42:00

loqs
Member
Registered: 2014-03-06
Posts: 18,964

Re: [Solved] error: failed to commit transaction (invalid or corrupted pac

If it is not manjaro why do the packages have signatures with @manjaro.org addresses instead of @archlinux.org?

error: filesystem: signature from "Philip Müller (Called Little) <philm@manjaro.org>" is unknown trust
:: File /var/cache/pacman/pkg/filesystem-2022.06.08-3-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
...
error: bash: signature from "Mark Wagie <mark@manjaro.org>" is unknown trust
:: File /var/cache/pacman/pkg/bash-5.1.016-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
...
error: pacman: signature from "Mark Wagie <mark@manjaro.org>" is unknown trust
:: File /var/cache/pacman/pkg/pacman-6.0.1-12-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
...
error: manjaro-keyring: signature from "Mark Wagie <mark@manjaro.org>" is unknown trust
:: File /var/cache/pacman/pkg/manjaro-keyring-20220514-2-any.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).

Offline

#5 2022-09-14 23:46:11

FearTheDragon
Member
Registered: 2020-04-11
Posts: 27

Re: [Solved] error: failed to commit transaction (invalid or corrupted pac

I have no idea, to be honest. I installed pamac to see if pamac update would work and fix this. I also installed manjaro keyrings earlier to see if that would work.

I am using arch though that's why I went onto this forum for help XD

Offline

#6 2022-09-14 23:55:07

loqs
Member
Registered: 2014-03-06
Posts: 18,964

Re: [Solved] error: failed to commit transaction (invalid or corrupted pac

The issue is self explanatory the packages are not signed by a key in the archlinux-keyring so pacman is correctly rejecting the signatures as unknown.
The packages were built for Manjaro as indicated by the signature rather than Arch so using them on an Arch install would at best produced unsupported and unknown behavior.

What is the output of

pacman -Qi pacman filesystem
pacman-conf

Last edited by loqs (2022-09-15 00:07:29)

Offline

#7 2022-09-15 00:15:59

FearTheDragon
Member
Registered: 2020-04-11
Posts: 27

Re: [Solved] error: failed to commit transaction (invalid or corrupted pac

This is the output of pacman -Qi pacman filesystem

 pacman -Qi pacman filesystem
Name            : pacman
Version         : 6.0.1-7
Description     : A library-based package manager with dependency support
Architecture    : x86_64
URL             : https://www.archlinux.org/pacman/
Licenses        : GPL
Groups          : base-devel
Provides        : libalpm.so=13-64
Depends On      : bash  glibc  libarchive  curl  gpgme  pacman-mirrorlist
                  gettext  gawk  coreutils  gnupg  grep
Optional Deps   : perl-locale-gettext: translation support in makepkg-template
Required By     : appstream-glib  arch-install-scripts  archlinux-keyring  base
                  libpamac-full  yay
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 4.70 MiB
Packager        : Levente Polyak <anthraxx@archlinux.org>
Build Date      : Wed 20 Jul 2022 01:23:47 PM PDT
Install Date    : Fri 09 Sep 2022 11:52:40 PM PDT
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature

Name            : filesystem
Version         : 2021.12.07-1
Description     : Base Arch Linux files
Architecture    : x86_64
URL             : https://archlinux.org
Licenses        : GPL
Groups          : None
Provides        : None
Depends On      : iana-etc
Optional Deps   : None
Required By     : base  fakeroot  glibc  mkinitcpio
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 21.19 KiB
Packager        : Sébastien Luttringer <seblu@seblu.net>
Build Date      : Mon 06 Dec 2021 06:41:28 PM PST
Install Date    : Mon 10 Jan 2022 03:23:56 PM PST
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature
 

This is the output of pacman-conf

 
pacman-conf
[options]
RootDir = /
DBPath = /var/lib/pacman/
CacheDir = /var/cache/pacman/pkg/
HookDir = /etc/pacman.d/hooks/
GPGDir = /etc/pacman.d/gnupg/
LogFile = /var/log/pacman.log
HoldPkg = pacman
HoldPkg = glibc
Architecture = x86_64
CheckSpace
ParallelDownloads = 1
CleanMethod = KeepInstalled
SigLevel = PackageRequired
SigLevel = PackageTrustedOnly
SigLevel = DatabaseOptional
SigLevel = DatabaseTrustedOnly
LocalFileSigLevel = PackageOptional
LocalFileSigLevel = PackageTrustedOnly
[core]
Usage = All
Server = https://mirror.csclub.uwaterloo.ca/manjaro/stable/core/x86_64
Server = https://muug.ca/mirror/manjaro/stable/core/x86_64
Server = http://ftp.belnet.be/mirrors/manjaro/repos/stable/core/x86_64
Server = https://ftp.icm.edu.pl/pub/Linux/dist/manjaro/stable/core/x86_64
Server = http://ftp.snt.utwente.nl/pub/linux/manjaro/stable/core/x86_64
Server = https://manjaro.kyberorg.fi/stable/core/x86_64
Server = https://mirror.kku.ac.th/manjaro/stable/core/x86_64
Server = https://ba.mirror.garr.it/mirrors/manjaro/stable/core/x86_64
[extra]
Usage = All
Server = https://mirror.csclub.uwaterloo.ca/manjaro/stable/extra/x86_64
Server = https://muug.ca/mirror/manjaro/stable/extra/x86_64
Server = http://ftp.belnet.be/mirrors/manjaro/repos/stable/extra/x86_64
Server = https://ftp.icm.edu.pl/pub/Linux/dist/manjaro/stable/extra/x86_64
Server = http://ftp.snt.utwente.nl/pub/linux/manjaro/stable/extra/x86_64
Server = https://manjaro.kyberorg.fi/stable/extra/x86_64
Server = https://mirror.kku.ac.th/manjaro/stable/extra/x86_64
Server = https://ba.mirror.garr.it/mirrors/manjaro/stable/extra/x86_64
[community]
Usage = All
Server = https://mirror.csclub.uwaterloo.ca/manjaro/stable/community/x86_64
Server = https://muug.ca/mirror/manjaro/stable/community/x86_64
Server = http://ftp.belnet.be/mirrors/manjaro/repos/stable/community/x86_64
Server = https://ftp.icm.edu.pl/pub/Linux/dist/manjaro/stable/community/x86_64
Server = http://ftp.snt.utwente.nl/pub/linux/manjaro/stable/community/x86_64
Server = https://manjaro.kyberorg.fi/stable/community/x86_64
Server = https://mirror.kku.ac.th/manjaro/stable/community/x86_64
Server = https://ba.mirror.garr.it/mirrors/manjaro/stable/community/x86_64
[multilib]
Usage = All
Server = https://mirror.csclub.uwaterloo.ca/manjaro/stable/multilib/x86_64
Server = https://muug.ca/mirror/manjaro/stable/multilib/x86_64
Server = http://ftp.belnet.be/mirrors/manjaro/repos/stable/multilib/x86_64
Server = https://ftp.icm.edu.pl/pub/Linux/dist/manjaro/stable/multilib/x86_64
Server = http://ftp.snt.utwente.nl/pub/linux/manjaro/stable/multilib/x86_64
Server = https://manjaro.kyberorg.fi/stable/multilib/x86_64
Server = https://mirror.kku.ac.th/manjaro/stable/multilib/x86_64
Server = https://ba.mirror.garr.it/mirrors/manjaro/stable/multilib/x86_64

Thank you so much for your help by the way!

Offline

#8 2022-09-15 00:28:29

loqs
Member
Registered: 2014-03-06
Posts: 18,964

Re: [Solved] error: failed to commit transaction (invalid or corrupted pac

All the mirrors are for Manjaro rather than Arch while the installed system is Arch.

[core]
Usage = All
Server = https://mirror.csclub.uwaterloo.ca/manjaro/stable/core/x86_64
Server = https://muug.ca/mirror/manjaro/stable/core/x86_64
Server = http://ftp.belnet.be/mirrors/manjaro/repos/stable/core/x86_64
Server = https://ftp.icm.edu.pl/pub/Linux/dist/manjaro/stable/core/x86_64
Server = http://ftp.snt.utwente.nl/pub/linux/manjaro/stable/core/x86_64
Server = https://manjaro.kyberorg.fi/stable/core/x86_64
Server = https://mirror.kku.ac.th/manjaro/stable/core/x86_64
Server = https://ba.mirror.garr.it/mirrors/manjaro/stable/core/x86_64
[extra]
Usage = All
Server = https://mirror.csclub.uwaterloo.ca/manjaro/stable/extra/x86_64
Server = https://muug.ca/mirror/manjaro/stable/extra/x86_64
Server = http://ftp.belnet.be/mirrors/manjaro/repos/stable/extra/x86_64
Server = https://ftp.icm.edu.pl/pub/Linux/dist/manjaro/stable/extra/x86_64
Server = http://ftp.snt.utwente.nl/pub/linux/manjaro/stable/extra/x86_64
Server = https://manjaro.kyberorg.fi/stable/extra/x86_64
Server = https://mirror.kku.ac.th/manjaro/stable/extra/x86_64
Server = https://ba.mirror.garr.it/mirrors/manjaro/stable/extra/x86_64
[community]
Usage = All
Server = https://mirror.csclub.uwaterloo.ca/manjaro/stable/community/x86_64
Server = https://muug.ca/mirror/manjaro/stable/community/x86_64
Server = http://ftp.belnet.be/mirrors/manjaro/repos/stable/community/x86_64
Server = https://ftp.icm.edu.pl/pub/Linux/dist/manjaro/stable/community/x86_64
Server = http://ftp.snt.utwente.nl/pub/linux/manjaro/stable/community/x86_64
Server = https://manjaro.kyberorg.fi/stable/community/x86_64
Server = https://mirror.kku.ac.th/manjaro/stable/community/x86_64
Server = https://ba.mirror.garr.it/mirrors/manjaro/stable/community/x86_64
[multilib]
Usage = All
Server = https://mirror.csclub.uwaterloo.ca/manjaro/stable/multilib/x86_64
Server = https://muug.ca/mirror/manjaro/stable/multilib/x86_64
Server = http://ftp.belnet.be/mirrors/manjaro/repos/stable/multilib/x86_64
Server = https://ftp.icm.edu.pl/pub/Linux/dist/manjaro/stable/multilib/x86_64
Server = http://ftp.snt.utwente.nl/pub/linux/manjaro/stable/multilib/x86_64
Server = https://manjaro.kyberorg.fi/stable/multilib/x86_64
Server = https://mirror.kku.ac.th/manjaro/stable/multilib/x86_64
Server = https://ba.mirror.garr.it/mirrors/manjaro/stable/multilib/x86_64

Check /etc/pacman.d/mirrorlist and /etc/pacman.conf and replace those mirrors with Arch mirrors then perform a full system update forcing an update of the databases

pacman -Syyu

Offline

#9 2022-09-15 01:25:12

FearTheDragon
Member
Registered: 2020-04-11
Posts: 27

Re: [Solved] error: failed to commit transaction (invalid or corrupted pac

Hey, thank you so much! It completely worked! I have no idea why my mirror list was manjaro instead of arch, but now it works perfectly fine. Thank you so much!

Offline

Board footer

Powered by FluxBB