Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

I've been having a few issues with Ubuntu Software Center and need to do a complete reinstall of it. I tried "sudo apt-get purge software-center" but that said it would remove the Ubuntu desktp. So how can I completely remove it (config files and everything) then reinstall it?


share|improve this question

marked as duplicate by Afshin Hamedi, Fabby, Eric Carvalho, Wilf, Charles Green Feb 23 '15 at 15:53

This question was marked as an exact duplicate of an existing question.

What problem are you having and what makes you think reinstalling software center will fix it? This is not windows and reinstalling things rarely, if ever, fixes problems. – bodhi.zazen Apr 24 '14 at 16:18
Well it's only just a few little things that would probably be insignificant to most. I would just like to know how to completely reinstall it is all. @bodhi.zazen – Master_W Apr 24 '14 at 16:21

ubuntu-desktop is a meta-package. Removing it will not actually make your desktop inoperable.

Your method is correct, though I use explicit flags when I remove:

sudo apt-get remove --purge software-center

This will remove config files as well as the package. To install it again:

sudo apt-get install software-center

You could also add ubuntu-desktop to that command after the software-center package, if you want to be sure you are still tracking it.

share|improve this answer
So running that command won't actually remove anything except the software center? @K. Darien Freeheart – Master_W Apr 24 '14 at 16:24
That will not work. – bodhi.zazen Apr 24 '14 at 16:27
How so? All I want is to completely wipe the Software Center off my system, then reinstall it. @bodhi.zazen – Master_W Apr 24 '14 at 16:30
apt-get will remove the dependencies as well. – bodhi.zazen Apr 24 '14 at 16:30
It will remove software-center and the ubuntu-desktop metapackage. The metapackage doesn't contain software itself. So technically it will remove more than just software-center, but it won't affect any of your installed software or any programs you use. – K. Darien Freeheart Apr 24 '14 at 16:32

To remove a package without the dependencies use dpkg

sudo dpkg -P <package> --force-depends

Then you can re-install it with apt-get

share|improve this answer

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