Bonjour,
J'ai installé JDK 8 avec la commande
sudo apt-get install openjdk-8-jdk
J'ai essayé de le désinstaller avec les commandes ci dessous :
sudo apt-get remove openjdk*
sudo apt-get remove --auto-remove openjdk*
sudo apt-get purge openjdk*
sudo apt-get purge --auto-remove openjdk*
Donc quand je fait la commande :
java -version
il me dit que la commande java n'a pas été trouvé.
Mais quand je fait la commande :
apt-cache search jdk
il me sort une ribambelle de JDK dont la liste est en dessous :
default-jdk - kit de développement Java standard ou compatible
default-jdk-doc - kit de développement Java standard ou compatible –⋅documentation
default-jdk-headless - kit de développement Java standard ou compatible — non graphique
default-jre - environnement d'exécution Java standard ou compatible
default-jre-headless - environnement d'exécution standard Java ou compatible — non graphique
openjdk-11-dbg - exécution de Java basé sur OpenJDK – symboles de débogage
openjdk-11-doc - Documentation du kit de développement OpenJDK (JDK)
openjdk-11-jdk - kit de développement OpenJDK - JDK
openjdk-11-jdk-headless - OpenJDK Development Kit (JDK) (headless)
openjdk-11-jre - Environnement d'exécution Java OpenJDK qui utilise Hotspot JIT
openjdk-11-jre-headless - environnement d'exécution Java OpenJDK utilisant Hotspot JIT (sans affichage)
openjdk-11-source - Fichiers sources pour le kit de développement OpenJDK (JDK)
fakeroot-ng - fourniture d’un environnement root factice
japitools - outils de test de compatibilité entre des API Java
jattach - utilitaire Dynamic Attach de JVM, jmap jstack jcmd jinfo en un seul paquet
java3ds-fileloader - chargeur de fichier 3DS Java3D
libanimal-sniffer-java - outils de vérification de l'API/JDK
libanimal-sniffer-java-doc - Documentation for Animal Sniffer
libassertj-core-java - assertions fluides pour Java
libcolt-free-java - informatique scientifique et technique évolutive en Java
libcolt-free-java-doc - informatique scientifique et technique évolutive en Java (doc)
libcommons-collections3-java - Apache Commons Collections - Collections étendues d'API pour Java
libcommons-collections4-java - Apache Commons Collections - Collections étendues d'API pour Java
libcommons-collections4-java-doc - Documentation for Commons Collections 4
libcommons-math-java - Composants mathématiques et statistiques légers en Java
libcommons-math-java-doc - Composants mathématiques et statistiques légers en Java - Documentation
libcommons-math3-java - Composants mathématiques et statistiques légers en Java
libcommons-math3-java-doc - Composants mathématiques et statistiques légers en Java - Documentation
libhessian-java - Implémentation Java d'un protocole binaire pour les services Web
libhessian-java-doc - Documentation pour libhessian-java
libicu4j-4.4-java - Bibliothèque pour la prise en charge d'Unicode et de l'internalisation
libicu4j-java - Bibliothèque pour la prise en charge d'Unicode et de l'internalisation
libicu4j-java-doc - Library for Unicode support and internationalization - Docs
libitext1-java - Bibliothèque Java pour générer des PDF à la volée
libjxp-java - Java template engine/script processor
libreoffice - suite bureautique complète − métapaquet
libslf4j-java - Simple façade de journalisation pour Java
libtrove-java-doc - high performance collections for java
libtrove3-java-doc - high performance collections for java
libvisualvm-jni - All-in-One Java Troubleshooting Tool (JNI libraries)
mmake - Générateur de makefile pour les programmes Java
openjdk-11-demo - Environnement d'exécution Java basé sur OpenJDK (démonstrations et exemples)
openjdk-8-dbg - Environnement d'exécution Java basé sur OpenJDK (symboles de débogage)
openjdk-8-demo - Environnement d'exécution Java basé sur OpenJDK (démonstrations et exemples)
openjdk-8-doc - Documentation du kit de développement OpenJDK (JDK)
openjdk-8-jdk - kit de développement OpenJDK - JDK
openjdk-8-jdk-headless - OpenJDK Development Kit (JDK) (headless)
openjdk-8-jre - Environnement d'exécution Java OpenJDK qui utilise Hotspot JIT
openjdk-8-jre-headless - environnement d'exécution Java OpenJDK utilisant Hotspot JIT (sans affichage)
openjdk-8-source - Fichiers sources pour le kit de développement OpenJDK (JDK)
substance-doc - cross-platform look & feel for Swing applications - documentation
testng - Cadre applicatif de tests pour Java
uwsgi-plugin-jvm-openjdk-11 - Java plugin for uWSGI (OpenJDK 11)
uwsgi-plugin-jwsgi-openjdk-11 - JWSGI plugin for uWSGI (OpenJDK 11)
uwsgi-plugin-ring-openjdk-11 - Closure/Ring plugin for uWSGI (OpenJDK 11)
uwsgi-plugin-servlet-openjdk-11 - JWSGI plugin for uWSGI (OpenJDK 11)
visualvm - outil de résolution de problème tout-en-un pour Java
crypto-policies - unify the crypto policies used by different applications and libraries
golang-github-jdkato-prose-dev - Golang library for text processing
golang-github-jdkato-syllables-dev - Go syllable counter
jtreg - Regression Test Harness for the OpenJDK platform
libcava-java - Libraries and tools for blockchain and decentralized software
libcommons-lang-java - Commons Lang - an extension of the java.lang package
libcommons-lang-java-doc - Documentation for Commons Lang - an extension of the java.lang package
libgkl-java - Java library to manipulate SAM and BAM files
libgkl-jni - native libraries of Java library to manipulate SAM and BAM files
libgs-collections-java - Goldman Sachs Collections
libhawtbuf-java - HawtBuf rich byte buffer library
libhibernate-commons-annotations-java - Hibernate Commons Annotations
libhsdis0-fcml - HotSpot disassembler plugin using FCML
libhtsjdk-java - Java API for high-throughput sequencing data (HTS) formats
libhtsjdk-java-doc - Documentation for the java HTSJDK library
libintellij-java-compatibility-java - Classes from JDK8 excluded from JDK9
libjackson2-jr-java - JSON library for Java -- standalone data-binding module
libjackson2-jr-java-doc - Documentation for libjackson2-jr-java
libjax-maven-plugin - Using the xjc goal with OpenJDK 11+
libjboss-logmanager-java - implementation of java.util.logging.LogManager
libjctools-java - Java Concurrency Tools for the JVM
libjodd-java - Java utility library and set of frameworks
libjws-api-java - Java EE Web Services Metadata API (JSR 181)
libkryo-serializers-java - Kryo serializers
libmaven-enforcer-plugin-java - Maven build rule execution framework
libmodulator-java - Java small shim library that wraps Java 9 APIs and exposes them to recent JDKs
libnb-javaparser-java - Parser for the Java language which is good for use in tools
libpicocontainer1-java - Java library implementing the Dependency Injection pattern
libpracticalxml-java - practical XML handling routines
libthreeten-extra-java - Additional functionality that enhances JSR-310 dates and times
libtrove-intellij-java - high performance collections for java
libtrove-java - high performance collections for java
libtrove3-java - high performance collections for java
libunsafe-fences-java - wrapper library around the Java 8 fences API
libunsafe-mock-java - Java library providing backported sun.misc.Unsafe class from JDK 8
openjdk-11-jre-dcevm - Alternative VM for OpenJDK 11 with enhanced class redefinition
openjdk-11-jre-zero - Alternative JVM for OpenJDK, using Zero
openjdk-8-jre-zero - Alternative JVM for OpenJDK, using Zero/Shark
substance - cross-platform look & feel for Swing applications
substance-flamingo - Substance Flamingo plugin
substance-flamingo-doc - Substance Flamingo plugin (documentation)
uwsgi-app-integration-plugins - plugins for integration of uWSGI and application
java-package - Utilitaire pour créer des paquets Debian Java
openjdk-13-dbg - Java runtime based on OpenJDK (debugging symbols)
openjdk-13-demo - Java runtime based on OpenJDK (demos and examples)
openjdk-13-doc - OpenJDK Development Kit (JDK) documentation
openjdk-13-jdk - OpenJDK Development Kit (JDK)
openjdk-13-jdk-headless - OpenJDK Development Kit (JDK) (headless)
openjdk-13-jre - OpenJDK Java runtime, using Hotspot JIT
openjdk-13-jre-headless - OpenJDK Java runtime, using Hotspot JIT (headless)
openjdk-13-jre-zero - Alternative JVM for OpenJDK, using Zero
openjdk-13-source - OpenJDK Development Kit (JDK) source files
openjdk-14-dbg - Java runtime based on OpenJDK (debugging symbols)
openjdk-14-demo - Java runtime based on OpenJDK (demos and examples)
openjdk-14-doc - OpenJDK Development Kit (JDK) documentation
openjdk-14-jdk - OpenJDK Development Kit (JDK)
openjdk-14-jdk-headless - OpenJDK Development Kit (JDK) (headless)
openjdk-14-jre - OpenJDK Java runtime, using Hotspot JIT
openjdk-14-jre-headless - OpenJDK Java runtime, using Hotspot JIT (headless)
openjdk-14-jre-zero - Alternative JVM for OpenJDK, using Zero
openjdk-14-source - OpenJDK Development Kit (JDK) source files
Alors j'ai essayé pleins de solutions pour essayer de tout désinstaller complètement mais rien n'y fait :/.
Je vous remercie d'avance pour votre aide 🙂.
P.S. : Je suis sous Ubuntu 20.04.1 LTS.