web-dev-qa-db-fra.com

Comment désinstaller Java6

J'essaie

root@vz10931:/var/www/mailer# apt-get remove --purge Sun-Java6-bin
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run apt-get -f install to correct these:
The following packages have unmet dependencies:
  Sun-Java6-jdk: Depends: Sun-Java6-bin (>= 6.24-1build0.8.04.1) but it is not going to be installed
  Sun-Java6-jre: Depends: Java-common (>= 0.24) but it is not installable
                 Depends: Sun-Java6-bin (>= 6.24-1build0.8.04.1) but it is not going to be installed or
                          ia32-Sun-Java6-bin (>= 6.24-1build0.8.04.1) but it is not installable
  vim: Depends: vim-common (= 1:7.1-138+1ubuntu3.1) but 2:7.3.154+hg~74503f6ee649-2ubuntu3 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Ci-dessous mon sources.list

deb http://pl.archive.ubuntu.com/ubuntu/ hardy main restricted universe multiverse
deb-src http://pl.archive.ubuntu.com/ubuntu/ hardy main restricted universe multiverse
deb http://pl.archive.ubuntu.com/ubuntu/ hardy-updates main restricted universe multiverse
deb-src http://pl.archive.ubuntu.com/ubuntu/ hardy-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu hardy-security main restricted universe multiverse
deb-src http://security.ubuntu.com/ubuntu hardy-security main restricted universe multiverse

Version Ubuntu - Hardy Heron

Quelqu'un sait comment supprimer Java?

2
infaustus

Essayer

Sudo apt-get --purge remove Sun-Java6-\* vim-common

cela supprimera également l'éditeur 'vi'. Vous pouvez utiliser 'nano', 'pico' à la place ou essayer d'installer vim plus tard

2
Vishnu Kumar

Je ne sais pas si cela fonctionnera sur Hardy. C'est le cas sur 9.x +. S'il vous plaît essayez la commande suivante. Il supprimera tous les paquets de Sun-Java6:

Sudo apt-get purge Sun-Java6-\*
1
Eye