Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

share|improve this question
add comment

4 Answers 4

up vote 18 down vote accepted

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

share|improve this answer
    
Interesting, using apt-get to remove software-center also states that it will remove ubuntu-desktop. That sounds a bit scary, but removes doesn't seem to have broken anything just yet. I suppose we'll see what happens with the next set up updates/upgrades and when we put this into production. –  Magellan May 10 '12 at 21:09
    
@all4ninja re-installing software-center did not fix my problem. For example, after reinstallation, I tried to install inkscape. But the install button is not even clickable. I really don't get this mess I've got into :( –  itsols Jun 11 '12 at 12:34
    
@all4naija I misspelled your name. The comment addressed to all4ninja was meant for you :) –  itsols Jun 11 '12 at 13:02
    
Try to install it from terminal - 1. sudo apt-get restricted-extras 2. sudo apt-get update 3. sudo apt-get install inkscape . Come back here with your feedback –  all4naija Jun 11 '12 at 14:04
3  
Why run sudo apt-get update after reinstalling the Software Center? –  Eliah Kagan Aug 2 '12 at 17:07
add comment

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

share|improve this answer
add comment

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.

share|improve this answer
add comment

Yes. Uninstall software-center and then reinstall it using the terminal.

share|improve this answer
    
this does NOT work for me. –  itsols Jun 11 '12 at 13:00
add comment

protected by Community Nov 20 '12 at 19:33

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.