0

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?

Thanks!

2
  • 1
    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.
    – Panther
    Apr 24, 2014 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
    – Mixx
    Apr 24, 2014 at 16:21

2 Answers 2

0

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.

10
  • So running that command won't actually remove anything except the software center? @K. Darien Freeheart
    – Mixx
    Apr 24, 2014 at 16:24
  • That will not work.
    – Panther
    Apr 24, 2014 at 16:27
  • How so? All I want is to completely wipe the Software Center off my system, then reinstall it. @bodhi.zazen
    – Mixx
    Apr 24, 2014 at 16:30
  • apt-get will remove the dependencies as well.
    – Panther
    Apr 24, 2014 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. Apr 24, 2014 at 16:32
0

To remove a package without the dependencies use dpkg

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

Then you can re-install it with apt-get

Not the answer you're looking for? Browse other questions tagged .