You are not logged in.

#1 2014-02-24 11:23:06

hachel
Member
Registered: 2011-05-03
Posts: 25

[SOLVED] Pacman unable to install packages due to invalid or corrup...

Hullo,

I know this is a common error judging by the results google lists for that subject. But all sollutions I found don't work for my specific case.

My battery died on my laptop and when I rebooted and tried to install a package pacman complained the database was locked (can't remember if I was installing something or else while my battery died, happend while I was away).
So since I've just rebooted I deleted the lock-file by hand. Now when ever I tried to install something it would complain:

error: xyz: signature from "xyz @ zyx" is unknown trust
:: File /var/cache/pacman/pkg/packagexyz.pkg.tar.xz 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))

So I removed /etc/pacman.d/gnupg, cleared the package-cache and ran pacman-key --init:

gpg: /etc/pacman.d/gnupg/trustdb.gpg: trustdb created
gpg: no ultimately trusted keys found
gpg: Generating pacman keyring master key...
gpg: key B99666F8 marked as ultimately trusted
gpg: Done
==> Updating trust database...
gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
gpg: depth: 0  valid:   1  signed:   0  trust: 0-, 0q, 0n, 0m, 0f, 1u

followed by pacman-key --populate archlinux:

==> Appending keys from archlinux.gpg...
gpg: no valid OpenPGP data found.
==> Updating trust database...
gpg: no need for a trustdb check

and pacman-key --refresh-keys:

gpg: refreshing 1 key from hkp://pool.sks-keyservers.net
gpg: requesting key B99666F8 from hkp server pool.sks-keyservers.net
gpgkeys: key AA3E1E751B31AB9C2E6CDA64F2A911E7B99666F8 can't be retrieved
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
==> ERROR: A specified local key could not be updated from a keyserver.

It looks like it's not doing much. Anyway, trying to install packages or upgrading the system results in me having to import a bunch of keys and then failing with the before mentioned error.

Anything I can do?

Thanks

Last edited by hachel (2014-02-24 11:50:56)

Offline

#2 2014-02-24 11:37:37

Rexilion
Member
Registered: 2013-12-23
Posts: 784

Re: [SOLVED] Pacman unable to install packages due to invalid or corrup...

Reinstall archlinux-keyring maybe? And then perform the commands you listed earlier.


fs/super.c : "Self-destruct in 5 seconds.  Have a nice day...\n",

Offline

#3 2014-02-24 11:49:34

hachel
Member
Registered: 2011-05-03
Posts: 25

Re: [SOLVED] Pacman unable to install packages due to invalid or corrup...

Rexilion wrote:

Reinstall archlinux-keyring maybe? And then perform the commands you listed earlier.

Worked, thank you!

Offline

Board footer

Powered by FluxBB