You are not logged in.

#1 2012-03-11 10:07:47

PollyMath
Member
Registered: 2011-05-05
Posts: 14

Can't install packages or update my system.

Hi,

I'm having a problem with installing (pacman -S) packages and doing a system update (pacman -Syu).
For example, if i want to install the package 'fsarchiver' i get the following messages:


***************************************************************************************************

# pacman -S fsarchiver
resolving dependencies...
looking for inter-conflicts...

Targets (2): lzo2-2.06-1  fsarchiver-0.6.12-2

Total Installed Size:   0.84 MiB

Proceed with installation? [Y/n] y
(2/2) checking package integrity                                        [########################################] 100%
warning: Public keyring not found; have you run 'pacman-key --init'?
error: lzo2: key "771DF6627EDF681F" is unknown
error: key "771DF6627EDF681F" could not be looked up remotely
error: fsarchiver: key "F3E1D5C5D30DB0AD" is unknown
error: key "F3E1D5C5D30DB0AD" could not be looked up remotely
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.
#
# pacman-key --init
Password:
gpg: /etc/pacman.d/gnupg/trustdb.gpg: trustdb created
gpg: no ultimately trusted keys found
gpg: Generating pacman keychain master key...

Not enough random bytes available.  Please do some other work to give
the OS a chance to collect more entropy! (Need 125 more bytes)

gpg: key C8D10375 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


***************************************************************************************************

After i have done "pacman-key --init"; I try to install 'fsarchiver' again.

***************************************************************************************************


# pacman -S fsarchiver
resolving dependencies...
looking for inter-conflicts...

Targets (2): lzo2-2.06-1  fsarchiver-0.6.12-2

Total Installed Size:   0.84 MiB

Proceed with installation? [Y/n] y
(2/2) checking package integrity                                        [########################################] 100%
error: lzo2: key "771DF6627EDF681F" is unknown
:: Import PGP key 7EDF681F, "Tobias Powalowski <tpowa@archlinux.org>", created 2011-07-18? [Y/n] y
error: fsarchiver: key "F3E1D5C5D30DB0AD" is unknown
:: Import PGP key D30DB0AD, "Andrea Scarpino <bash.lnx@gmail.com>", created 2011-04-19? [Y/n] y
(2/2) checking package integrity                                        [########################################] 100%
error: lzo2: signature from "Tobias Powalowski <tobias.powalowski@googlemail.com>" is unknown trust
error: fsarchiver: signature from "Andrea Scarpino (Arch Linux) <andrea@archlinux.org>" is unknown trust
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.


***************************************************************************************************

Can anyone tell me what i am doing wrong, or maybe i omited to do something.
Whatever the case, please help me fix this problem, so that i can install
packages and update my system.


Many Thanks,
Regards, PollyMath.

Offline

#2 2012-03-11 10:15:26

lswest
Member
From: Munich, Germany
Registered: 2008-06-14
Posts: 456
Website

Re: Can't install packages or update my system.

First off, it'd be great if you could put code snippets in code tags

like so

As for the actual issue, Pacman 4 includes package signing, which you can read about setting up here: https://wiki.archlinux.org/index.php/Pacman-key

You'll also need to move over the /etc/pacman.conf.pacnew file (or simply add the lines corresponding to package signing to your current pacman.conf file).

If you've done all that, check the section on adding keys automatically from the above wiki article.  Should solve the issue.  You may also want to read the section on using the MIT keyserver in case that's part of the issue.

Hope that helps.

Also, there is another thread here: https://bbs.archlinux.org/viewtopic.php?pid=1067535

Last edited by lswest (2012-03-11 10:18:36)


Lswest <- the first letter of my username is a lowercase "L".
"...the Linux philosophy is "laugh in the face of danger". Oops. Wrong one. "Do it yourself". That's it." - Linus Torvalds

Offline

#3 2012-03-11 10:17:00

longmains
Member
From: Scotland
Registered: 2012-03-06
Posts: 15
Website

Re: Can't install packages or update my system.

Hi PollyMath,

Also had problems with PGP keys.

Try running pacman-key --init again, then do your update.

OR

edit /etc/pacman.conf
and uncomment the following line under PGP signature checking...
#SigLevel = Optional TrustAll

Offline

#4 2012-03-13 05:19:19

PollyMath
Member
Registered: 2011-05-05
Posts: 14

Re: Can't install packages or update my system.

Hi lswest and longmains,

Thank you both for your response to my query.

longmains,
The solution you gave: "SigLevel = Optional TrustAll";
worked fine; however, I thought that this was an unsatisfactory solution.

lswest,
I will checkout the links you gave, when i get the chance. Oh, and thank you
for pointing out "code tags".

Regards,
PollyMath.

Offline

Board footer

Powered by FluxBB