You are not logged in.

#1 2012-06-26 18:01:42

flaps
Member
Registered: 2012-06-26
Posts: 4

[SOLVED] Updating has failed

After running pacman -Syu I'm getting this error message:

(34/34) checking package integrity                                                                                                             [########################################################################################] 100%
error: failed to commit transaction (invalid or corrupted package)
Errors occurred, no packages were upgraded.

I understand that it is an invalid or corrupted package causing the error. How would I go about finding what is causing the error?

Any help is appreciated,

Last edited by flaps (2012-06-26 19:36:28)

Offline

#2 2012-06-26 18:06:23

MoonSwan
Member
From: Great White North
Registered: 2008-01-23
Posts: 881

Re: [SOLVED] Updating has failed

Offline

#3 2012-06-26 18:15:42

flaps
Member
Registered: 2012-06-26
Posts: 4

Re: [SOLVED] Updating has failed

After looking through pacman.log I still cant find any indication as to what is causing the problem. Is there any way to remove all the downloaded packages it grabbed during running pacman -Syu?

Offline

#4 2012-06-26 18:16:37

rvr
Member
From: estonia
Registered: 2012-06-25
Posts: 2

Re: [SOLVED] Updating has failed

cleaning cache helped me.. :

pacman -Scc

and then updated again..
not sure if it's a right way to do it..

Offline

#5 2012-06-26 18:21:04

Pres
Member
Registered: 2011-09-12
Posts: 423

Re: [SOLVED] Updating has failed

Using the --debug option should tell you which package it's failing on and you can try deleting that from your cache. It might be easier to just run "pacman -Scc" as the person above me said if you have a fast internet connection.

If that doesn't work, try changing your mirror.

Offline

#6 2012-06-26 18:28:28

flaps
Member
Registered: 2012-06-26
Posts: 4

Re: [SOLVED] Updating has failed

After running using the --debug option I can see "debug: returning error 33 from check_validity : invalid or corrupted package" in the list but it does not list the package. In the wiki it suggests not running pacman -Scc.

Offline

#7 2012-06-26 18:51:49

Pres
Member
Registered: 2011-09-12
Posts: 423

Re: [SOLVED] Updating has failed

"pacman -Scc" just completely clears you cache (/var/cache/pacman/pkg). This reason this isn't suggested is if you want to downgrade, then you have to retrieve those packages by other means (ARM works well). However, I'm guessing you just installed Arch seeing as you registered today, so clearing the cache shouldn't really hurt at all (always important to know what the command is doing before you run it though).

If clearing your cache doesn't bother you, then try "pacman -Scc" followed by "pacman -Syyu". If that doesn't work, try changing to another mirror and retrying those commands. If that fails, post the full output of the pacman command along with your pacman.conf file.

Last edited by Pres (2012-06-26 18:52:36)

Offline

#8 2012-06-26 19:29:52

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

Re: [SOLVED] Updating has failed

Are you using ftp mirror? Try using an http one.

Offline

#9 2012-06-26 19:34:20

flaps
Member
Registered: 2012-06-26
Posts: 4

Re: [SOLVED] Updating has failed

pacman -Scc fixed the problem. I was just a bit cautious about running it. Thank you for your help.

Offline

Board footer

Powered by FluxBB