Update fails: invalid or damaged package

Hi,
at 8pm (20:00 cest) I did my daily "pacman -Syu and the update failed with this report:

Error: protontricks-git: Signature of 'Nico Jensch (Chaotic-AUR) <dr460nf1r3
garudalinux.org>' is invalid
:: /var/cache/pacman/pkg/protontricks-git-1.6.0.r1.g4ab6784-1-any.pkg.tar.zst file is damaged (invalid or damaged package (PGP signature)).
Do you want to remove the file? [Y / n]
Error: The operation could not be performed (invalid or damaged package)
Errors occurred, no packages were updated.

Afterwards I checked the sigs:

pacman-key --list-sigs Jensch
gpg: Note: The "trustdb" is not writable
pub   rsa4096 2021-03-30 [SC] [expires: 2023-03-30]
1949E60D299007430C94DC0657F3D9CC660431DD
uid        [completely] Nico Jensch <dr460nf1r3@garudalinux.org>
sig 3        57F3D9CC660431DD 2021-03-30  Nico Jensch <dr460nf1r3@garudalinux.org>
sig   L      C3AF4995A711F966 2021-08-14  Pacman Keyring Master Key <pacman@localhost>
sub   rsa4096 2021-03-30 [E] [epires: 2023-03-30]
sig          57F3D9CC660431DD 2021-03-30  Nico Jensch <dr460nf1r3@garudalinux.org>

pub   rsa4096 2021-06-15 [SC] [verfällt: 2023-06-15]
A3873AB27021C5DD39E0501AFBA220DFC880C036
uid        [completely] Nico Jensch (Chaotic-AUR) <dr460nf1r3@garudalinux.org>
sig 3        FBA220DFC880C036 2021-06-15  Nico Jensch (Chaotic-AUR) <dr460nf1r3@garudalinux.org>
sig   L      C3AF4995A711F966 2021-08-14  Pacman Keyring Master Key <pacman@localhost>
sub   rsa4096 2021-06-16 [S] [expires: 2023-06-16]
sig          FBA220DFC880C036 2021-06-16  Nico Jensch (Chaotic-AUR) <dr460nf1r3@garudalinux.org>
sub   rsa4096 2021-06-15 [E] [expires: 2023-06-15]
sig          FBA220DFC880C036 2021-06-15  Nico Jensch (Chaotic-AUR) <dr460nf1r3@garudalinux.org>

The signatures look fine to me. Likewise the master signatures.

Then I followed Issues with “signature is marginal trust” or “invalid or corrupted package” from Faq and tutorial here at garuda-forums. But no avail.
Now I need some help. I'd really appreciate it.

Btw: Yesterday I've had a similar problem with an other corrupted package/sig. But deleteing the sig (pacman-key --delete "longalphnummericline") and populate (pacman-key --populate archlinux) solved the problem.
I'm wondering why I have no such problems with my other machines.

In case it is needed:

inxi -Faz

