I've got a server that's running Debian Squeeze and upgrading to Wheezy isn't an option. I need to install version 7 of the JRE as there's some bug fixes in there I require. My options are:
- Install openjdk-7-jre from the wheezy package repository
- Install oracle 7 jre
We would preferably like to install openjdk but I'm finding it very difficult. I tried installing using apt-get openjdk-7-jre and got the following response:
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
openjdk-7-jre : Depends: openjdk-7-jre-headless (= 7u3-2.1.3-1) but it is not going to be installed
Depends: libfontconfig1 (>= 2.9.0) but 2.8.0-2.1 is to be installed
Depends: libgdk-pixbuf2.0-0 (>= 2.22.0) but it is not going to be installed
Depends: libjpeg8 (>= 8c) but 8b-1 is to be installed
Depends: libpulse0 (>= 0.99.1) but 0.9.21-3+squeeze1 is to be installed
Depends: libatk-wrapper-java-jni (>= 0.30.4-0ubuntu2) but it is not going to be installed
E: Broken packages
I then tried aptitude and got this response:
0 packages upgraded, 76 newly installed, 0 to remove and 0 not upgraded.
Need to get 56.9 MB of archives. After unpacking 171 MB will be used.
The following packages have unmet dependencies:
libnss3: Conflicts: libnss3-1d (< 2:3.13.4-2) but 3.12.8-1+squeeze6 is installed.
openjdk-7-jre: Depends: libfontconfig1 (>= 2.9.0) but 2.8.0-2.1 is installed.
Depends: libjpeg8 (>= 8c) but it is not going to be installed.
Depends: libpulse0 (>= 0.99.1) but it is not going to be installed.
libgdk-pixbuf2.0-0: Depends: libglib2.0-0 (>= 2.31.18) but 2.24.2-1 is installed.
Depends: libjpeg8 (>= 8c) but it is not going to be installed.
Depends: libtiff4 (>= 3.9.5-2) but 3.9.4-5+squeeze8 is installed.
Breaks: libgtk2.0-0 (< 2.21.3) but 2.20.1-2 is installed.
Breaks: libgtk2.0-bin (< 2.21.3) but 2.20.1-2 is installed.
icedtea-7-jre-cacao: Depends: libstdc++6 (>= 4.6) but 4.4.5-8 is installed.
libatk-wrapper-java-jni: Depends: libglib2.0-0 (>= 2.31.8) but 2.24.2-1 is installed.
openjdk-7-jre-headless: Depends: libjpeg8 (>= 8c) but it is not going to be installed.
Depends: libfontconfig1 (>= 2.9.0) but 2.8.0-2.1 is installed.
Depends: libglib2.0-0 (>= 2.26.0) but 2.24.2-1 is installed.
The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) icedtea-7-jre-cacao [Not Installed]
2) icedtea-7-jre-jamvm [Not Installed]
3) libatk-wrapper-java-jni [Not Installed]
4) libgdk-pixbuf2.0-0 [Not Installed]
5) libnss3 [Not Installed]
6) openjdk-7-jre [Not Installed]
7) openjdk-7-jre-headless [Not Installed]
8) openjdk-7-jre-lib [Not Installed]
Leave the following dependencies unresolved:
9) libatk-wrapper-java recommends libatk-wrapper-java-jni
Accept this solution? [Y/n/q/?]
Accepting the solution ends like this:
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Sorry for the verbose output, I'm a novice at this.
Anyway, from what I've read it's quite difficult to install openjdk-7 on squeeze - I'm guess I'm looking for a silver bullet! Has anyone done this? Should I give up and get oracle?
Cheers,
James
/etc/apt/sources.list
?