You are not logged in.

#1 2015-05-08 17:35:44

nilesOien
Member
From: Boulder, CO, USA
Registered: 2015-05-08
Posts: 77

[SOLVED] Files corrupted when installing packages

I've been using arch for about six months now, I like it very much but I've run into a problem. I suspect it could be that coming from Ubuntu, I'm not used to Arch's "rolling release" approach and I've let things get out of date, but I'd like to have that confirmed before I update my whole system.

I am having trouble installing the apache web server, specifically the download seems to go OK but then pacman says the files are corrupt :

root> pacman -S apache
warning: apache-2.4.12-2 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...
Packages (1) apache-2.4.12-2
Total Download Size:   1.28 MiB
Total Installed Size:  7.13 MiB
Net Upgrade Size:      0.00 MiB
:: Proceed with installation? [Y/n]  Y
:: Retrieving packages ...
 apache-2.4.12-2-x86_64                                                    1309.1 KiB  2.01M/s 00:01 [############################################################] 100%
(1/1) checking keys in keyring                                                                       [############################################################] 100%
(1/1) checking package integrity                                                                     [############################################################] 100%
error: apache: signature from "Anatol Pomozov <xxxxxxxx@xxxxx.com>" is unknown trust
:: File /var/cache/pacman/pkg/apache-2.4.12-2-x86_64.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))
Errors occurred, no packages were upgraded.

I got a similar result a couple of days ago when trying to install 'gdb'. I tried making http://mirror.rit.edu/archlinux/$repo/os/$arch the first server in my mirrorlist file, but no change. I'm wondering if maybe my version of arch is just outdated and I need to upgrade with 'pacman -Syu' ? Currently uname -a shows "Linux bigsalad 3.18.5-1-ARCH #1 SMP PREEMPT Fri Jan 30 07:31:50 CET 2015 x86_64 GNU/Linux". As far as I can see, it's either that I'm out of date, or for some random reason the two packages I've happened to try in the last few days have issues. If it's the latter, I'd rather not over react with "pacman -Syu".

Anyone have any thoughts? This is my first post here so apologies in advance if it isn't quite right.

Thanks,

Niles.

Last edited by nilesOien (2015-05-09 04:55:36)


-- "Make it as simple as possible, but no simpler" - Albert Einstein

Offline

#2 2015-05-08 17:39:41

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,593

Re: [SOLVED] Files corrupted when installing packages

Yes, pacman -Syu is nearly always a good idea and will most likely solve your problem. Never run pacman -Sy unless you know what you're doing.

Offline

#3 2015-05-08 18:20:44

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Offline

#4 2015-05-09 04:08:16

nilesOien
Member
From: Boulder, CO, USA
Registered: 2015-05-08
Posts: 77

Re: [SOLVED] Files corrupted when installing packages

OK, now I'm super confused.

I tried both "pacman-key --refresh-keys", and after that failed, "pacman -Syu". Neither worked. The full output from refreshing the keys is below :

root> pacman-key --refresh-keys
gpg: refreshing 77 keys from hkp://pool.sks-keyservers.net
gpg: connecting dirmngr at '/root/.gnupg/S.dirmngr' failed: IPC connect call failed
gpg: keyserver refresh failed: No dirmngr
==> ERROR: A specified local key could not be updated from a keyserver.

Not being very experienced with keys, I didn't pursue that further.

And pacman -Syu failed - it seemed to download everything, but then convince itself that the keys were invalid (see below). I'm not at all experienced with keys, so that may be the problem. Please help!!! My arch systems have been running fine, but I don't seem to be able to upgrade, which seems to be a requisite for installing new packages? I'm lost!!

(361/361) checking keys in keyring                           [################################] 100%
(361/361) checking package integrity                         [################################] 100%
error: lzo: signature from "Anatol Pomozov <anatol.pomozov@gmail.com>" is unknown trust
:: File /var/cache/pacman/pkg/lzo-2.09-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: alsa-lib: signature from "Anatol Pomozov <anatol.pomozov@gmail.com>" is unknown trust
:: File /var/cache/pacman/pkg/alsa-lib-1.0.29-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: alsa-plugins: signature from "Anatol Pomozov <anatol.pomozov@gmail.com>" is unknown trust
:: File /var/cache/pacman/pkg/alsa-plugins-1.0.29-2-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: alsa-utils: signature from "Anatol Pomozov <anatol.pomozov@gmail.com>" is unknown trust
:: File /var/cache/pacman/pkg/alsa-utils-1.0.29-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: apr: signature from "Anatol Pomozov <anatol.pomozov@gmail.com>" is unknown trust
:: File /var/cache/pacman/pkg/apr-1.5.2-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: v4l-utils: signature from "Anatol Pomozov <anatol.pomozov@gmail.com>" is unknown trust
:: File /var/cache/pacman/pkg/v4l-utils-1.6.2-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: dhcpcd: signature from "Anatol Pomozov <anatol.pomozov@gmail.com>" is unknown trust
:: File /var/cache/pacman/pkg/dhcpcd-6.8.2-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: dhclient: signature from "Anatol Pomozov <anatol.pomozov@gmail.com>" is unknown trust
:: File /var/cache/pacman/pkg/dhclient-4.3.2-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: talloc: signature from "Anatol Pomozov <anatol.pomozov@gmail.com>" is unknown trust
:: File /var/cache/pacman/pkg/talloc-2.1.2-1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: syslinux: signature from "Anatol Pomozov <anatol.pomozov@gmail.com>" is unknown trust
:: File /var/cache/pacman/pkg/syslinux-6.03-3-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] 
error: failed to commit transaction (invalid or corrupted package)
Errors occurred, no packages were upgraded.

Last edited by nilesOien (2015-05-09 04:31:41)


-- "Make it as simple as possible, but no simpler" - Albert Einstein

Offline

#5 2015-05-09 04:10:31

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,593

Re: [SOLVED] Files corrupted when installing packages

Install archlinux-keyring first (pacman -S archlinux-keyring), then see if it will let you update.

Offline

#6 2015-05-09 04:21:28

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Files corrupted when installing packages

Please edit your post.
When posting configs, code or command output, please use [ code ] tags https://bbs.archlinux.org/help.php#bbcode

like this

It makes the code more readable and - in case of longer listings - more convenient to scroll through.

nilesOien wrote:

root> pacman-key --refresh-keys
gpg: refreshing 77 keys from hkp://pool.sks-keyservers.net
gpg: connecting dirmngr at '/root/.gnupg/S.dirmngr' failed: IPC connect call failed
gpg: keyserver refresh failed: No dirmngr
==> ERROR: A specified local key could not be updated from a keyserver.

Try https://bbs.archlinux.org/viewtopic.php … 2#p1479782


What's the output of

grep CacheDir /etc/pacman.conf
ls  /var/cache/pacman/pkg/*.part

Offline

#7 2015-05-09 04:47:59

nilesOien
Member
From: Boulder, CO, USA
Registered: 2015-05-08
Posts: 77

Re: [SOLVED] Files corrupted when installing packages

Thanks, I edited my posts as you suggested, Karol. My apologies.

Installing archlinux-keyring did the trick, the upgrade went through. I can see, though, that I'm going to have to educate myself about keys. I'll read links you posted, Karol.

The 'ls' command you posted shows no files (it looks like it's looking for partial package downloads, and there are none) and the grep shows only one commented out line :

#CacheDir    = /var/cache/pacman/pkg/

I suspect that's a bit irrelevant, since I did it after the upgrade went through, but I wanted to be complete.

I can't see how to mark this as solved, which as far as I'm concerned it is, I'm assuming that's a site admin option. Thank you both for your time!


-- "Make it as simple as possible, but no simpler" - Albert Einstein

Offline

#8 2015-05-09 04:51:54

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

Re: [SOLVED] Files corrupted when installing packages

Edit the title of your first post and add [SOLVED] at the beginning of the title.

Last edited by 2ManyDogs (2015-05-09 04:52:13)

Offline

#9 2015-05-09 04:56:47

nilesOien
Member
From: Boulder, CO, USA
Registered: 2015-05-08
Posts: 77

Re: [SOLVED] Files corrupted when installing packages

Done, thanks, didn't realize editing the first post would give me access to the title. Thanks all!


-- "Make it as simple as possible, but no simpler" - Albert Einstein

Offline

Board footer

Powered by FluxBB