Problem Installing jre in Linux debian

Posted on

Problem :

I am trying to install JRE in Debian Linux.I tried this command and it got installed successfully,

apt-get install sun-java6-jre

after that the /usr/lib/jvm got deleted from me unintentionally.Now when I am trying to install it using the same command it is giving me the message that no new packages are installed as JRE is already installed.
The problem is I am not able to install the new JRE and also not able to use the previously installed as /usr/lib/jvm got deleted from me

Solution :

The key word here is --reinstall:

apt-get install --reinstall sun-java6-jre

Remove the installation using:

sudo apt-get remove sun-java6-jre

and then try installing again.

Leave a Reply

Your email address will not be published. Required fields are marked *