Como desinstalar o java6

2

Estou tentando

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).

Abaixo está minha 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

Versão do Ubuntu - Hardy Heron

Alguém sabe como remover o java?

    
por infaustus 11.06.2012 / 11:57

2 respostas

2

Tente

sudo apt-get --purge remove sun-java6-\* vim-common

que também removerá o editor 'vi'. Você pode usar 'nano', 'pico' ou tentar instalar o vim mais tarde

    
por Vishnu Kumar 11.06.2012 / 14:10
1

Não tenho certeza se isso funcionará no Hardy. Ele faz em 9.x +. Por favor, tente o seguinte comando. Ele removerá todos os pacotes do sun-java6:

sudo apt-get purge sun-java6-\*
    
por Eye 11.06.2012 / 12:54