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
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?
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
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-\*