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.

Share:
5,987
lieudusty
Author by

lieudusty

Updated on September 18, 2022

Comments

  • lieudusty
    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
      Nitin Venkatesh over 12 years
      did you try sudo apt-get update from the terminal before installing applications from the Ubuntu Software Center
  • lieudusty
    lieudusty over 12 years
    Still doesn't work. It gives me the same error in USC
  • lieudusty
    lieudusty over 12 years
    On 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
    Bruno Pereira over 12 years
    sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys followed by sudo 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
    lieudusty over 12 years
    I did that and i still get the same error in USC.
  • Bruno Pereira
    Bruno Pereira over 12 years
    got any output there? (faults?)
  • Bruno Pereira
    Bruno Pereira over 12 years
    Do 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 a sudo gpg --export --armor 5A9A06AEF9CB8DB0 | sudo apt-key add -
  • lieudusty
    lieudusty over 12 years
    I had no faults when running the command sudo gpg --keyserver keyserver.ubuntu.com --recv-keys 5A9A06AEF9CB8DB0, and sudo gpg --export --armor 5A9A06AEF9CB8DB0 | sudo apt-key add -,
  • Bruno Pereira
    Bruno Pereira over 12 years
    then try just a sudo apt-get update again and check for faults.
  • lieudusty
    lieudusty over 12 years
    I ran sudo apt-get update and got no faults at all.
  • Bruno Pereira
    Bruno Pereira over 12 years
    USC should open. else force and upgrade with ` sudo apt-get update && sudo apt-get upgrade`.
  • lieudusty
    lieudusty over 12 years
    After 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
    Bruno Pereira over 12 years
    welcome, glad it worked. ill edit the answer to reflect all this info!
  • Bruno Pereira
    Bruno Pereira over 12 years
    done, tick the "checked" box if you agree with the answer. regards