Ubuntu – How to fix the software center


Alright so I've looked around on askubuntu and a few other forums but I can't seem to find the answer I need to get the problem resolved. I am running Ubuntu 14.04 and only recently installed it. I've loved it for the past couple of days, but now my software center will NOT open. I've already tried updating everything, I've uninstalled and reinstalled software center, I've run it from the terminal, I've done everything I could possibly find in the forums about this issue. None of it has worked. This is the text I get when I run software center in the terminal:

~$ software-center
2015-10-20 15:10:36,406 - softwarecenter.ui.gtk3.app - INFO - setting up proxy 'None'

2015-10-20 15:10:39,786 - softwarecenter.region - WARNING - failed to use geoclue: 'org.freedesktop.Geoclue.Error.notAvailable: Geoclue master client has no usable Address providers'

2015-10-20 15:10:40,554 - softwarecenter.backend.reviews - WARNING - Could not get usefulness from server, no username in config file

2015-10-20 15:10:40,573 - softwarecenter.plugin - INFO - activating plugin '<module 'webapps_activation' from '/usr/share/software-center/softwarecenter/plugins/webapps_activation.pyc'>'

2015-10-20 15:10:40,739 - softwarecenter.db.pkginfo_impl.aptcache - INFO - aptcache.open()

2015-10-20 15:10:41,602 - softwarecenter.backend.reviews - WARNING - error creating bsddb: '(22, 'Invalid argument -- BDB0054 illegal flag combination specified to DB_ENV->open')' (corrupted?)

2015-10-20 15:10:41,603 - softwarecenter.backend.reviews - ERROR - trying to repair DB failed
Traceback (most recent call last):
  File "/usr/share/software-center/softwarecenter/backend/reviews/__init__.py", line 358, in _save_review_stats_cache_blocking
    self._dump_bsddbm_for_unity(outfile, outdir)
  File "/usr/share/software-center/softwarecenter/backend/reviews/__init__.py", line 377, in _dump_bsddbm_for_unity
DBInvalidArgError: (22, 'Invalid argument -- BDB0054 illegal flag combination specified to DB_ENV->open')

/usr/lib/python2.7/dist-packages/gi/overrides/GLib.py:535: Warning: Source ID 76 was not found when attempting to remove it
  return super(MainContext, self).iteration(may_block)

/usr/lib/python2.7/dist-packages/gi/overrides/GLib.py:535: Warning: Source ID 20 was not found when attempting to remove it
  return super(MainContext, self).iteration(may_block)
Bus error (core dumped)

Best Answer

Uninstalling won't make a difference. You need to purge the software-center. Run the following commands and please post any errors:

sudo apt-get purge software-center software-center-aptdaemon-plugins

Then, reinstall it:

sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install software-center software-center-aptdaemon-plugins


It looks like it could be hardware related as the only thing out of the ordinary here is the bus error. You could try running the following command:

sudo rm /var/cache/apt/*.bin


Related Question