You are not logged in.

#1 2012-05-23 13:31:02

Black Death
Member
Registered: 2012-05-23
Posts: 6

failed to commit transaction (invalid or corrupted package)...

I have installed arch linux using netinstall in Virtualbox on Ubuntu 12.04 x64, and now I am having some sort of headache with this pacman 4.0.3.

I am trying to install base Xorg packages using this command as given in the beginner's guide:

# pacman -S xorg-server xorg-xinit xorg-server-utils

After I hit enter, it downloads the packages successfully, but while installing them shows it shows the output below after checking for the package integrity:

error: failed to commit transaction (invalid or corrupted package)
Errors occured, no packages were upgraded.

It shows the same thing no matter what package I am trying to install. I tried installing gnome-shell, and it shows up same thing after that download completes.

Actually, it showed some package signature errors before, but after I have done what has been said in this blog(as a solution for those errors):

http://allanmcrae.com/2011/12/pacman-pa … arch-linux

it shows the errors quoted above.

Yes, I would have pasted the whole terminal output - but it's on VM, and I can't get the terminal output inside that VM to ubuntu(so that I can paste it here), pacman giving problems seems to make this even harder.

I am not sure what I have messed up as I am installing it for first time, so I am waiting for some help.

Thanks! big_smile

Offline

#2 2012-05-23 15:45:52

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,797

Re: failed to commit transaction (invalid or corrupted package)...

Can you post the entire output of pacman command and your /etc/pacman.conf file?

Last edited by ewaller (2012-05-23 15:46:12)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2012-05-23 16:28:36

Black Death
Member
Registered: 2012-05-23
Posts: 6

Re: failed to commit transaction (invalid or corrupted package)...

hmm... I had to do it the hard way... I didn't get better idea than taking screenshots...

This is when I run the xorg command: I have saved the output into a text file and opened it again, as it's kinda hard to get the screenshot while it scrolls the output... smile

http://i1220.photobucket.com/albums/dd4 … mmand1.png

http://i1220.photobucket.com/albums/dd4 … mmand2.png

http://i1220.photobucket.com/albums/dd4 … mmand3.png

And this is the /etc/pacman.conf file:

http://i1220.photobucket.com/albums/dd4 … acman1.png

http://i1220.photobucket.com/albums/dd4 … acman2.png

http://i1220.photobucket.com/albums/dd4 … acman3.png

http://i1220.photobucket.com/albums/dd4 … acman4.png

http://i1220.photobucket.com/albums/dd4 … acman5.png

http://i1220.photobucket.com/albums/dd4 … acman6.png

http://i1220.photobucket.com/albums/dd4 … acman7.png

http://i1220.photobucket.com/albums/dd4 … acman8.png

http://i1220.photobucket.com/albums/dd4 … acman9.png

I'm really sorry I had to do it this way... if you have some other idea how I can do the same job, please tell me... hopefully, the problem gets solved before I have to post another Terminal output... big_smile

Last edited by ewaller (2012-05-23 16:43:44)

Offline

#4 2012-05-23 16:53:43

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,797

Re: failed to commit transaction (invalid or corrupted package)...

Ouch.  I had to turn all of those inline images to url links. 

Verify that you have done a paman-key --init  ??
Did it ever ask you if you wanted to download individual keys?
You may also try a pacman -Scc followed by pacman -Syyu


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#5 2012-05-23 18:57:24

Black Death
Member
Registered: 2012-05-23
Posts: 6

Re: failed to commit transaction (invalid or corrupted package)...

oops... sorry for enclosing them in img tag...

Yes, I have done pacman-key --init before.

You mean something like this?

error: gcc-libs: key "F99FFE0FEAE999BD" is unknown
:: Import PGP key EAE999BD, "Allan McRae ", created 2011-06-03? [Y/n]

Yes, it asked for that too. I tried like four different packages in four ways and I guess when I was trying for firefox, I even added each of those package keys manually using these commands:

 # pacman-key -r <keyid>
