You are not logged in.

#1 2009-09-28 02:22:08

JawsThemeSwimming428
Member
From: USA
Registered: 2008-03-09
Posts: 149

Pacman and a corrupt package

I just installed Arch to a VMWare virtual machine. I'm using the Beginners Guide to help me along and I am trying to install xorg. When I do pacman -S xorg it finds the package group and asks me to install. I hit y to install and it downloaded everything and gave me an error when it was trying to install. Here is what I get...

checking package integrity...
error: failed to commit transaction (invalid or corrupted package)
xorg-fonts-misc-1.0.0-4-i686-pkg.tar.gz is invalid or corrupted
Errors occurred, no packages were upgraded

I searched around and found a similar issue and it suggested to try a different mirror. I did this and I get the same thing. Not sure how to handle this but if someone can help me out I would appreciate it. Thanks!

Offline

#2 2009-09-28 02:26:17

tdy
Member
From: Sacremende
Registered: 2008-12-14
Posts: 440

Re: Pacman and a corrupt package

JawsThemeSwimming428 wrote:

I searched around and found a similar issue and it suggested to try a different mirror. I did this and I get the same thing. Not sure how to handle this but if someone can help me out I would appreciate it. Thanks!

You would need to do pacman -Syy after switching mirrors or else it'll just use the cached package.

Last edited by tdy (2009-09-28 02:29:49)

Offline

#3 2009-09-28 02:36:43

JawsThemeSwimming428
Member
From: USA
Registered: 2008-03-09
Posts: 149

Re: Pacman and a corrupt package

tdy wrote:
JawsThemeSwimming428 wrote:

I searched around and found a similar issue and it suggested to try a different mirror. I did this and I get the same thing. Not sure how to handle this but if someone can help me out I would appreciate it. Thanks!

You would need to do pacman -Syy after switching mirrors or else it'll just use the cached package.

The post that I looked at mentioned that and I did. I also switched mirrors more than once (because it didn't work with the second one I tried) and I ran a pacman -Syy for each.

Offline

#4 2009-09-28 03:06:20

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,544

Re: Pacman and a corrupt package

If /var/cache/pacman/pkg/xorg-fonts-misc-1.0.0-4-i686.pkg.tar.gz exists on your storage, you must delete that file (I recommend a pacman -Sc) and try again -- you have a corrupted cached package which must be cleaned out.

If that doesn't work, try another mirror, yours may be b0rked.

Offline

#5 2009-09-28 16:57:53

JawsThemeSwimming428
Member
From: USA
Registered: 2008-03-09
Posts: 149

Re: Pacman and a corrupt package

Ranguvar wrote:

If /var/cache/pacman/pkg/xorg-fonts-misc-1.0.0-4-i686.pkg.tar.gz exists on your storage, you must delete that file (I recommend a pacman -Sc) and try again -- you have a corrupted cached package which must be cleaned out.

If that doesn't work, try another mirror, yours may be b0rked.

Thanks, I will try that and report back. Appreciate the help.

Offline

#6 2009-09-29 23:03:43

JawsThemeSwimming428
Member
From: USA
Registered: 2008-03-09
Posts: 149

Re: Pacman and a corrupt package

Thanks, pacman -Sc worked for me. Appreciate all the help!

Offline

#7 2009-09-29 23:59:08

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,544

Re: Pacman and a corrupt package

Glad you got it.  Please mark your thread as solved by editing your first post so you can edit the title, and add [SOLVED] to the beginning of the title smile

Offline

#8 2009-10-07 05:21:15

frigaut
Member
From: Canberra, Australia
Registered: 2009-05-10
Posts: 215
Website

Re: Pacman and a corrupt package

I'm kind of in the same case:
I did my usual

pacman -Syu

some days ago, and got the following error:

error: failed to commit transaction (invalid or corrupted package)
qt-4.5.3-2-i686.pkg.tar.gz is invalid or corrupted
Errors occurred, no packages were upgraded.

I did a

pacman -Scc

which cleared the cache, and proceeded to do another pacman -Syu, which ended in the same issue and same error message.
I'm suspecting the repo (chile arch repo) is/was for some time somehow  out of sync (?), and would keep on doing the same thing but I wanted to first check here for any suggestion. It's also bothersome because I had a large number of package to upgrade after the pacman -Syu and clearing the cache means having to download everything over again...
On top of it, it's preventing me to upgrade at all (as it exits  in error).
Thanks!


Archer since 03/2009 - AUR packages

Offline

#9 2009-10-07 05:42:59

frigaut
Member
From: Canberra, Australia
Registered: 2009-05-10
Posts: 215
Website

Re: Pacman and a corrupt package

ok, Solved my problem even though I'm not sure why:
- removed (manually) the offending package tar.gz archive from /var/cahe/pacman/pkg
- pacman -Syu did re-download only the offending package and this time it worked. I guess the repo was really out of sync between  the tgz file and its md5 in the PKGBUILD  or wherever it is stored (that was an package from extra).

Of course I'll appreciate any light on what this can be caused by. Just out of curiosity...


Archer since 03/2009 - AUR packages

Offline

#10 2009-10-07 06:42:24

XFire
Member
From: UK
Registered: 2008-05-11
Posts: 192

Re: Pacman and a corrupt package

I had this issue when I was updating my laptop, and did not fancy downloading a few hundred MBs again.

If you

 pacman -Syu --ignore <package>

Where the <package> is the corrupt package(s), you can update your system without clearing the others which you have downloaded.
Then

pacman -Scc

To clear the cache
Then

pacman -Syu

again

Last edited by XFire (2009-10-07 06:42:43)


There is a difference between bleeding [edge] and haemorrhaging. - Allan

Offline

Board footer

Powered by FluxBB