0

I accidentally removed the Ubuntu Software Centre, when I was actually trying to remove my Ubuntu One applications. Although I don't remember directly uninstalling the Centre, I think deleting one of those packages might have triggered it.

I cannot look at history of application changes, as the Software Centre is missing.

Please advise on how to install, or rather reinstall, Ubuntu Software Centre on my computer.

Michael Martin-Smucker
  • 6,572
  • 4
  • 29
  • 57
Abhimanyu
  • 1,383
  • 3
  • 20
  • 34
  • 1
    I removed your mention of 13.10. While that information shouldn't make any difference, it prompted someone to vote to close the question, since that release is no longer supported. – Michael Martin-Smucker Sep 08 '14 at 03:31
  • Related: [Can I uninstall and reinstall Ubuntu Software Center?](http://askubuntu.com/questions/133456/can-i-uninstall-and-reinstall-ubuntu-software-center) – Eliah Kagan Sep 10 '14 at 01:43

2 Answers2

4

Since you are not sure what you deleted, I suggest you to run sudo apt-get purge software-center to clear all files it left over. Then, you can reinstall from scratch by running sudo apt-get install software-center.

Regarding the history of changes, there is a log file called .bash_history in your home folder which show the history of the commands you run in the terminal. This is a hidden file so in order to see it you need to press Ctrl+H. This can give you hints of what you deleted.

  • I've already downloaded it, is there a way I can still purge any useless files? – Abhimanyu Sep 08 '14 at 03:17
  • 1
    I'm not sure about that but it is always safe to uninstall (via purge) and then reinstall. –  Sep 08 '14 at 03:25
  • You mean now that I have it installed, I should run these: `purge software-center` and `install software-center`? Isn't it already installed? Where's any reinstall or uninstall happening? – Abhimanyu Sep 08 '14 at 03:36
1

You could try running:

sudo apt-get install software-center

Kaz Wolfe
  • 33,802
  • 20
  • 111
  • 168
learner
  • 19
  • 1