# pacman-key --lsign-key <keyid>

Well, the same error came up even when I did it that way.

Just to tell you where exactly where I am stuck, I guess I was able to install only sudo until now... as given in the Beginner's guide. The next thing I started doing was Xorg GUI, and this gave me a bunch of error messages instead. I wasn't strictly following the guide when it came to /etc/pacman.conf though, because it gave me different error messages then... What it's like now, can be seen in that screenshot.

Last edited by Black Death (2012-05-23 18:59:02)

Offline

#6 2012-05-23 20:11:34

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: failed to commit transaction (invalid or corrupted package)...

Black Death wrote:

I wasn't strictly following the guide when it came to /etc/pacman.conf though, because it gave me different error messages then...


You would probably be better off following the guide to the letter until you have a better understanding of how everything works, and only then attempting some freestyle moves...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2012-05-23 20:27:09

Black Death
Member
Registered: 2012-05-23
Posts: 6

Re: failed to commit transaction (invalid or corrupted package)...

You would probably be better off following the guide to the letter until you have a better understanding of how everything works, and only then attempting some freestyle moves...

oh, no... you misunderstood me. When I followed the guide, it gave me some errors then too.

They were regarding the signature and key checking in pacman like I quoted in the post above.

So, I only tried commenting and uncommenting SigLevel setting under the repositories in the file.

When that didn't seem to work, I changed them back to how they were before, and this time I got the blog article and did what was said in that. Then this particular error is coming up.

If you want to know how the /etc/pacman.conf is as of now:

Include mirrorlist setting is uncommented only for [core], [extra], and [community] repositories.
The SigLevel is commented for all of them.
For the [testing] and remaining repositories, both of them are commented.

The SigLevel option above the repositories settings is currently set to Optional TrustAll as shown in the screenshot.

I don't think I should uncomment those multibit repositories like it says, as the xorg package doesn't seem to be a 32-bit one or something like that...

I can't understand where from the error is popping up.

Offline

#8 2012-05-23 20:59:04

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

Re: failed to commit transaction (invalid or corrupted package)...

For future reference, instead of wasting time taking 12 screenshots and posting them, it would be much easier to just use a pastebin client to upload from the command line.

https://wiki.archlinux.org/index.php/Pastebin_Clients

Some other solutions were discussed here:
https://bbs.archlinux.org/viewtopic.php?id=141534

Offline

#9 2012-05-24 18:10:27

Black Death
Member
Registered: 2012-05-23
Posts: 6

Re: failed to commit transaction (invalid or corrupted package)...

Thanks Pres!

Well, about the problem - It seems to me like the error might not be from pacman configuration file, I have wrote the settings in that file already here, and because you guys didn't spot any "obvious" error in that file - I think the pacman itself or the Arch installation itself might have crashed somewhere in the middle.

I think there would have been some problem while installing Arch itself, I mean it could so happen that one or two packages might not download properly, and may be pacman itself didn't download properly. May be something like that would be the cause for this error.

So, I am thinking of re-installing the whole thing.

But, I really didn't screw up the /etc/pacman.conf file.

Also, could it be this way that the error might be occuring due to some problem in downloading some packages while netinstall?

EDIT: I think I need to install guest additions for sharing folders (and writing terminal output) or I need to install some other package using pacman for posting /etc/pacman.conf here.

But, I can't do that because pacman itself is not working here. I should have posted this thread in pacman forum, but since I was technically in the middle of the installation and also because I consider myself a n00b, I thought this would be better place.

Last edited by Black Death (2012-05-24 18:35:14)

Offline

#10 2012-05-24 19:32:56

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

Re: failed to commit transaction (invalid or corrupted package)...

Boot the virtual machine into a live environment and then mount the Arch partition and grab the /etc/pacman.conf file from there. You can then install a pastebin client and post it. Heck, you could even just use Ubuntu/etc. and use a web browser to post it from within the virtual machine.

Offline

Board footer

Powered by FluxBB