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
filegksudo 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:
Synaptic uses
apt-get
underhood. Go use thatapt-get
at console. Figure out what commands are used by Synaptic, or which to use.apt-get
usesdpkg
internally. If it tellsdpkg
ended with an error, try to do the operation withdpkg
directly, you'll see the actual error.dpkg
stores it's metadata in/var/lib/dpkg/info/
. In my case, it had problems withsamba-libs
, installing (corrupted archive) or removing (metadata missing -> saying it's not installed). So I deleted the metadata. Then randpkg --clear-avail
. Then downloaded the library, put to the place instead of the corrupted file. Thenapt-get update
. Thendpkg --install <path-to-lib>
. And then it started working.