You are not logged in.

#1 2011-11-04 13:04:25

shadyabhi
Member
From: Bangalore
Registered: 2010-05-23
Posts: 262
Website

[useless, SOLVED] Pacman shows package corrupted while upgrading

I pacman -Syu'ed my system after a week & there was these error of cyclic dependancy while installing gcc package. So, I issued this command:

sudo pacman -S gcc gcc-libs gcc-ada gcc-fortran gcc-objc libtool

While instaling, it showed that gcc's package is corrupted.
But, later I tried installing it using

sudo pacman -U gcc-4.6.2-1-x86_64.pkg.tar.xz gcc-libs-4.6.2-1-x86_64.pkg.tar.xz gcc-ada-4.6.2-1-x86_64.pkg.tar.xz gcc-fortran-4.6.2-1-x86_64.pkg.tar.xz gcc-objc-4.6.2-1-x86_64.pkg.tar.xz libtool-2.4

and it installed correctly.
It seems like local repo had the wrong md5 of the gcc package. How come?

Last edited by shadyabhi (2011-11-04 13:44:01)

Offline

#2 2011-11-04 13:09:32

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [useless, SOLVED] Pacman shows package corrupted while upgrading

Can you post the exact output, the 'corrupted' message?

Offline

#3 2011-11-04 13:16:55

shadyabhi
Member
From: Bangalore
Registered: 2010-05-23
Posts: 262
Website

Re: [useless, SOLVED] Pacman shows package corrupted while upgrading

karol wrote:

Can you post the exact output, the 'corrupted' message?

shadyabhi@archlinux ~ $ sudo pacman -S gcc
warning: gcc-4.6.2-1 is up to date -- reinstalling
resolving dependencies...
looking for inter-conflicts...

Targets (1): gcc-4.6.2-1 [17.03 MB]

Total Download Size:    0.00 MB
Total Installed Size:   67.22 MB

Proceed with installation? [Y/n] Y
:: File gcc-4.6.2-1-x86_64.pkg.tar.xz is corrupted. Do you want to delete it? [Y/n] ^C                     [----------------------------------------------------------------]   0%
Interrupt signal received

shadyabhi@archlinux ~ $ sudo pacman -U /var/cache/pacman/pkg/gcc-4.6.2-1-x86_64.pkg.tar.xz
warning: gcc-4.6.2-1 is up to date -- reinstalling
resolving dependencies...
looking for inter-conflicts...

Targets (1): gcc-4.6.2-1 [17.06 MB]

Total Download Size:    0.00 MB
Total Installed Size:   66.82 MB

Proceed with installation? [Y/n] Y
(1/1) checking package integrity                                                                           [################################################################] 100%
(1/1) checking for file conflicts                                                                          [################################################################] 100%
(1/1) upgrading gcc                                                                                        [################################################################] 100%
shadyabhi@archlinux ~ $ 

I was successful in installing that same package if I used -U option. Thats some serious bug in pacman which should be looked into.

Please tell me as to what more info should I provide to be of more help.

Last edited by shadyabhi (2011-11-04 13:19:15)

Offline

#4 2011-11-04 13:27:03

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,019

Re: [useless, SOLVED] Pacman shows package corrupted while upgrading

The way I understand it: if you -S, the md5sum of the package gets compared to the one in the sync database of the given repo. If you -U, there is nothing to compare to.

You installed a package that is different that the one that should be on the mirror.

Last edited by lucke (2011-11-04 13:28:10)

Offline

#5 2011-11-04 13:27:45

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [useless, SOLVED] Pacman shows package corrupted while upgrading

Ah, now I get it, you were reinstalling a local package :-)
Does it happen every time?

Offline

#6 2011-11-04 13:28:18

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

Re: [useless, SOLVED] Pacman shows package corrupted while upgrading

what is the md5sum of /var/cache/pacman/pkg/gcc-4.6.2-1-x86_64.pkg.tar.xz ?

Offline

#7 2011-11-04 13:43:27

shadyabhi
Member
From: Bangalore
Registered: 2010-05-23
Posts: 262
Website

Re: [useless, SOLVED] Pacman shows package corrupted while upgrading

Ah! I think I get. This post probably doesn't make any sense.
Actually, initially I was not able to download gcc-4.6.2-1-x86_64.pkg.tar.xz from any of the mirrors I tried using my internet connection.(may be it has something to do with my university connection). So, I asked a friend of mine to download the package for me & send it to me by mail.

I just asked him, he downloaded it from chakra's mirror. So, now it makes sense. Closing the topic. This post was really not necessary. Sorry.

Offline

Board footer

Powered by FluxBB