System:    Kernel: 5.13.9-zen1-1-zen x86_64 bits: 64 compiler: gcc v: 11.1.0  
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen root=UUID=d6d501bd-5b43-4769-b3b0-1747ad3e37cd rw  
rootflags=subvol=@ rd.udev.log_priority=3 vt.global_cursor_default=0 systemd.unified_cgroup_hierarchy=1 loglevel=3
acpi_enforce_resources=lax sysrq_always_enabled=1 amdgpu.ppfeaturemask=0xffffffff
Desktop: KDE Plasma 5.22.4 tk: Qt 5.15.2 wm: kwin_x11 vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux  
Machine:   Type: Desktop Mobo: ASUSTeK model: ROG STRIX X570-E GAMING v: Rev X.0x serial: <filter> UEFI: American Megatrends  
v: 4005 date: 07/13/2021  
Battery:   ID-1: hidpp_battery_0 charge: N/A condition: N/A volts: 3.9 min: N/A  
model: Logitech G502 LIGHTSPEED Wireless Gaming Mouse type: N/A serial: <filter> status: Discharging  
CPU:       Info: 8-Core model: AMD Ryzen 7 3700X bits: 64 type: MT MCP arch: Zen 2 family: 17 (23) model-id: 71 (113)  
stepping: 0 microcode: 8701021 cache: L2: 4 MiB  
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 114985  
Speed: 2195 MHz min/max: 2200/3600 MHz boost: enabled Core speeds (MHz): 1: 2195 2: 2196 3: 2196 4: 2196 5: 2153  
6: 2466 7: 4315 8: 2154 9: 2195 10: 2196 11: 2155 12: 2467 13: 4311 14: 2160 15: 2191 16: 2198  
Vulnerabilities: Type: itlb_multihit status: Not affected  
Type: l1tf status: Not affected  
Type: mds status: Not affected  
Type: meltdown status: Not affected  
Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl and seccomp  
Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization  
Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, STIBP: conditional, RSB filling  
Type: srbds status: Not affected  
Type: tsx_async_abort status: Not affected  
Graphics:  Device-1: Advanced Micro Devices [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] vendor: ASUSTeK  
driver: amdgpu v: kernel bus-ID: 0a:00.0 chip-ID: 1002:67df class-ID: 0300  
Display: x11 server: X.Org 1.20.13 compositor: kwin_x11 driver: loaded: amdgpu,ati unloaded: modesetting  
alternate: fbdev,vesa display-ID: :0 screens: 1  
Screen-1: 0 s-res: 3840x1080 s-dpi: 96 s-size: 1016x285mm (40.0x11.2") s-diag: 1055mm (41.5")  
Monitor-1: DisplayPort-0 res: 1920x1080 hz: 60 dpi: 92 size: 531x299mm (20.9x11.8") diag: 609mm (24")  
Monitor-2: HDMI-A-0 res: 1920x1080 hz: 60 dpi: 102 size: 477x268mm (18.8x10.6") diag: 547mm (21.5")  
OpenGL: renderer: Radeon RX 570 Series (POLARIS10 DRM 3.41.0 5.13.9-zen1-1-zen LLVM 12.0.1) v: 4.6 Mesa 21.1.6  
direct render: Yes  
Audio:     Device-1: AMD Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590] vendor: ASUSTeK driver: snd_hda_intel  
v: kernel bus-ID: 0a:00.1 chip-ID: 1002:aaf0 class-ID: 0403  
Device-2: Advanced Micro Devices [AMD] Starship/Matisse HD Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel  
bus-ID: 0c:00.4 chip-ID: 1022:1487 class-ID: 0403  
Sound Server-1: ALSA v: k5.13.9-zen1-1-zen running: yes  
Sound Server-2: JACK v: 1.9.19 running: no  
Sound Server-3: PulseAudio v: 15.0 running: yes  
Sound Server-4: PipeWire v: 0.3.33 running: yes  
Network:   Device-1: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel bus-ID: 04:00.0 chip-ID: 8086:2723 class-ID: 0280  
IF: wlp4s0 state: down mac: <filter>  
Device-2: Realtek RTL8125 2.5GbE vendor: ASUSTeK driver: r8169 v: kernel port: e000 bus-ID: 05:00.0  
chip-ID: 10ec:8125 class-ID: 0200  
IF: enp5s0 state: up speed: 1000 Mbps duplex: full mac: <filter>  
Device-3: Intel I211 Gigabit Network vendor: ASUSTeK driver: igb v: kernel port: d000 bus-ID: 06:00.0  
chip-ID: 8086:1539 class-ID: 0200  
IF: enp6s0 state: down mac: <filter>  
IF-ID-1: anbox0 state: down mac: <filter>  
Bluetooth: Device-1: Intel AX200 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 1-6:5 chip-ID: 8087:0029 class-ID: e001  
Report: bt-adapter ID: hci0 rfk-id: 0 state: up address: <filter>  
Drives:    Local Storage: total: 12.31 TiB used: 265.12 GiB (2.1%)  
SMART Message: Unable to run smartctl. Root privileges required.  
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: SSD 970 EVO Plus 500GB size: 465.76 GiB block-size:  
physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter> rev: 2B2QEXM7 temp: 54.9 C  
scheme: GPT  
ID-2: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 860 EVO 1TB size: 931.51 GiB block-size: physical: 512 B  
logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> rev: 4B6Q scheme: GPT  
ID-3: /dev/sdb maj-min: 8:16 vendor: Samsung model: SSD 860 EVO 1TB size: 931.51 GiB block-size: physical: 512 B  
logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> rev: 4B6Q scheme: GPT  
ID-4: /dev/sdc maj-min: 8:32 vendor: Seagate model: ST1000DM010-2EP102 size: 931.51 GiB block-size:  
physical: 4096 B logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 7200 serial: <filter> rev: CC43 scheme: GPT
ID-5: /dev/sdd maj-min: 8:48 type: USB vendor: Seagate model: Expansion Desk size: 5.46 TiB block-size:
physical: 4096 B logical: 512 B type: N/A serial: <filter> rev: 9401 scheme: GPT
ID-6: /dev/sde maj-min: 8:64 type: USB vendor: SanDisk model: Cruzer Slice size: 29.82 GiB block-size:
physical: 512 B logical: 512 B type: N/A serial: <filter> rev: 1.20 scheme: MBR
SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
ID-7: /dev/sdf maj-min: 8:80 type: USB vendor: Western Digital model: WD Elements 25A3 size: 3.64 TiB block-size:
physical: 4096 B logical: 512 B type: N/A serial: <filter> rev: 1019 scheme: GPT
Partition: ID-1: / raw-size: 125.76 GiB size: 125.76 GiB (100.00%) used: 35.62 GiB (28.3%) fs: btrfs dev: /dev/nvme0n1p5
maj-min: 259:5
ID-2: /boot/efi raw-size: 100 MiB size: 96 MiB (96.00%) used: 32 MiB (33.4%) fs: vfat dev: /dev/nvme0n1p1
maj-min: 259:1
ID-3: /home raw-size: 125.76 GiB size: 125.76 GiB (100.00%) used: 35.62 GiB (28.3%) fs: btrfs dev: /dev/nvme0n1p5
maj-min: 259:5
ID-4: /var/log raw-size: 125.76 GiB size: 125.76 GiB (100.00%) used: 35.62 GiB (28.3%) fs: btrfs
dev: /dev/nvme0n1p5 maj-min: 259:5
ID-5: /var/tmp raw-size: 125.76 GiB size: 125.76 GiB (100.00%) used: 35.62 GiB (28.3%) fs: btrfs
dev: /dev/nvme0n1p5 maj-min: 259:5
Swap:      Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 31.26 GiB used: 0 KiB (0.0%) priority: 100 dev: /dev/zram0
Sensors:   System Temperatures: cpu: 56.4 C mobo: 37.0 C gpu: amdgpu temp: 66.0 C
Fan Speeds (RPM): fan-1: 758 fan-2: 1459 fan-3: 0 fan-4: 0 fan-5: 0 fan-6: 0 gpu: amdgpu fan: 488
Info:      Processes: 537 Uptime: 1d 5h 44m wakeups: 110 Memory: 31.27 GiB used: 15.54 GiB (49.7%) Init: systemd v: 249
tool: systemctl Compilers: gcc: 11.1.0 clang: 12.0.1 Packages: pacman: 1920 lib: 556 Shell: Zsh v: 5.8
running-in: konsole inxi: 3.3.06
2 Likes
3 Likes

