19

Since migrating to a true install and upgrading to 12.04 I have had several problems that seem to relate to the Ubuntu Software Center. Hanging at applying changes and blank screen on screen lock only when it is running, for instance.

My question is: Can I safely uninstall and reinstall Ubuntu Software Center and could this possibly fix those problems or are they just bugs I have to wait for updates for?

Eliah Kagan
  • 119,640

3 Answers3

25

Press CTRL+ALT+T simultaneously to enter terminal.

To uninstall Software Center:

  1. sudo apt-get remove software-center

  2. sudo apt-get autoremove software-center

To re-install Software Center:

  1. sudo apt-get update

  2. sudo apt-get install software-center

Thomas Ward
  • 78,878
all4naija
  • 1,554
8

You can uninstall and reinstall the Software Center with a single command. This also resets any of its systemwide configuration files to their defaults.

sudo apt-get --purge --reinstall install software-center

If you want to get a newer version of the Software Center if there's one available as an update, make sure to run sudo apt-get update first (as you'd usually do when installing any software from the Terminal).

As for whether or not this will fix the problem, sometimes it does, and sometimes it doesn't. It depends on specifically what is wrong. I recommend removing user-specific Software Center configuration files as well:

cd ~/.config; rm -r software-center

If the problems persist, I recommend reporting a bug.

Eliah Kagan
  • 119,640
0

Your problem might not be exactly the software center, it doesn't manage and if the problem is settings level it will NOT revert when you update the application, you may likely remove the problematic app but instead of apt-get remove you will have to use apt-get purge which will also remove the configuration files from your computer, the you'll have to reinstall the application and that should solve the problem

Ubuntubro
  • 71
  • 4