Fresh install and upgrade gives signature errors

Just installed KDE version, then did an upgrade, and got a number if signature errors like this one:

error: python-idna: signature from “Chih-Hsuan Yen yan12125@archlinux.org” is unknown trust
:: File /var/cache/pacman/pkg/python-idna-3.7-1-any.pkg.tar.zst is corrupted (invalid or corrupted package (PG
P signature)).
Do you want to delete it? [Y/n]

If I delete them, I get:

error: failed to commit transaction (invalid or corrupted package)
Errors occurred, no packages were upgraded.

Also won’t install if I leave them.

Any help will be greatly appreciated. Thanks!

To get the easy stuff out of the way first, did you use a recent ISO for your installation? That particular archlinux key was updated back in May.

1 Like

I would start by removing the cache:

sudo pacman -Scc

Then try a sync/update (after sorting mirrors):

sudo pacman-mirrors -f && sudo pacman -Syu

If it still does not work and you want to fix it then you might use this approach (just checked the the URLs/filenames are still accurate):

1 Like

It’s very likely an older ISO. I thought it was recent, but now that I think about it, it was a bit ago.

I’ll try the other suggestions, but maybe have to grab a more recent ISO. Thanks!

Yeah, none of this seemed to help, so I will likely need a fresher ISO and reinstall.

I ran into a similar problem when trying to update a laptop that hasn’t been run in a few months. I ran

sudo pacman -Sy --needed archlinux-keyring manjaro-keyring

to update only the keyrings first. After that, the normal sudo pacman -Syu worked without problems. In fact, since all the packages to be upgaded had already been downloaded earlier (before the update aborted with the error message that you mentioned), the update completed pretty quickly.

Hope this works for you, and that you don’t need to do a full reinstall.

The keys are always updated first. And Sy without u is a recipe for disaster. Don’t do it.

1 Like

I grabbed a more recent ISO and installed from it. Everything is great now! Thanks to all of you for the quick responses!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.