Fixing software center catalog

Solution 1:

To fix broken packages in Ubuntu, just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command below.

sudo dpkg --configure -a
sudo apt-get install -f

If the problem still exist, then edit dpkg status file

gksudo gedit /var/lib/dpkg/status   

Find the package in question, and remove everything that has anything to do with it >and save the file.1

1Source:Ubuntu fix

Solution 2:

Open a terminal and try this command

sudo apt-get install -f

It will fix all broken packages. after this you can install any s/w you want.

Solution 3:

When upgrading from 13.10 to 14.04.1, I had a problem with broken packages, and when trying all the common things like apt-get -f install, I got an error, something like E: Sub-process /usr/bin/dpkg returned an error code (1).

Instead of reinstalling and spending hours setting things up, I got my hands dirty, and eventually fixed. Here's how:

  1. Synaptic uses apt-get underhood. Go use that apt-get at console. Figure out what commands are used by Synaptic, or which to use.

  2. apt-get uses dpkg internally. If it tells dpkg ended with an error, try to do the operation with dpkg directly, you'll see the actual error.

  3. dpkg stores it's metadata in /var/lib/dpkg/info/. In my case, it had problems with samba-libs, installing (corrupted archive) or removing (metadata missing -> saying it's not installed). So I deleted the metadata. Then ran dpkg --clear-avail. Then downloaded the library, put to the place instead of the corrupted file. Then apt-get update. Then dpkg --install <path-to-lib>. And then it started working.