You are not logged in.

#1 2023-01-14 14:22:16

Bobbins228
Member
From: Ireland
Registered: 2022-05-05
Posts: 31

[SOLVED] Getting corrupted package errors when trying to update

Hi,

I have been trying to run

sudo pacman -Syu

for a while but I keep getting corrupted packages.
I will get this message to import a gpg key.

Import PGP key 76A5EF9054449A5C, "Pierre Schmitz <pierre@archlinux.org>"?

When I agree I get this error

error: db5.3: signature from "Frederik Schwan <frederik.schwan@linux.com>" is unknown trust
:: File /var/cache/pacman/pkg/db5.3-5.3.28-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: jack2: signature from "Frederik Schwan <frederik.schwan@linux.com>" is unknown trust
:: File /var/cache/pacman/pkg/jack2-1.9.21-3-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: libical: signature from "Frederik Schwan <frederik.schwan@linux.com>" is unknown trust
:: File /var/cache/pacman/pkg/libical-3.0.16-4-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: binutils: signature from "Frederik Schwan <frederik.schwan@linux.com>" is unknown trust
:: File /var/cache/pacman/pkg/binutils-2.39-4-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: db: signature from "Frederik Schwan <frederik.schwan@linux.com>" is unknown trust
:: File /var/cache/pacman/pkg/db-6.2.32-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: fwupd: signature from "Frederik Schwan <frederik.schwan@linux.com>" is unknown trust
:: File /var/cache/pacman/pkg/fwupd-1.8.9-1-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: perl: signature from "Frederik Schwan <frederik.schwan@linux.com>" is unknown trust
:: File /var/cache/pacman/pkg/perl-5.36.0-3-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: pcsclite: signature from "Frederik Schwan <frederik.schwan@linux.com>" is unknown trust
:: File /var/cache/pacman/pkg/pcsclite-1.9.9-2-x86_64.pkg.tar.zst is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] y
error: libvirt: signature from "Frederik Schwan <frederik.schwan@linux.com>" is unknown trust
:: File /var/cache/pacman/pkg/libvirt-1:8.10.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: libvirt-python: signature from "Frederik Schwan <frederik.schwan@linux.com>" is unknown trust
:: File /var/cache/pacman/pkg/libvirt-python-1:8.10.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: python-rich: signature from "Frederik Schwan <frederik.schwan@linux.com>" is unknown trust
:: File /var/cache/pacman/pkg/python-rich-13.0.1-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)
Errors occurred, no packages were upgraded.

I followed this thread to try and refresh my GPG key but that didn't work.

Last edited by Bobbins228 (2023-01-14 15:55:12)

Offline

#2 2023-01-14 14:41:29

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,119

Re: [SOLVED] Getting corrupted package errors when trying to update

pacman -Sy archlinux-keyring && pacman -Syu

and make sure you use good mirrors with high completion and a low score: https://archlinux.org/mirrors/status/#successful

If the error doesn't change actually remove the mentioned packages from the cache manually and retry

Last edited by V1del (2023-01-14 14:43:01)

Offline

#3 2023-01-14 15:54:23

Bobbins228
Member
From: Ireland
Registered: 2022-05-05
Posts: 31

Re: [SOLVED] Getting corrupted package errors when trying to update

That worked thanks!

Offline

#4 2023-05-13 17:06:12

gcb
Member
Registered: 2014-02-12
Posts: 187

Re: [SOLVED] Getting corrupted package errors when trying to update

in case that doesn't fix it for you, clean all the keys and reinit them from the package data:

rm -rf /etc/pacman.d/gnupg/*
pacman-key --init
pacman-key --populate archlinux

(as root, using su, sudo or doas, etc)

Now, if someone smarter than me can explain why that happens... because i can't smile

Offline

#5 2023-05-13 22:09:32

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,646

Re: [SOLVED] Getting corrupted package errors when trying to update

The OP has not been back since April 3, and this thread is marked solved. Closing.

Offline

Board footer

Powered by FluxBB