Thank you for the hint! I just forgot to reread how to post properly.

1 Like

Its possible that the package is in fact corrupted :eyes:
Can't fix it right now, will do so tomorrow morning :slight_smile:

4 Likes

Thank you for your quick reply. I'll wait. Enjoy your weekend!

2 Likes

Delete the bad keyring and repopulate?

Was there any update on how to fix this? I have been through all the guides on here and still have the issue, nothing seems to work (see below) - tried to remove the package itself and says that it does not exist. This is a clean install and I'm wanting to install other things like steam for the first time and it always wants to update the proton tricks which fails and then also stops the install of whatever other software there is.

:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (1) protontricks-git-1.6.0.r1.g4ab6784-1

Total Download Size:   0.06 MiB
Total Installed Size:  0.20 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
protontricks-git-1.6.0.r1.g4ab6784-1-any                                                  59.4 KiB   101 KiB/s 00:01 [----------------------------------------------------------------------] 100%
(1/1) checking keys in keyring                                                                                        [----------------------------------------------------------------------] 100%
(1/1) checking package integrity                                                                                      [----------------------------------------------------------------------] 100%
error: protontricks-git: signature from "Nico Jensch (Chaotic-AUR) <dr460nf1r3@garudalinux.org>" is invalid
:: File /var/cache/pacman/pkg/protontricks-git-1.6.0.r1.g4ab6784-1-any.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.

Option 1

Please download the PKGBUILD and install it manually
https://aur.archlinux.org/cgit/aur.git/snapshot/protontricks.tar.gz
Download the above file and extract it to a new directory.
Open a terminal and cd into the new folder and run the command

makepkg -si

Option 2
Or use any aur helper, like yay

yay -S protontricks

Installed it right now, works fine with yay

1 Like

Gave that a try, still get the same error

[đź”´] Ă— yay -S protontricks
resolving dependencies...
looking for conflicting packages...

Packages (1) protontricks-git-1.6.0.r1.g4ab6784-1

Total Download Size:   0.06 MiB
Total Installed Size:  0.20 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
protontricks-git-1.6.0.r1.g4ab6784-1-any                                                  59.4 KiB  52.8 KiB/s 00:01 [----------------------------------------------------------------------] 100%
(1/1) checking keys in keyring                                                                                        [----------------------------------------------------------------------] 100%
(1/1) checking package integrity                                                                                      [----------------------------------------------------------------------] 100%
error: protontricks-git: signature from "Nico Jensch (Chaotic-AUR) <dr460nf1r3@garudalinux.org>" is invalid
:: File /var/cache/pacman/pkg/protontricks-git-1.6.0.r1.g4ab6784-1-any.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.

