You are not logged in.

#1 2010-12-13 08:05:58

Jimage
Member
Registered: 2007-10-13
Posts: 25

[SOLVED] Corrupt Packages

I haven't updated in a few months, and decided to start doing so today. But the package files seem to be consistently corrupted.

checking package integrity...
error: failed to commit transaction (invalid or corrupted package)
<package name>.pkg.tar.xz is invalid or corrupted
Errors occurred, no packages were upgraded.

This doesn't happen with all packages, but definitely most of the ones I've tried. Particularly those related to xorg, which makes updating a lot of other things impossible. I've tried five separate servers so far, running pacman -Scc and pacman -Sy on each one.

Last edited by Jimage (2010-12-13 10:08:13)

Offline

#2 2010-12-13 08:16:27

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: [SOLVED] Corrupt Packages

You should run -Syy to force a package list refresh. Make sure to pick a mirror from here:
https://www.archlinux.de/?page=MirrorStatus

Offline

#3 2010-12-13 09:16:09

Jimage
Member
Registered: 2007-10-13
Posts: 25

Re: [SOLVED] Corrupt Packages

Ran it with -Syy using Server = ftp://mirrors.kernel.org/archlinux/$repo/os/$arch

Still no dice.

Edit: Just tried two of the problematic packages (xorg-server and xorg-server-common) on my other Arch machine, and they worked. So I've obviously broken something on this one.

Could it have anything to do with an earlier error of pacman not being able to find liblzma.so.0? I worked around it by linking the .so file to liblzma.so.0, and then updated liblzma/xz, as well as pacman. Not sure what caused the original problem.

Last edited by Jimage (2010-12-13 09:26:14)

Offline

#4 2010-12-13 09:36:03

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: [SOLVED] Corrupt Packages

Could it have anything to do with an earlier error of pacman not being able to find liblzma.so.0? I worked around it by linking the .so file to liblzma.so.0

I guess it could... I would try to remove the symlink and re-install openssl, libarchive, libfetch and pacman.

Offline

#5 2010-12-13 10:08:04

Jimage
Member
Registered: 2007-10-13
Posts: 25

Re: [SOLVED] Corrupt Packages

Removing the symlink causes this error:

pacman: error while loading shared libraries: liblzma.so.0: cannot open shared object file: No such file or directory

Welp, I ran pacman -Sf on the four packages you suggested anyway. Pacman had no trouble with them and everything's running smoothly again. All the previously corrupt packages are functioning correctly again.

Problem solved, apparently. Cheers.

Offline

#6 2010-12-13 10:13:36

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

Re: [SOLVED] Corrupt Packages

And here is the poster child for having random issues when symlinking libraries!

Offline

Board footer

Powered by FluxBB