You are not logged in.

#1 2011-10-27 00:33:31

fanta
Member
Registered: 2009-09-01
Posts: 5

[SOLVED] Unable to upgrade packages (pkg_load error 32)

I've been running Arch on my home server for quite a while and it's been quite a while since I updated it.

I did 'pacman -Syu' and naturally allowed Pacman to upgrade itself with the following dependencies:

              [2011-10-20 19:30] upgraded linux-api-headers (2.6.34-1 -> 3.0.1-1)
              [2011-10-20 19:30] upgraded glibc (2.12.1-1 -> 2.14-6)
              [2011-10-20 19:30] upgraded pacman (3.5.1-1 -> 3.5.4-4)
              [2011-10-20 19:33] upgraded xz (4.999.9beta-5 -> 5.0.3-1)

now, any package I try to install, the debug output looks like this (using zip as an example):
     Targets (1): zip-3.0-2

     Total Download Size:    0.00 MB
     Total Installed Size:   0.52 MB

     Proceed with installation? [Y/n] y
     debug: using cachedir: /var/cache/pacman/pkg/
     checking package integrity...
     debug: found cached pkg: /var/cache/pacman/pkg/zip-3.0-2-x86_64.pkg.tar.xz
     debug: md5(/var/cache/pacman/pkg/zip-3.0-2-x86_64.pkg.tar.xz) = 2fd9a952edac8fb625c5fb082a374336
     debug: replacing pkgcache entry with package file for target zip
     debug: found cached pkg: /var/cache/pacman/pkg/zip-3.0-2-x86_64.pkg.tar.xz
     debug: returning error 32 from pkg_load : cannot open package file
     error: failed to commit transaction (invalid or corrupted package)
     zip-3.0-2-x86_64.pkg.tar.xz is invalid or corrupted
     Errors occurred, no packages were upgraded.

I've cleared the pacman cache multiple times and run 'pacman -Syu' against a couple mirrors -- most recently against ftp.archlinux.org just to make sure I have valid packages.

Oddly enough, I can copy, move and manually extract the downloaded package files no problem.

Last edited by fanta (2011-10-27 14:36:32)

Offline

#2 2011-10-27 02:55:31

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

Re: [SOLVED] Unable to upgrade packages (pkg_load error 32)

What does

ls -l /usr/lib/liblzma.*

output?

Offline

#3 2011-10-27 03:25:30

fanta
Member
Registered: 2009-09-01
Posts: 5

Re: [SOLVED] Unable to upgrade packages (pkg_load error 32)

ls -l /usr/lib/liblzma.*
-rw-r--r-- 1 root root 267850 May 21 12:41 /usr/lib/liblzma.a
lrwxrwxrwx 1 root root     16 May 21 12:41 /usr/lib/liblzma.so -> liblzma.so.5.0.3
lrwxrwxrwx 1 root root     16 Oct 20 19:36 /usr/lib/liblzma.so.0 -> liblzma.so.5.0.3
lrwxrwxrwx 1 root root     16 May 21 12:41 /usr/lib/liblzma.so.5 -> liblzma.so.5.0.3
-rwxr-xr-x 1 root root 139112 May 21 12:41 /usr/lib/liblzma.so.5.0.3

Offline

#4 2011-10-27 04:46:51

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

Re: [SOLVED] Unable to upgrade packages (pkg_load error 32)

Do not do things like this....

/usr/lib/liblzma.so.0 -> liblzma.so.5.0.3

This should fix your issue:

pacman -S libarchvie xz
rm /usr/lib/liblzma.so.0
pacman -Syu

Offline

#5 2011-10-27 14:34:15

fanta
Member
Registered: 2009-09-01
Posts: 5

Re: [SOLVED] Unable to upgrade packages (pkg_load error 32)

Thanks -- that fixed it.

Once you mentioned liblzma I remembered making that symlink to address this error:
             pacman: error while loading shared libraries: liblzma.so.0: cannot open shared object file: No such file or directory

Offline

Board footer

Powered by FluxBB