You are not logged in.

#1 2006-06-24 11:34:45

Galdona
Member
Registered: 2006-03-15
Posts: 196

fix pkg "corruption" without redownloading everyth

I tried to upgrade, pacman -Syu, but after 340 MB of downloads it's saying that the packages are corrupted. I know the usual advice is to clear the cache and redownload everything, but is there a way to fix this without having to redownload everything (my connection is not that fast)?

Offline

#2 2006-06-24 12:05:37

ingvildr
Member
From: Brighton, England
Registered: 2005-04-19
Posts: 203

Re: fix pkg "corruption" without redownloading everyth

just try removing the packages it says are corrupt from /var/cache/pacman/pkg

Offline

#3 2006-06-24 12:18:11

Galdona
Member
Registered: 2006-03-15
Posts: 196

Re: fix pkg "corruption" without redownloading everyth

eh, did you read my whole post? smile removing the "corrupt" packages is what im trying to avoid. the whole 340MB is supposedly corrupt according to pacman, but i know its not so. its a known issue (there are several examples here in the forums). i think it happened because of the mirrors not being in sync yet (or something like that....).

Offline

#4 2006-06-24 14:33:24

Blaasvis
Member
Registered: 2003-01-17
Posts: 467

Re: fix pkg "corruption" without redownloading everyth

rm /var/cache/pacman/pkg/<corrupt>

the previous guy said the same


Freedom is what i love

Offline

#5 2006-06-24 15:24:20

scarecrow
Member
From: Greece
Registered: 2004-11-18
Posts: 715

Re: fix pkg "corruption" without redownloading everyth

Any chance you're using ftp.archlinux.org as your main server?
I'm having sync problems with that one lately, which sometimes result to corrupt packages. My closest mirror ( ftp.ntua.gr ) is working great instead.


Microshaft delenda est

Offline

#6 2006-06-24 16:37:20

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: fix pkg "corruption" without redownloading everyth

Unfortunately there isn't any way to fix corrupted packages... You'll just have to get rid of them.

Offline

#7 2006-06-24 17:23:52

Galdona
Member
Registered: 2006-03-15
Posts: 196

Re: fix pkg "corruption" without redownloading everyth

i was thinking the packages werent actually corrupt, but pacman using the wrong md5 sums as reference. (because  how could every one of the packages, 340MB of them, be corrupt all at once?) maybe it's connected to the recent testing->current move?

Offline

#8 2006-06-24 17:41:47

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: fix pkg "corruption" without redownloading everyth

Check the space on /var. If /var gets filled up, pacman can't download the packages and they'll all have a size of 0.

Offline

#9 2006-06-24 17:48:28

Galdona
Member
Registered: 2006-03-15
Posts: 196

Re: fix pkg "corruption" without redownloading everyth

thanks. its still plenty of space.

Offline

#10 2006-06-24 19:03:07

_Gandalf_
Member
Registered: 2006-01-12
Posts: 735

Re: fix pkg "corruption" without redownloading everyth

Try to sync via other repo and run pacman -Syu again (maybe the new db file contains the correct md5sums) if it didn't work unfortunately you have to download back the corrupted packages...

My advise is to wait for 3-5 days, so all repo get synced and have the correct md5 sums, then leave the PC during the night to re-download everything and start the upgrade though it's not what u're looking for but it is the best you can do now sad

Offline

#11 2006-06-24 19:24:39

Galdona
Member
Registered: 2006-03-15
Posts: 196

Re: fix pkg "corruption" without redownloading everyth

ok i will take your advice thanks for understanding smile

Offline

Board footer

Powered by FluxBB