Unable to repair packages in Ubuntu Software Center
5,987
Open a terminal and use these commands
sudo apt-get install -f
sudo dpkg --configure -a
sudo apt-get update && sudo apt-get upgrade
After the last one you should be able to open your USC
again without faults.
Edit
Comments explain that key 5A9A06AEF9CB8DB0 is missing, during sudo apt-get update
this fault comes up:
W: GPG error: http://ppa.launchpad.net oneiric Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 5A9A06AEF9CB8DB0
To repair the key these commands can be used:
sudo gpg --keyserver keyserver.ubuntu.com --recv-keys 5A9A06AEF9CB8DB0
sudo gpg --export --armor 5A9A06AEF9CB8DB0 | sudo apt-key add -
After that sudo apt-get update
should work, if you get no faults on it you can open USC
again and click on the repair button.
Author by
lieudusty
Updated on September 18, 2022Comments
-
lieudusty over 1 year
When I open up the Software Center it gives me, "Items cannot be installed or removed until package catalog is repaired". Can someone help me?
-
Nitin Venkatesh over 12 yearsdid you try
sudo apt-get update
from the terminal before installing applications from the Ubuntu Software Center
-
-
lieudusty over 12 yearsStill doesn't work. It gives me the same error in USC
-
lieudusty over 12 yearsOn sudo apt-get update I got: inline
W: GPG error: http://ppa.launchpad.net oneiric Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 5A9A06AEF9CB8DB0
, -
Bruno Pereira over 12 years
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys
followed bysudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 5A9A06AEF9CB8DB0
will do it for you I think (you have to type the 2 commands not only the last). -
lieudusty over 12 yearsI did that and i still get the same error in USC.
-
Bruno Pereira over 12 yearsgot any output there? (faults?)
-
Bruno Pereira over 12 yearsDo a
sudo apt-get update
again to check for the same fault plz and if that fault is still there do:sudo gpg --keyserver keyserver.ubuntu.com --recv-keys 5A9A06AEF9CB8DB0
followed by asudo gpg --export --armor 5A9A06AEF9CB8DB0 | sudo apt-key add -
-
lieudusty over 12 yearsI had no faults when running the command
sudo gpg --keyserver keyserver.ubuntu.com --recv-keys 5A9A06AEF9CB8DB0
, andsudo gpg --export --armor 5A9A06AEF9CB8DB0 | sudo apt-key add -
, -
Bruno Pereira over 12 yearsthen try just a
sudo apt-get update
again and check for faults. -
lieudusty over 12 yearsI ran
sudo apt-get update
and got no faults at all. -
Bruno Pereira over 12 years
USC
should open. else force and upgrade with ` sudo apt-get update && sudo apt-get upgrade`. -
lieudusty over 12 yearsAfter I opened it it still gives me the same error.
Items cannot be install or removed until the package catalog is repaired
EDIT: Now when i clicked repair it fixes it. Thank you very much! =D -
Bruno Pereira over 12 yearswelcome, glad it worked. ill edit the answer to reflect all this info!
-
Bruno Pereira over 12 yearsdone, tick the "checked" box if you agree with the answer. regards