K
K
Konstantin2015-04-06 16:25:17
linux
Konstantin, 2015-04-06 16:25:17

How to properly uninstall JDK on Linux?

At first I installed JDK 1.8, but something conflicted with it and installed JDK 1.7 instead
. But I did it apparently somehow crookedly, that tails remained from 1.8. Now, when updating through the update manager, it returns an error:

E: jdk1.8.0-40: subprocess installed post-removal script returned error code 127
.
Installations via apt-get install also swear. As I understand it, physically the files from 1.8 have been removed, but links to them have remained somewhere. Please tell me how can I fix this?

ps. javac -version
javac 1.7.0_75

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Danila, 2015-04-06
@happy_yar

sudo mkdir -p /usr/java
sudo touch /usr/java/aa
sudo touch /usr/sbin/alternatives
sudo apt-get remove jdk1.8.0-40

V
Vladimir, 2015-04-06
@rostel

unpick deb 1.8
you will see that where it was placed , it is
necessary to analyze the scripts, maybe what was created from them

P
protven, 2015-04-07
@protven

This is to the question that it is not necessary to install jdk from reps. As much has been said - download the normal Oracle JDK from the vendor's website in the form of a tar.gz archive and set it manually.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question