You are not logged in.

#1 2014-09-14 00:34:14

aggiechris
Member
Registered: 2014-09-14
Posts: 7

All Pacman Installations Fail Integrity Check

Hello all,

On a fresh Arch install after using it for a bit, I get the following when attempting to install anything with pacman:

[root@alpha-arch ~]# pacman -S blender
resolving dependencies...
looking for inter-conflicts...

Packages (12): glew-1.11.0-1  intel-tbb-4.3_20140724-1  jack-0.124.1-3  llvm-3.5.0-2.1  openal-1.16.0-1  opencollada-20140108-1  opencolorio-1.0.9-2  openimageio-1.4.13-1
               openshadinglanguage-1.5.10-2  zita-alsa-pcmi-0.2.0-1  zita-resampler-1.3.0-2  blender-14:2.71.git1.d42c08-5

Total Installed Size:   301.64 MiB

:: Proceed with installation? [Y/n] 
(12/12) checking keys in keyring                                                                         [##############################################################] 100%
(12/12) checking package integrity                                                                       [##############################################################] 100%
error: llvm: signature from "Evangelos Foutras <evangelos@foutrelis.com>" is invalid
:: File /var/cache/pacman/pkg/llvm-3.5.0-2.1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n]

I have tried cleaning the package cache (pacman -Sc) and resetting the keys with pacman-key according to articles online (pacman-key --init, pacman-key --populate archlinux, pacman-key --refresh-keys) all multiple times.  I have installed Arch twice today, and both times this started happening.  I have also verified that the system time is correct.

All I have installed are: xorg-server, xorg-server-utils, cinnamon, firefox, nvidia, vlc, libreoffice-still.

Any ideas on what is causing this?  I am new to Arch, but have intermediate experience with a few other distros.

Thanks!

Offline

#2 2014-09-14 00:51:18

plat
Member
Registered: 2014-08-08
Posts: 34

Re: All Pacman Installations Fail Integrity Check

Setting SigLevel = Never should fix it. Its in your pacman.conf file.

Edit: I guess I should ask if you installed yaourt &
Set archlinuxfr in your pacman.conf. I had the same issue until I changed the siglevel on archlinuxfr.

Last edited by plat (2014-09-14 00:58:28)

Offline

#3 2014-09-14 00:57:02

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: All Pacman Installations Fail Integrity Check

That isn't a fix, it is a workaround, and a poor one at that.

aggiechris: have you -Syyu'ed?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2014-09-14 01:00:56

plat
Member
Registered: 2014-08-08
Posts: 34

Re: All Pacman Installations Fail Integrity Check

Ok so if it's a poor fix then how would you fix it?

Offline

#5 2014-09-14 01:10:19

aggiechris
Member
Registered: 2014-09-14
Posts: 7

Re: All Pacman Installations Fail Integrity Check

jasonwryan, yes I have.

I had seen that 'fix' on some pages and hadn't tried it since I figured it kind of defeated the purpose of having the PGP signatures.  I did try it though, and am now getting a similar error:

(12/12) checking package integrity                                                                                             [#############################################################################] 100%
:: File /var/cache/pacman/pkg/llvm-3.5.0-2.1-x86_64.pkg.tar.xz is corrupted (invalid or corrupted package (checksum)).
Do you want to delete it? [Y/n]

Now instead of a PGP check error, it's another checksum error.  It's like every download is in fact getting corrupted.  I don't know how this could happend over and over again with different packages though.

Offline

#6 2014-09-14 01:17:17

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: All Pacman Installations Fail Integrity Check

It could be a dud mirror, it could be your Internet connection. Try swapping mirrors, -Syyu'ing. You might also want to give another Xfer command a shot (in your pacman.conf).


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2014-09-14 01:52:00

aggiechris
Member
Registered: 2014-09-14
Posts: 7

Re: All Pacman Installations Fail Integrity Check

Okay, I tried swapping mirrors, ran pacman -Syyu, and switched to wget, all while consistently clearing the cache every time.  Still getting the same issue.  This is really wierd.  Both times I tried installing Arch, it worked perfectly for a time, and then it just stopped working.  I really don't think it is my internet connection.  I also just tried giving the hard drive a SMART test and it passed.  Any other thoughts?

Offline

#8 2014-09-14 02:00:52

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: All Pacman Installations Fail Integrity Check

Make sure you -Scc (or manually remove any packages that pacman reports as corrupted). If tar is one of those packages, you may need to acquire a good version and manually copy it across to allow you to successfully unpack downloads.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#9 2014-09-14 02:38:23

aggiechris
Member
Registered: 2014-09-14
Posts: 7

Re: All Pacman Installations Fail Integrity Check

I reinstalled tar and xz, but to no avail.

However, I did find something weird, if I install only ONE package at a time (like just one dependency) it works.  What in the world does that mean?

EDIT:

Okay, sometimes if I install just a couple at a time, it works.  Other times, it does not.  Now, for example, I have installed all depencies for Blender indivually and it worked (these SAME dependencies that failed when I tried to let pacman install them all automatically), but now I get the error just for the Blender package.  How can they install successfully on their own, but not when I try to install them with a dependent package?

If I am not making sense, please let me know.

Thanks

Last edited by aggiechris (2014-09-14 02:47:32)

Offline

#10 2014-09-14 03:05:28

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: All Pacman Installations Fail Integrity Check

Please use a paste service (not pastebin.com) to paste your pacman.conf, mirror list and the output of a failed download with debug enabled.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#11 2014-09-14 20:57:31

aggiechris
Member
Registered: 2014-09-14
Posts: 7

Re: All Pacman Installations Fail Integrity Check

I know you asked me to paste that info, but I just discovered it is not a pacman problem.  I reinstalled Arch once more and had no issues when I was arch-chrooted from the install disk, and I could install some things when I rebooted.

I just downloaded the same tarball three times and got three different MD5sums, none of which where correct.

I am so confused, I installed Arch and a ton of packages just fine, then it randomly starts doing this.  I have tested the hard drive and the RAM and found no errors.  Maybe a dying network card?

Where should I even start to look?  Should I still upload output from pacman?

Offline

#12 2014-09-14 21:08:12

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: All Pacman Installations Fail Integrity Check

You aren't using ftp mirrors, by any chance?

Is there any way to rule out some variables? Isolate one or two of the factors (the card, your ISP, etc)?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#13 2014-09-14 21:14:06

aggiechris
Member
Registered: 2014-09-14
Posts: 7

Re: All Pacman Installations Fail Integrity Check

I have extensively used all of Windows 7, Fedora, and OpenSUSE on this same machine, same network card, same ISP.  I have been using http mirrors only.

Could this possibly be a bug in the driver for my NIC?

Offline

#14 2014-09-14 21:23:19

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: All Pacman Installations Fail Integrity Check

Well, if it works in the other Linux distros, I'd be surprised if it were a bug in the driver (which driver, BTW?).

Paste the files I asked for, and the debug output for a broken download, just in case someone else drops by and has some insights.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#15 2014-09-15 00:32:24

rgb-one
Member
Registered: 2013-09-15
Posts: 19

Re: All Pacman Installations Fail Integrity Check

Try installing/reinstalling archlinux-keyring.

# pacman -S archlinux-keyring

Offline

#16 2014-09-15 13:36:22

aggiechris
Member
Registered: 2014-09-14
Posts: 7

Re: All Pacman Installations Fail Integrity Check

Alright, here are my pacman.conf, mirrorlist, and failed attempt to install chromium: 

https://gist.github.com/aggiechris/e7e4d0c0909a592576e2

@rgb-one, I have already tried that.  It is not a pacman problem, it is now an issue with other downloads as well.

As for my NIC driver, it is using forcedeth.  I have read about a few unreliability issues, but both Fedora and OpenSUSE use it with no issues.

Thanks again to anyone for your time.

Offline

#17 2014-09-16 07:14:10

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: All Pacman Installations Fail Integrity Check

Use pacman-key to delete Evangelos' keys; re-populate the keyring and give it another shot.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#18 2022-09-05 06:49:57

salman
Member
Registered: 2022-09-01
Posts: 3

Re: All Pacman Installations Fail Integrity Check

Today I encountered the same problem. I installed Archcraft and mirrors were slow. So, I change mine to Singapore. After that. I wasn't able to update the packages. pacman -Syu was failing at checksum stage.

So, after reading this thread, I did.

sudo pacman -S archlinux-keyring

pacman -Syyu

These fixed it for me. Thanks smile

Offline

#19 2022-09-05 07:14:52

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,572
Website

Re: All Pacman Installations Fail Integrity Check

Please don't necrobump with a well documented solution, especially when you aren't even running Arch.

https://wiki.archlinux.org/title/Genera … bumping%22
https://bbs.archlinux.org/misc.php?action=rules

Closing.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB