Cannot install openjdk on Hardy Heron

Posted by infaustus on Ask Ubuntu See other posts from Ask Ubuntu or by infaustus
Published on 2012-06-11T08:09:44Z Indexed on 2012/06/11 10:47 UTC
Read the original article Hit count: 357

Filed under:
|
|

I know that Hardy Heron is very old but don't ask why Hardy...

I've tried

root@vz10931:/etc/apt# apt-get install openjdk-6-jre
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:
openjdk-6-jre: Depends: libasound2 (> 1.0.14) but it is not going to be installed
             Depends: libgif4 (>= 4.1.6) but it is not going to be installed
             Depends: libxtst6 but it is not going to be installed
             Depends: openjdk-6-jre-headless (>= 6b18-1.8.3-0ubuntu1~8.04.2) but it is not going to be installed
  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).

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

And

root@vz10931:/etc/apt# ls -l sources.list.d/
total 0

Please help. When I've tried apt-get install -f I had install new system because everything crashed.

Edit: I checked that i have openjdk installed root@vz10931:/var/www/mailer# dpkg --list | grep java iU sun-java6-bin 6.24-1build0.8.04.1 Sun Java(TM) Runtime Environment (JRE) 6 (ar iU sun-java6-jdk 6.24-1build0.8.04.1 Sun Java(TM) Development Kit (JDK) 6 iU sun-java6-jre 6.24-1build0.8.04.1 Sun Java(TM) Runtime Environment (JRE) 6 (ar

but when i am trying to start java file: java -jar program.jar error appear -bash: java: command not found

© Ask Ubuntu or respective owner

Related posts about installation

Related posts about openjdk