Clean your package cache.

yay -Scc

I installed it 5 minutes back, installed correctly.

still the same

tempest@GamingMew in ~/Downloads/protontricks took 8s
[đź”´] Ă— yay -Scc

Cache directory: /var/cache/pacman/pkg/
:: Do you want to remove ALL files from cache? [y/N] y
removing all files from cache...

Database directory: /var/lib/pacman/
:: Do you want to remove unused repositories? [Y/n] y
removing unused sync repositories...

Clone Directory: /home/tempest/.cache/paru/clone
:: Do you want to remove all other AUR packages from cache? [Y/n]: y

Diff Directory: /home/tempest/.cache/paru/diff
:: Do you want to remove all saved diffs? [Y/n]: y

╭─tempest@GamingMew in ~/Downloads/protontricks took 13s
╰─λ yay -S protontricks
resolving dependencies...
looking for conflicting packages...

Packages (1) protontricks-git-1.6.0.r1.g4ab6784-1

Total Download Size:   0.06 MiB
Total Installed Size:  0.20 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
protontricks-git-1.6.0.r1.g4ab6784-1-any                                                  59.4 KiB  49.9 KiB/s 00:01 [----------------------------------------------------------------------] 100%
(1/1) checking keys in keyring                                                                                        [----------------------------------------------------------------------] 100%
(1/1) checking package integrity                                                                                      [----------------------------------------------------------------------] 100%
error: protontricks-git: signature from "Nico Jensch (Chaotic-AUR) <dr460nf1r3@garudalinux.org>" is invalid
:: File /var/cache/pacman/pkg/protontricks-git-1.6.0.r1.g4ab6784-1-any.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.

Try the option 1 perhaps?

This is super wierd. Its working fine for me

i only get

╭─tempest@GamingMew in ~/Downloads/protontricks took 11s
[đź”´] Ă— makpkg -si
fish: Unknown command: makpkg

I got the file and extracted files - moved to that dir and tried the command and got above output.

Just wait :slight_smile:

3 Likes

Ahhhh, i think you are missing chaotic aur keyrings

sudo pacman -S base-devel --needed

I think it isnt, i installed it right now and it installed correctly.

1 Like

I get

─tempest@GamingMew in ~/Downloads/protontricks took 17ms
[đź”´] Ă— sudo pacman-key --populate archlinux
[sudo] password for tempest:
==> Appending keys from archlinux.gpg...
==> Locally signing trusted keys in keyring...
==> Importing owner trust values...
==> Disabling revoked keys in keyring...
==> Updating trust database...
gpg: next trustdb check due at 2021-10-12

╭─tempest@GamingMew in ~/Downloads/protontricks took 4s
╰─λ sudo pacman -S base-devel --needed
warning: autoconf-2.71-1 is up to date -- skipping
warning: automake-1.16.4-1 is up to date -- skipping
warning: binutils-2.36.1-3 is up to date -- skipping
warning: bison-3.7.6-1 is up to date -- skipping
warning: fakeroot-1.25.3-2 is up to date -- skipping
warning: file-5.40-5 is up to date -- skipping
warning: findutils-4.8.0-1 is up to date -- skipping
warning: flex-2.6.4-3 is up to date -- skipping
warning: gawk-5.1.0-1 is up to date -- skipping
warning: gcc-11.1.0-1 is up to date -- skipping
warning: gettext-0.21-1 is up to date -- skipping
warning: grep-3.6-1 is up to date -- skipping
warning: groff-1.22.4-6 is up to date -- skipping
warning: gzip-1.10-3 is up to date -- skipping
warning: libtool-2.4.6+42+gb88cebd5-16 is up to date -- skipping
warning: m4-1.4.19-1 is up to date -- skipping
warning: make-4.3-3 is up to date -- skipping
warning: pacman-6.0.0-5 is up to date -- skipping
warning: patch-2.7.6-8 is up to date -- skipping
warning: pkgconf-1.7.3-1 is up to date -- skipping
warning: sed-4.8-1 is up to date -- skipping
warning: sudo-1.9.7.p2-1 is up to date -- skipping
warning: texinfo-6.8-2 is up to date -- skipping
warning: which-2.21-5 is up to date -- skipping
there is nothing to do

╭─tempest@GamingMew in ~/Downloads/protontricks took 190ms
╰─λ makpkg -si
fish: Unknown command: makpkg

Thank you for your help by the way… im very used to debien distros this is my first arch base !

Typo alert
Its

makepkg -si

not

makpkg -si

Missed the e

1 Like

That was it!!! Oh thank you so so much !

Can we mark that answer as a solution !

Download and manual install worked!

thank you thank you thank you thank you !

I guess you can.

1 Like