I'm trying to install the JDK in order to install NetBeans.
Here is my attempt to install the JDK:
Java version (Java -version):
java version "1.7.0_95" OpenJDK Runtime Environment (IcedTea 2.6.4)
(7u95-2.6.4-0ubuntu0.15.10.1) OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)
JDK installation command:
sudo apt-get install default-jdk
Exit installation command:
kleber @ magneto: ~ $ sudo apt-get install default-jdk
Reading lists of packages ... Ready Building dependency tree
Reading status information ... Ready Some packages could not be installed. This may mean that you have requested a impossible or, if you are using the unstable distribution, that some packages have not been created yet or have been removed from the "Incoming." The following information can help resolve the situation:The following packages have mismatched dependencies: default-jdk: Depends: openjdk-7-jdk (> = 7 ~ u3-2.1.1) E: Impossible to fix problems, you kept (hold) broken packages.
It says it depends on openjdk
then I execute the command to install:
sudo apt-get install openjdk-7-jre
Command Output:
kleber @ magneto: ~ $ sudo apt-get install openjdk-7-jre Reading lists of packages ... Ready Building dependency tree Reading status info ... Ready openjdk-7-jre is already the newest version. 0 packages upgraded, 0 new packages installed, 0 to be removed and 0 not updated.
Does anyone know what I should do to get JDK installed?