![uninstall openjdk 7 ubuntu 12.04 uninstall openjdk 7 ubuntu 12.04](https://tdftips.com/wp-content/uploads/2021/04/icono-de-java-1.jpg)
Search for possible remaining Java directories: sudo updatedb sudo locate -b '\pack200' Remove Java entries, if there is still any, from the alternatives: for g in ControlPanel java java_vm javaws jcontrol jexec keytool mozilla-javaplugin.so orbd pack200 policytool rmid rmiregistry servertool tnameserv unpack200 appletviewer apt extcheck HtmlConverter idlj jar jarsigner javac javadoc javah javap jconsole jdb jhat jinfo jmap jps jrunscript jsadebugd jstack jstat jstatd native2ascii rmic schemagen serialver wsgen wsimport xjc do sudo update-alternatives -remove-all $g done Remove manually installed JVMs: sudo rm -rf /usr/lib/jvm/* Remove Java config and cache directory: sudo bash -c 'ls -d /home/*/.java' | xargs sudo rm -rf Get:1 trusty-security Release.Remove all the Java related packages (Sun, Oracle, OpenJDK, IcedTea plugins, GIJ): dpkg-query -W -f='$' | xargs sudo apt-get -y purge Hit trusty-updates/universe Translation-en Hit trusty-updates/restricted Translation-en Hit trusty-updates/multiverse Translation-en Hit trusty-updates/multiverse i386 Packages Hit trusty-updates/universe i386 Packages Hit trusty-updates/restricted i386 Packages Hit trusty-updates/multiverse amd64 Packages Hit trusty-updates/universe amd64 Packages Hit trusty-updates/restricted amd64 Packages Can you please run the the following commands and post the results you get:Ĭode: sudo apt-get autoremove & sudo apt-get autoclean & sudo apt-get updateReading package lists. You missed a space between 'update-alternatives' and '-config'īesides Java 7, you seem to also have Java 8 installed. PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/$Even though that's not the culprit of the mess you apparently might be facing, you misstyped the commands I've marked in red. PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/$ There is only one alternative in link group javaws (providing/usr/bin/javaws): /usr/lib/jvm/java-8-oracle/jre/bin/javaws
![uninstall openjdk 7 ubuntu 12.04 uninstall openjdk 7 ubuntu 12.04](https://i.stack.imgur.com/fZD3Q.png)
Update-alternatives: warning: /etc/alternatives/javaws isdangling it will be updated with best choice Nothing to sudo update-alternatives-config javaws There is only one alternative in link group javac (providing/usr/bin/javac): /usr/lib/jvm/java-7-oracle/bin/javac Nothing to sudo update-alternatives-config javac There is only one alternative in link group java (providing/usr/bin/java): /usr/lib/jvm/java-8-oracle/jre/bin/java Update-alternatives: warning: /etc/alternatives/java is dangling it will be updated with best choice
![uninstall openjdk 7 ubuntu 12.04 uninstall openjdk 7 ubuntu 12.04](https://i.ytimg.com/vi/5FDSsH8_h44/maxresdefault.jpg)
Update-alternatives: warning: /etc/alternatives/javaws isdangling it will be updated with best cd sudo rm -rf sudo update-alternatives-config java Update-alternatives: warning: alternative/usr/lib/jvm/java-8-oracle/jre/bin/javaws (part of link group javaws)doesn't exist removing from list of alternatives Update-alternatives: warning: /etc/alternatives/java is dangling it will be updated with best sudo update-alternatives -remove"javac" sudo update-alternatives -remove"javaws" "/usr/lib/jvm/jdk1.7.0_55/bin/javaws" Javac which sudo update-alternatives -remove"java" "/usr/lib/jvm/jdk1.7.0_55/bin/java" The program 'java' can be found in the following packages: