Java installing issue using apt
Hello there.
I'm using Ubuntu dapper. Recently I tried to install Java using the apt programm. But it gives me these lines which i dont know what to do on: Code:
fault@fault:~$ sudo apt-get install sun-java5-jdk Code:
fault@fault:~$ sudo apt-get install -f Thanks in advance. -fault |
I have had nothing but trouble trying to install java from the Debian repos. I've gone back to the old fashioned way. It works better. It looks complicated, but it's not.
|
this brings same errors... :(
somehow every package i try to install using apt seems to depend on these java packages, even when i try to remove anything allready installed. What is this? Is apt somehow messed up? |
Tips....
Not use apt it doesn't work and probably will never work. So go to the Sun Java website and download the jre-1_5_0_07-linux-i586.bin file. https://sdlc1b.sun.com/ECom/EComActi...DFBD8917FC8A6D Save this in the root folder and login as root run then do this; chmod a+x jre-1_5_0_07-linux-i586.bin ./jre-1_5_0_07-linux-i586.bin ln -s /usr/java/jre1.5.0_07/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins /usr/sbin/alternatives --install /usr/bin/java java /usr/java/jre1.5.0_07/bin/java 1507 java -version And Java is installed.... (the location for your Mozilla plugin fodler can be different) |
Quote:
To the OP: You are doing the correct method (rickh's one also work but there is an easier one now). What release of debian you use? Put it in your profile, please, you will get proper support. If its what I think, its trivial to fix. But I need to know which release you use. |
thx dummy-in-linux, but it still doesnt work interly:
Code:
root@fault:/usr/lib/mozilla# /usr/sbin/alternatives --install /usr/bin/java java /usr/java/jre1.5.0_07/bin/java 1507 Code:
root@fault:/usr/lib/mozilla# java -version I'm using Ubuntu Dapper: Code:
root@fault:/usr/lib/mozilla# cat /proc/version |
from root:
Code:
xauth -merge ~fault/.Xauthority I suggest you do this, otherwise you will have the problem again Code:
dpkg-reconfigure debconf But you already installed the .bin so I don't know what will happen.. sun-dlj-v1-1 license could not be presented was the error |
/usr/sbin/update-alternatives --install /usr/bin/java java /usr/java/jre1.5.0_07/bin/java 1507
|
I tried to install java using synaptics. It displayed the licence and I was able to accept it. Installing through synaptics worked fine. I'm happy now, since everyhting is working fine. Thanks for support.
|
Still you should do this:
Quote:
On my release, it is corrected: in case root is not allowed to open a window, it falls back to text mode. |
All times are GMT -5. The time now is 04:17 AM. |