You are not logged in.

#1 2011-08-27 09:09:47

starfry
Member
From: Surrey, UK
Registered: 2010-08-18
Posts: 238

[SOLVED] Upgrade pacman -syu fails with "invalid or corrupted package"

I went to do an update last night and it failed with the following error

pacman -Syu
:: Synchronising package databases...
 core is up to date
 extra is up to date
 community is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for inter-conflicts...

Targets (41): alsa-utils-1.0.24.2-3  avahi-0.6.30-5  linux-api-headers-3.0.1-1  glibc-2.14-5  zlib-1.2.5-4
              binutils-2.21.1-2  isl-0.07-1  gcc-libs-4.6.1-4  gmp-5.0.2-3  cloog-0.16.3-1  dash-0.5.7-2
...
              libid3tag-0.15.1b-6  imlib2-1.4.4-1  openbox-3.5.0-3  pacman-mirrorlist-20110816-1  pcre-8.13-2
              usbutils-004-1  wget-1.13.1-1

Total Download Size:    0.00 MB
Total Installed Size:   287.42 MB

Proceed with installation? [Y/n] y
(41/41) checking package integrity                                          [##########################################] 100%
error: failed to commit transaction (invalid or corrupted package)
alsa-utils-1.0.24.2-3-x86_64.pkg.tar.xz is invalid or corrupted
avahi-0.6.30-5-x86_64.pkg.tar.xz is invalid or corrupted
...
usbutils-004-1-x86_64.pkg.tar.xz is invalid or corrupted
wget-1.13.1-1-x86_64.pkg.tar.xz is invalid or corrupted
Errors occurred, no packages were upgraded.
#

This box hosts a number of virtual servers (LXC) and they upgrade without issue. I'm pretty sure the packages are neither invalid nor corrupted because all my images share the same cache location and none of the others have problems, just this one and this is the first time it's ever happened.

I suspect I've done something on this particular host to break something but I don't know what. Any pointers as to what I should look for ?

Some more info in case it's useful:

#pacman --version

 .--.                  Pacman v3.5.4 - libalpm v6.0.4
/ _.-' .-.  .-.  .-.   Copyright (C) 2006-2011 Pacman Development Team
\  '-. '-'  '-'  '-'   Copyright (C) 2002-2006 Judd Vinet
 '--'
                       This program may be freely redistributed under
                       the terms of the GNU General Public License.

# ls -l /usr/lib/libalpm.*
-rw-r--r-- 1 root root 328846 Aug 14 00:37 /usr/lib/libalpm.a
lrwxrwxrwx 1 root root     16 Aug 14 00:37 /usr/lib/libalpm.so -> libalpm.so.6.0.4
lrwxrwxrwx 1 root root     16 Aug 14 00:37 /usr/lib/libalpm.so.6 -> libalpm.so.6.0.4
-rwxr-xr-x 1 root root 159592 Aug 14 00:37 /usr/lib/libalpm.so.6.0.4
# ldd `which pacman`
        linux-vdso.so.1 =>  (0x00007fff25f7f000)
        libalpm.so.6 => /usr/lib/libalpm.so.6 (0x00007f9d1e32c000)
        libc.so.6 => /lib/libc.so.6 (0x00007f9d1dfcb000)
        libfetch.so => /usr/lib/libfetch.so (0x00007f9d1ddbb000)
        libssl.so.1.0.0 => /usr/lib/libssl.so.1.0.0 (0x00007f9d1db5f000)
        libarchive.so.2 => /usr/lib/libarchive.so.2 (0x00007f9d1d91c000)
        libacl.so.1 => /lib/libacl.so.1 (0x00007f9d1d714000)
        libattr.so.1 => /lib/libattr.so.1 (0x00007f9d1d510000)
        libexpat.so.1 => /usr/lib/libexpat.so.1 (0x00007f9d1d2e7000)
        liblzma.so.5 => /usr/lib/liblzma.so.5 (0x00007f9d1d0c5000)
        libbz2.so.1.0 => /lib/libbz2.so.1.0 (0x00007f9d1ceb5000)
        libz.so.1 => /usr/lib/libz.so.1 (0x00007f9d1cc9d000)
        libcrypto.so.1.0.0 => /usr/lib/libcrypto.so.1.0.0 (0x00007f9d1c8e1000)
        /lib/ld-linux-x86-64.so.2 (0x00007f9d1e553000)
        libdl.so.2 => /lib/libdl.so.2 (0x00007f9d1c6dd000)
        liblzma.so.0 => /usr/lib/liblzma.so.0 (0x00007f9d1c4bb000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x00007f9d1c29e000)
#  uname -a
Linux myhostname 3.0-ARCH #1 SMP PREEMPT Sat Aug 6 16:18:35 CEST 2011 x86_64 Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz GenuineIntel GNU/Linux
#

Last edited by starfry (2011-08-27 10:10:12)

Offline

#2 2011-08-27 09:16:08

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: [SOLVED] Upgrade pacman -syu fails with "invalid or corrupted package"

Did you symlink liblzma.so.5 to liblzma.so.1?

Offline

#3 2011-08-27 09:38:38

starfry
Member
From: Surrey, UK
Registered: 2010-08-18
Posts: 238

Re: [SOLVED] Upgrade pacman -syu fails with "invalid or corrupted package"

Allan wrote:

Did you symlink liblzma.so.5 to liblzma.so.1?

No, I don't believe so

# ls -l /usr/lib/liblzma.*
-rw-r--r-- 1 root root 267850 May 21 18:41 /usr/lib/liblzma.a
lrwxrwxrwx 1 root root     16 May 21 18:41 /usr/lib/liblzma.so -> liblzma.so.5.0.3
lrwxrwxrwx 1 root root     16 Nov  9  2010 /usr/lib/liblzma.so.0 -> liblzma.so.0.0.0
-rwxr-xr-x 1 root root 153359 Jun 11  2010 /usr/lib/liblzma.so.0.0.0
lrwxrwxrwx 1 root root     16 May 21 18:41 /usr/lib/liblzma.so.5 -> liblzma.so.5.0.3
-rwxr-xr-x 1 root root 139112 May 21 18:41 /usr/lib/liblzma.so.5.0.3
# 

Offline

#4 2011-08-27 09:42:59

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [SOLVED] Upgrade pacman -syu fails with "invalid or corrupted package"

your system is a mess

pacman -S libarchive xz
pacman -Syu

here is how it should look

rw-r--r-- 1 root root 229500 May 21 20:44 /usr/lib/liblzma.a
lrwxrwxrwx 1 root root     16 May 21 20:44 /usr/lib/liblzma.so -> liblzma.so.5.0.3
lrwxrwxrwx 1 root root     16 May 21 20:44 /usr/lib/liblzma.so.5 -> liblzma.so.5.0.3
-rwxr-xr-x 1 root root 151168 May 21 20:44 /usr/lib/liblzma.so.5.0.3

Give what you have. To someone, it may be better than you dare to think.

Offline

#5 2011-08-27 10:07:54

starfry
Member
From: Surrey, UK
Registered: 2010-08-18
Posts: 238

Re: [SOLVED] Upgrade pacman -syu fails with "invalid or corrupted package"

wonder wrote:

your system is a mess

That's a bit strong, but thanks for your help. I had just taken to comparing with another box and it only had the up to date files there so I deleted all the others from my faulty system and it now works. Thank you for also pointing out the solution to me.

problem solved smile

Offline

Board footer

Powered by FluxBB