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.

I used this purge command sudo apt-get purge openjdk7*, however this uninstalled a lot of the software and my me menu has vanished. Every time I install something there is a huge list of packages the system wants me to remove by using the command sudo apt-get autoremove. I looked trough these, and some were recently installed, but are recognized as orphaned packages.

Is there any way I can solve this, or do I have to format and install Ubuntu again? I am using Ubuntu 12.04 LTS x64.

Here are pastebins of three relevant log files from my system:

/var/log/dpkg.log

/var/log/apt/history.log

/var/log/apt/term.log

share|improve this question

2 Answers 2

up vote 2 down vote accepted

Going from the APT history log, the problem wasn't apt-get purge openJDK7*, which uninstalled openjdk, but apt-get purge java* which removed ubuntu-desktop.

The problem is that java* matches javascript :)

To get back to a usable system, apt-get install ubuntu-desktop.

To get everything you had installed back, install everything you can see that APT removed when you told it to purge java*.

share|improve this answer
    
Thank you for pointing that out :) I was sure that i used sudo apt-get purge opendJDK7 when it went wrong. I went trough the list, and I don't know how, but most of the ones that were removed showed as installed and latest version. I wish I could give you vote up, but I am not allowed. Thank you for the help :) –  user66987 May 30 '12 at 21:02

I am not sure if this will help you or not, but I had no issues using the purge command to get rid of openjdk. I did this of course to install the official oracle-java7. Here are the steps I took:

sudo apt-get purge openjdk*
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

Hope this helps, sorry if it doesn't!

share|improve this answer
    
I wanted to uninstall openjdk, and install oracle-java7. I have oracle-java installed. When i used the purge command, it uninstalled a lot more than just java. it purged, if I remember correctly 144 MB, that is a lot more than just java. It even uninstalled software center. But that is ok, since I managed to install it again. The me-menu dissapeared also. I checked to see if it were still installed, and it shows as installed, but it doesn't show on the panel. I have no idea, what the purge command uninstalled. But thanks for trying to help :) –  user66987 May 29 '12 at 22:57

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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