You are not logged in.

#1 2013-07-25 02:01:05

Gumper
Member
From: U.S.A.
Registered: 2009-10-26
Posts: 132

[Solved] Invalid or corrupted package error

When running pacman -Syu , I'm getting the error message "failed to commit transaction, invalid or corrupted package".

If I run pacman -Syu --debug , the only error messages that I see are:

debug: setting download size 0 for pkg xorg-xrandr
debug: found cached pkg: /var/cache/pacman/pkg/xvkbd-3.5-1-x86_64.pkg.tar.xz
debug: setting download size 0 for pkg xvkbd
debug: returning error 31 from alpm_db_get_pkg : could not find or read package

and

debug: signature is valid
debug: signature is fully trusted
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.

The only thing that I tried to do so far is to clean out var/cache/pacman/pkg by running pacman -Sc, thinking that perhaps there was something wrong with one of the downloaded files.

Any ideas or suggestions on what to check to figure this out?

Thanks!

Last edited by Gumper (2013-07-28 00:23:57)


Ready yourselves, ready yourselves
Let us shine the light of Jesus in the darkest night
Ready yourselves, ready yourselves
May the powers of darkness tremble as our praises rise .... Casting Crowns-Until The Whole World Hears.

Offline

#2 2013-07-25 02:12:24

HalosGhost
Forum Moderator
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 2,095
Website

Re: [Solved] Invalid or corrupted package error

If you'd like (and feel comfortable with doing so), you can remove all packages from the cache (which will include those packages you have downloaded that are being flagged as corrupt) with the following:

# pacman -Scc

and then you can force your repos to update to make sure you're getting the newest packages, like so:

# pacman -Syyu

All the best,

-HG

Offline

#3 2013-07-27 02:33:17

Gumper
Member
From: U.S.A.
Registered: 2009-10-26
Posts: 132

Re: [Solved] Invalid or corrupted package error

Thanks for the help. Instead of clearing out the cache completely, I just created a new pkg folder in var/cache/pacman, renamed the original to pkg.bak and ran the update. That way I could keep the old pkg's in case I needed to revert back to one someday.

Everything worked fine after that.

I assumed that just running

pacman -Sc

would have cleaned out all of the pkgs that were recently downloaded and remove the corrupt package.

I guess not.


Ready yourselves, ready yourselves
Let us shine the light of Jesus in the darkest night
Ready yourselves, ready yourselves
May the powers of darkness tremble as our praises rise .... Casting Crowns-Until The Whole World Hears.

Offline

#4 2013-07-27 02:39:57

HalosGhost
Forum Moderator
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 2,095
Website

Re: [Solved] Invalid or corrupted package error

Gumper wrote:

I assumed that just running

pacman -Sc

would have cleaned out all of the pkgs that were recently downloaded and remove the corrupt package.

I guess not.

Not quite:

`man pacman` wrote:

Use one --clean switch to only remove packages that are no longer installed; use two to remove all files from the cache. In both cases, you will have a yes or no option to remove packages and/or unused downloaded databases.

I'm glad you got it all working. Please don't forget to add [Solved] to the beginning of your thread title.

All the best,

-HG

Offline

#5 2013-07-27 06:54:15

David Batson
Member
Registered: 2011-10-13
Posts: 640

Re: [Solved] Invalid or corrupted package error

Here is the best way to handle this error...

https://wiki.archlinux.org/index.php/Pa … 9.22_error

Offline

Board footer

Powered by FluxBB