Pacman's not telling me what's corrupt

This forum is for discussion about general software issues.

Pacman's not telling me what's corrupt

Postby phillid » Mon Apr 28, 2014 5:02 am

I ran `pacman -Syu`, I have done many times before without fault, but today, I get an error message:

$this->bbcode_second_pass_code('', '
:: Proceed with installation? [Y/n]
(34/34) checking keys in keyring [##################] 100%
(34/34) checking package integrity [##################] 100%
error: failed to commit transaction (invalid or corrupted package)
Errors occurred, no packages were upgraded.
synchronizing filesystem...
')

That's literally the whole error message.
So I ran `pacman -Su --debug`:

$this->bbcode_second_pass_code('', '
:: Proceed with installation? [Y/n]
debug: using cachedir: /var/cache/pacman/pkg/
debug: using cachedir: /var/cache/pacman/pkg/
checking keyring...
checking package integrity...
debug: found cached pkg: /var/cache/pacman/pkg/readline-6.3.005-1-armv6h.pkg.tar.xz
debug: sha256sum: 01eb820e067aee8afdd354cac12878d5eecf97d7983d23919a6486cb3cc4c085
debug: checking sha256sum for /var/cache/pacman/pkg/readline-6.3.005-1-armv6h.pkg.tar.xz
debug: found cached pkg: /var/cache/pacman/pkg/bash-4.3.011-1-armv6h.pkg.tar.xz
debug: sha256sum: 7c3f687af396d1730a240fa04f7d86cf8a9427dfce0e3a4e209e318f79ce64d8
debug: checking sha256sum for /var/cache/pacman/pkg/bash-4.3.011-1-armv6h.pkg.tar.xz
debug: found cached pkg: /var/cache/pacman/pkg/openssl-1.0.1.g-1-armv6h.pkg.tar.xz
debug: sha256sum: 7a446b9adfe65120a4ce01e522e4cf1839f5a34f3e933be2e96d758f404674d5
debug: checking sha256sum for /var/cache/pacman/pkg/openssl-1.0.1.g-1-armv6h.pkg.tar.xz
debug: found cached pkg: /var/cache/pacman/pkg/gmp-6.0.0-1-armv6h.pkg.tar.xz
debug: sha256sum: b5e9d8fdebd2de23c2ed1adc6fd4c8ab7788f44329297efec10d52151187ef98
debug: checking sha256sum for /var/cache/pacman/pkg/gmp-6.0.0-1-armv6h.pkg.tar.xz
debug: found cached pkg: /var/cache/pacman/pkg/coreutils-8.22-4-armv6h.pkg.tar.xz
debug: sha256sum: 7457e15b7cc32c0d688401f4457cf21ed3c1aed82c08a3575816faf18949bd9c
debug: checking sha256sum for /var/cache/pacman/pkg/coreutils-8.22-4-armv6h.pkg.tar.xz
debug: found cached pkg: /var/cache/pacman/pkg/ca-certificates-20140325-1-any.pkg.tar.xz
debug: sha256sum: 30de41dce14599f1aa676ac136263412565d89c7e10d8adc64774b4bd164f45d
debug: checking sha256sum for /var/cache/pacman/pkg/ca-certificates-20140325-1-any.pkg.tar.xz
debug: found cached pkg: /var/cache/pacman/pkg/curl-7.36.0-1-armv6h.pkg.tar.xz
debug: sha256sum: 7af5d8031d804a6e0dc7ea540baa4e69c8286ca3c4d3b7d263fe94a1f3fbfaf7
debug: checking sha256sum for /var/cache/pacman/pkg/curl-7.36.0-1-armv6h.pkg.tar.xz
debug: found cached pkg: /var/cache/pacman/pkg/pcre-8.35-1-armv6h.pkg.tar.xz
debug: sha256sum: 6e95f3771ad109c5d949bdf85cfbd180f157f269327e9dd1429c33322c914f57
debug: checking sha256sum for /var/cache/pacman/pkg/pcre-8.35-1-armv6h.pkg.tar.xz
debug: found cached pkg: /var/cache/pacman/pkg/glib2-2.40.0-1-armv6h.pkg.tar.xz
debug: sha256sum: 1edfbfd4029edaac12fa3645a11f0c30afac85b7785d82d132d54910a2f70cf8
debug: checking sha256sum for /var/cache/pacman/pkg/glib2-2.40.0-1-armv6h.pkg.tar.xz
debug: found cached pkg: /var/cache/pacman/pkg/kmod-17-1-armv6h.pkg.tar.xz
debug: sha256sum: 988623274fc6ef162b208fbbea1eb4e157f578666683b4e9b3672e1f0d6548b9
debug: checking sha256sum for /var/cache/pacman/pkg/kmod-17-1-armv6h.pkg.tar.xz
debug: found cached pkg: /var/cache/pacman/pkg/libsystemd-212-3-armv6h.pkg.tar.xz
debug: sha256sum: da11e99a9949c11f658bd585092efd5720a5435b5fed6c735d713bce43a61ac1
debug: checking sha256sum for /var/cache/pacman/pkg/libsystemd-212-3-armv6h.pkg.tar.xz
debug: found cached pkg: /var/cache/pacman/pkg/shadow-4.1.5.1-9-armv6h.pkg.tar.xz
debug: sha256sum: 748081dd54282870d2fe75c6aabce87c79a54e7c94a9259608e0461c873ded8f
debug: checking sha256sum for /var/cache/pacman/pkg/shadow-4.1.5.1-9-armv6h.pkg.tar.xz
debug: found cached pkg: /var/cache/pacman/pkg/libutil-linux-2.24.1-6-armv6h.pkg.tar.xz
debug: sha256sum: 616918a8014e12d428ed2a200838e9ceb7ee5f0df9ebe96ff74226a4d2e251b7
debug: checking sha256sum for /var/cache/pacman/pkg/libutil-linux-2.24.1-6-armv6h.pkg.tar.xz
debug: found cached pkg: /var/cache/pacman/pkg/util-linux-2.24.1-6-armv6h.pkg.tar.xz
debug: sha256sum: 4613acfd23e4572ae7e0ee9cb80fb0c44f6c9385c7fc450e83263c324b3cb39c
debug: checking sha256sum for /var/cache/pacman/pkg/util-linux-2.24.1-6-armv6h.pkg.tar.xz
debug: found cached pkg: /var/cache/pacman/pkg/systemd-212-3-armv6h.pkg.tar.xz
debug: sha256sum: 3cb1f139695b9ddb80be20db4b29507114be4035f237fe5e0216255ef5becad7
debug: checking sha256sum for /var/cache/pacman/pkg/systemd-212-3-armv6h.pkg.tar.xz
debug: found cached pkg: /var/cache/pacman/pkg/device-mapper-2.02.106-1-armv6h.pkg.tar.xz
debug: sha256sum: 85a09b39961b14fced48fb7869017bde188042af653dccce52535e94358b55fa
debug: checking sha256sum for /var/cache/pacman/pkg/device-mapper-2.02.106-1-armv6h.pkg.tar.xz
debug: found cached pkg: /var/cache/pacman/pkg/dhcpcd-6.3.2-1.2-armv6h.pkg.tar.xz
debug: sha256sum: 9ddb32afdd0d8357bfebbaeeac3ec6c31b656ea93168087f9250d17aee52ae04
debug: checking sha256sum for /var/cache/pacman/pkg/dhcpcd-6.3.2-1.2-armv6h.pkg.tar.xz
debug: found cached pkg: /var/cache/pacman/pkg/file-5.18-1-armv6h.pkg.tar.xz
debug: sha256sum: b73e1843e629507fb85de106e77b2a6e37c39007f50d288686222bf22a60b41e
debug: checking sha256sum for /var/cache/pacman/pkg/file-5.18-1-armv6h.pkg.tar.xz
debug: found cached pkg: /var/cache/pacman/pkg/gnutls-3.3.1-1-armv6h.pkg.tar.xz
debug: sha256sum: 49b0fdb63386ca345e3318f2609d6cf71964bd405cc9edc6d720455b7415280e
debug: checking sha256sum for /var/cache/pacman/pkg/gnutls-3.3.1-1-armv6h.pkg.tar.xz
debug: found cached pkg: /var/cache/pacman/pkg/groff-1.22.2-6-armv6h.pkg.tar.xz
debug: sha256sum: 88cf42a17f9188c7d3563aa2bd03d13f82d0078debae35e7681143210cc2cffe
debug: checking sha256sum for /var/cache/pacman/pkg/groff-1.22.2-6-armv6h.pkg.tar.xz
debug: found cached pkg: /var/cache/pacman/pkg/guile-2.0.11-1-armv6h.pkg.tar.xz
debug: sha256sum: af1dc0e0cac7fcfe5c98d5c03d0b379cbdb864b056705d1330fce9a50808480e
debug: checking sha256sum for /var/cache/pacman/pkg/guile-2.0.11-1-armv6h.pkg.tar.xz
debug: found cached pkg: /var/cache/pacman/pkg/icu-53.1-1-armv6h.pkg.tar.xz
debug: sha256sum: 4815bda651b19ba28c814bdac8ab2410a5f6de04a226c38b8a62590fada1c3a4
debug: checking sha256sum for /var/cache/pacman/pkg/icu-53.1-1-armv6h.pkg.tar.xz
debug: found cached pkg: /var/cache/pacman/pkg/iproute2-3.14.0-1-armv6h.pkg.tar.xz
debug: sha256sum: fb1ae7a9c554274ee3b5127e6bd9cbb61b0eb2f7a9ebe2340b7087fd144d6557
debug: checking sha256sum for /var/cache/pacman/pkg/iproute2-3.14.0-1-armv6h.pkg.tar.xz
debug: found cached pkg: /var/cache/pacman/pkg/libftdi-1.1-6-armv6h.pkg.tar.xz
debug: sha256sum: d7d4bb901347e6891e0f7d16eae917a6325f5223d1a43fbaace23140e583dd2b
debug: checking sha256sum for /var/cache/pacman/pkg/libftdi-1.1-6-armv6h.pkg.tar.xz
debug: found cached pkg: /var/cache/pacman/pkg/libnl-3.2.24-1.1-armv6h.pkg.tar.xz
debug: sha256sum: d00ee89e0376cde8b1afe6e2bc72f58a3a05660f30a176b8ee2b263dda26c4dd
debug: checking sha256sum for /var/cache/pacman/pkg/libnl-3.2.24-1.1-armv6h.pkg.tar.xz
debug: found cached pkg: /var/cache/pacman/pkg/libpipeline-1.3.0-1-armv6h.pkg.tar.xz
debug: sha256sum: e7655c0a088b5f77aa74739a1e075423f1a4e8cd1aea50d6199f392bfb4f064e
debug: checking sha256sum for /var/cache/pacman/pkg/libpipeline-1.3.0-1-armv6h.pkg.tar.xz
debug: returning error 6 from _alpm_pkg_validate_internal : wrong or NULL argument passed
debug: found cached pkg: /var/cache/pacman/pkg/linux-raspberrypi-3.10.38-1-armv6h.pkg.tar.xz
debug: sha256sum: 06c630b852883821168ef79b8e54594709c57d91ff84704d611297d4c562487e
debug: checking sha256sum for /var/cache/pacman/pkg/linux-raspberrypi-3.10.38-1-armv6h.pkg.tar.xz
debug: found cached pkg: /var/cache/pacman/pkg/logrotate-3.8.7-3-armv6h.pkg.tar.xz
debug: sha256sum: 3238fac071d7a63c0622d07795eee4eae2ec6a2189bfc4a66ec66d328df99210
debug: checking sha256sum for /var/cache/pacman/pkg/logrotate-3.8.7-3-armv6h.pkg.tar.xz
debug: found cached pkg: /var/cache/pacman/pkg/lvm2-2.02.106-1-armv6h.pkg.tar.xz
debug: sha256sum: b8e403ad8aa3b76f13452d16c8d5a83e4496571eca1ccb89533731a531cd2aed
debug: checking sha256sum for /var/cache/pacman/pkg/lvm2-2.02.106-1-armv6h.pkg.tar.xz
debug: found cached pkg: /var/cache/pacman/pkg/man-db-2.6.7.1-1-armv6h.pkg.tar.xz
debug: sha256sum: 43d5bbb5da739e8bff28cf6b58d2a6ba39ab647e11e5f806bde1dc3a8082f220
debug: checking sha256sum for /var/cache/pacman/pkg/man-db-2.6.7.1-1-armv6h.pkg.tar.xz
debug: found cached pkg: /var/cache/pacman/pkg/openssh-6.6p1-2-armv6h.pkg.tar.xz
debug: sha256sum: a1538f5d5d804a64a0c31ddfdfec8b7bc398092fd99d6b195308824abaaad66f
debug: checking sha256sum for /var/cache/pacman/pkg/openssh-6.6p1-2-armv6h.pkg.tar.xz
debug: found cached pkg: /var/cache/pacman/pkg/pacman-mirrorlist-20140406-1-armv6h.pkg.tar.xz
debug: sha256sum: ea536ecced9212c44344ad04f35619a909ebcb8d3430f68a8200bb22dbae2ce0
debug: checking sha256sum for /var/cache/pacman/pkg/pacman-mirrorlist-20140406-1-armv6h.pkg.tar.xz
debug: found cached pkg: /var/cache/pacman/pkg/psmisc-22.21-1-armv6h.pkg.tar.xz
debug: sha256sum: f1812ebd5baba9a2a72d1c0959929f640c1c07084ec302cf18799f0f8a456d51
debug: checking sha256sum for /var/cache/pacman/pkg/psmisc-22.21-1-armv6h.pkg.tar.xz
debug: returning error 33 from check_validity : invalid or corrupted package
error: failed to commit transaction (invalid or corrupted package)
Errors occurred, no packages were upgraded.
synchronizing filesystem...
debug: unregistering database 'local'
debug: freeing package cache for repository 'local'
debug: unregistering database 'core'
debug: freeing package cache for repository 'core'
debug: unregistering database 'extra'
debug: freeing package cache for repository 'extra'
debug: unregistering database 'community'
debug: freeing package cache for repository 'community'
debug: unregistering database 'alarm'
debug: freeing package cache for repository 'alarm'
debug: unregistering database 'aur'
debug: freeing package cache for repository 'aur'
')

I tried upgrading psmisc by itself `pacman -S psmisc` and it works fine, so it's not psmisc that's corrupt. It looks to me like a false positive, as no packages are actually corrupt.

I have manually upgraded pacman
I have manually upgraded glibc

What can I do next?

Cheers
Last edited by phillid on Tue Apr 29, 2014 11:46 pm, edited 2 times in total.
phillid
 
Posts: 6
Joined: Mon Apr 28, 2014 4:55 am

Re: Pacman's not telling me what's corrupt

Postby moonman » Mon Apr 28, 2014 5:37 am

Clear the cache and try again.
$this->bbcode_second_pass_code('', 'yes | pacman -Scc')
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Pacman's not telling me what's corrupt

Postby phillid » Mon Apr 28, 2014 5:49 am

Is there anything I can do short of that? I'm stuck on extremely slow internet at the moment (~5 KB/s) so redownloading everything would be a pain.

Besides, it doesn't seem like a cache problem; pacman's fine installing the packages individually, but not when I do `-Su`.
phillid
 
Posts: 6
Joined: Mon Apr 28, 2014 4:55 am

Re: Pacman's not telling me what's corrupt

Postby moonman » Mon Apr 28, 2014 6:27 am

I think your error is here:
$this->bbcode_second_pass_code('', 'debug: checking sha256sum for /var/cache/pacman/pkg/libpipeline-1.3.0-1-armv6h.pkg.tar.xz
debug: returning error 6 from _alpm_pkg_validate_internal : wrong or NULL argument passed')
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Pacman's not telling me what's corrupt

Postby phillid » Tue Apr 29, 2014 11:17 pm

Thanks for that -- I'd completely missed that when checking the output. What's odd is that libpipeline installed fine on its own while linux-firmware appeared to be corrupt. I think I've narrowed it down to the fact that my Pi and all my other computers (i686 machines) all dump into a shared pacman cache, meaning that they will (in theory) share the architecture-independent packages, however I'm guessing that if an i686 machine downloads such a package from its mirrors, it'll be signed with a key or slightly tweaked such that the arm box doesn't want to touch it. I'll have to have a look at importing the ArchLinux packagers' keys into the Pi and the ArchLinux ARM builder key into the i686 machines...

Cheers for your help.

EDIT: I've just done some digging, and of course, the signatures are stored in the repo database, so adding the keys won't solve anything. My solution will be to keep the i686 and armv6h caches separate.
phillid
 
Posts: 6
Joined: Mon Apr 28, 2014 4:55 am

Re: Pacman's not telling me what's corrupt

Postby kmihelich » Wed Apr 30, 2014 12:23 am

It's not all about keys. The checksums for the package that our repo databases say are valid, which are what pacman is also checking, are not the checksums of x86 Arch packages, since they're not the exact same files, since this is a separate distribution.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Re: Pacman's not telling me what's corrupt

Postby phillid » Thu May 01, 2014 4:54 am

Yeah that makes sense. I had just (naively) assumed that the -any- packages would be identical, but like I said, that was naive.
phillid
 
Posts: 6
Joined: Mon Apr 28, 2014 4:55 am


Return to General

Who is online

Users browsing this forum: No registered users and 9 guests