Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 8756  / 3 Years ago, sat, september 25, 2021, 12:23:53

I am trying



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


Below is my 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


Ubuntu version - Hardy Heron



Anyone know how to remove java ?


More From » apt

 Answers
5

Try



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



that will also remove 'vi' editor.
You can use 'nano', 'pico' instead or try installing vim later


[#37711] Saturday, September 25, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
raacket

Total Points: 198
Total Questions: 114
Total Answers: 111

Location: Czech Republic
Member since Mon, May 15, 2023
1 Year ago
;