Is the above advice a good idea? What possible negative consequences could result from steps 1 and 2? Is it possible to mitigate those consequences if they exist?Debian 8 (Jessie) already support JDK 8 and Tomcat 8.
Tomcat 8 exist in jessie repository and jessie-backports repository. For latest Tomcat 8, we use jessie-backports
Do these easy step to install OpenJDK 8 and Tomcat 8 on Debian Jessie:
1. Edit /etc/apt/sources.list and add these lines (you may ignore line with #)
# Backport Testing on stable
# JDK 8
deb http://ftp.de.debian.org/debian jessie-backports main
2. # apt-get update
3. # apt-get install openjdk-8-jdk
Installing OpenJDK8
Forum rules
LMDE 2 has reached end of support as of 1-1-2019
LMDE 2 has reached end of support as of 1-1-2019
Installing OpenJDK8
https://www.linkedin.com/pulse/installi ... e-muliarsa
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: Installing OpenJDK8
Hi "0x2620",
http://www.webupd8.org/2014/03/how-to-i ... ebian.html
How To Install Java with Apt-Get on Debian 8, Updated June 27, 2017
https://www.digitalocean.com/community/ ... n-debian-8
FYI: PPA's also have easy to install Linux deb files. Go to the PPA website, click "view package details" midway down on the right, you'll see various options to choose from, ,like Ubuntu Xenial 16.04 (Linux Mint 18.x) for newer Debian LMDE system should work, Ubuntu 14.04 (Linux Mint 17.x) for older Debian LMDE systems ...
Linux Deb files for newer Linux Mint 18.x (Ubuntu 16.04) or Newer Debian LMDE systems
https://launchpad.net/~openjdk-r/+archi ... d/12541603
Hope this helps ...
HOW TO INSTALL ORACLE JAVA 8 IN DEBIAN VIA REPOSITORY [JDK8] Updated: February 22, 2017OpenJDK Java 8 has been in the official Ubuntu repositories and for Linux Mint users, here’s how to install it from PPA.
http://ubuntuhandbook.org/index.php/201 ... 12-04-lts/
Code: Select all
sudo add-apt-repository ppa:openjdk-r/ppa
Code: Select all
sudo apt-get update
[/color]Code: Select all
sudo apt-get install openjdk-8-jdk
VIP: If you have more than one Java versions installed on your system. Run the command below to set the default Java:
sudo update-alternatives --config java
Type in a number to select a Java version.
And set default Java Compiler by running:
sudo update-alternatives --config javac
4. Finally check out current Java version by running:
java -version
It outputs something like this:
openjdk version "1.8.0_01-internal"
OpenJDK Runtime Environment (build 1.8.0_01-internal-b04)
OpenJDK 64-Bit Server VM (build 25.40-b08, mixed mode)
http://www.webupd8.org/2014/03/how-to-i ... ebian.html
How To Install Java with Apt-Get on Debian 8, Updated June 27, 2017
https://www.digitalocean.com/community/ ... n-debian-8
FYI: PPA's also have easy to install Linux deb files. Go to the PPA website, click "view package details" midway down on the right, you'll see various options to choose from, ,like Ubuntu Xenial 16.04 (Linux Mint 18.x) for newer Debian LMDE system should work, Ubuntu 14.04 (Linux Mint 17.x) for older Debian LMDE systems ...
Linux Deb files for newer Linux Mint 18.x (Ubuntu 16.04) or Newer Debian LMDE systems
https://launchpad.net/~openjdk-r/+archi ... d/12541603
Hope this helps ...
Last edited by phd21 on Mon Jul 17, 2017 8:00 pm, edited 3 times in total.
Phd21: Mint 20 Cinnamon & KDE Neon 64-bit Awesome OS's, Dell Inspiron I5 7000 (7573, quad core i5-8250U ) 2 in 1 touch screen
Re: Installing OpenJDK8
PPAs won't help with LMDE.
Those instructions are vague. I don't think that whoever copied them really understands them.
This is the line that needs to be in your software sources (usually /etc/apt/sources.list) test file:
This is the German mirror, you can change it to a mirror that's closer to you if you wish.
The next two are terminal commands that need to be run with sudo or as root:
Then set the alternatives the same as with the Ubuntu directions. You can also install and use galternatives to set them in a GUI.
You will see a load of updates available if you leave that jessie-backports repo enabled--it's best not to install anything that you don't truly need updated from it, though.
Those instructions are vague. I don't think that whoever copied them really understands them.
This is the line that needs to be in your software sources (usually /etc/apt/sources.list) test file:
Code: Select all
deb http://ftp.de.debian.org/debian jessie-backports main
The next two are terminal commands that need to be run with sudo or as root:
Code: Select all
apt-get update
apt-get install openjdk-8-jdk
You will see a load of updates available if you leave that jessie-backports repo enabled--it's best not to install anything that you don't truly need updated from it, though.
Re: Installing OpenJDK8
So I remove the line in /etc/apt/sources.list once openjdk-8-jdk is installed? How would I update it then? Check periodically?youstupiddarkness wrote:PPAs won't help with LMDE.
Those instructions are vague. I don't think that whoever copied them really understands them.
This is the line that needs to be in your software sources (usually /etc/apt/sources.list) test file:
This is the German mirror, you can change it to a mirror that's closer to you if you wish.Code: Select all
deb http://ftp.de.debian.org/debian jessie-backports main
The next two are terminal commands that need to be run with sudo or as root:
Then set the alternatives the same as with the Ubuntu directions. You can also install and use galternatives to set them in a GUI.Code: Select all
apt-get update apt-get install openjdk-8-jdk
You will see a load of updates available if you leave that jessie-backports repo enabled--it's best not to install anything that you don't truly need updated from it, though.
Is it possible to limit things I download from the aforementioned ftp to this specific package (or any specific package)? Seems for too useful a feature to not exist.
Re: Installing OpenJDK8
Hi "0x2620",
I updated my last reply with links for installing OpenJDK8 and or Oracle in Debian LMDE systems, see bottom of reply...
Hope this helps ...
I updated my last reply with links for installing OpenJDK8 and or Oracle in Debian LMDE systems, see bottom of reply...
Hope this helps ...
Phd21: Mint 20 Cinnamon & KDE Neon 64-bit Awesome OS's, Dell Inspiron I5 7000 (7573, quad core i5-8250U ) 2 in 1 touch screen
Re: Installing OpenJDK8
Here is the output after editing /etc/apt/sources.list:youstupiddarkness wrote:PPAs won't help with LMDE.
Those instructions are vague. I don't think that whoever copied them really understands them.
This is the line that needs to be in your software sources (usually /etc/apt/sources.list) test file:
This is the German mirror, you can change it to a mirror that's closer to you if you wish.Code: Select all
deb http://ftp.de.debian.org/debian jessie-backports main
The next two are terminal commands that need to be run with sudo or as root:
Then set the alternatives the same as with the Ubuntu directions. You can also install and use galternatives to set them in a GUI.Code: Select all
apt-get update apt-get install openjdk-8-jdk
You will see a load of updates available if you leave that jessie-backports repo enabled--it's best not to install anything that you don't truly need updated from it, though.
Code: Select all
person@computer ~ $ sudo apt-get install openjdk-8-jdk
Reading package lists... Done
Building dependency tree
Reading state information... Done
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-8-jdk : Depends: openjdk-8-jre (= 8u131-b11-1~bpo8+1) but it is not going to be installed
Depends: openjdk-8-jdk-headless (= 8u131-b11-1~bpo8+1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
person@computer ~ $ sudo apt-get install openjdk-8-jre
Reading package lists... Done
Building dependency tree
Reading state information... Done
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-8-jre : Depends: openjdk-8-jre-headless (= 8u131-b11-1~bpo8+1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
person@computer ~ $ sudo apt-get install openjdk-8-jre-headless
Reading package lists... Done
Building dependency tree
Reading state information... Done
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-8-jre-headless : Depends: ca-certificates-java but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
person@computer ~ $ sudo apt-get install ca-certificates-java
Reading package lists... Done
Building dependency tree
Reading state information... Done
ca-certificates-java is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
person@computer ~ $ sudo apt-get install openjdk-8-jre-headless
Reading package lists... Done
Building dependency tree
Reading state information... Done
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-8-jre-headless : Depends: ca-certificates-java but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
And here is the output from feeding gdebi those debs:phd21 wrote:Hi "0x2620",
I updated my last reply with links for installing OpenJDK8 and or Oracle in Debian LMDE systems, see bottom of reply...
Hope this helps ...
Code: Select all
person@computer ~/Downloads $ gdebi openjdk-8-jre-headless_8u131-b11-0ubuntu1.16.04.2_amd64.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Building data structures... Done
Building data structures... Done
This package is uninstallable
Dependency is not satisfiable: libjpeg8 (>= 8c)
person@computer ~/Downloads $ gdebi openjdk-8-jre_8u131-b11-0ubuntu1.16.04.2_amd64.deb
Reading package lists... Done
Building dependency tree
Reading state information... Done
Building data structures... Done
Building data structures... Done
This package is uninstallable
Dependency is not satisfiable: openjdk-8-jre-headless (= 8u131-b11-0ubuntu1.16.04.2)
Re: Installing OpenJDK8
We are talking LMDE here--so why are you trying to install an Ubuntu package? You don't mix them!gdebi openjdk-8-jre-headless_8u131-b11-0ubuntu1.16.04.2_amd64.deb
This makes me wonder if you've mixed them up in your sources, too---usually a recipe for disaster.
Re: Installing OpenJDK8
Point out the Debian package for openjdk-8, please.youstupiddarkness wrote:We are talking LMDE here--so why are you trying to install an Ubuntu package? You don't mix them!gdebi openjdk-8-jre-headless_8u131-b11-0ubuntu1.16.04.2_amd64.deb
This makes me wonder if you've mixed them up in your sources, too---usually a recipe for disaster.
Re: Installing OpenJDK8
https://packages.debian.org/jessie-back ... k-headless
In jessie-backports, as previously mentioned. BTW, the build generates a number of interdependent packages, so installing just one with gdebi is not going to work.
In jessie-backports, as previously mentioned. BTW, the build generates a number of interdependent packages, so installing just one with gdebi is not going to work.
Re: Installing OpenJDK8
Thanks for the hand-holding!
Looking at it, I think I need:
* libc6 (>= 2.2.5) [amd64]
* openjdk-8-jre-headless (= 8u131-b11-1~bpo8+1)
* zlib1g (>= 1:1.1.4)
None of these versions are available in LMDE, so am I right in assuming I need to chase down all the dependencies (and sub-dependencies) for these packages?
Looking at it, I think I need:
* libc6 (>= 2.2.5) [amd64]
* openjdk-8-jre-headless (= 8u131-b11-1~bpo8+1)
* zlib1g (>= 1:1.1.4)
None of these versions are available in LMDE, so am I right in assuming I need to chase down all the dependencies (and sub-dependencies) for these packages?
Re: Installing OpenJDK8
???? If you're running LMDE 2, you should have the libc6 and zlib1g packages from the main Debian repository available! Use the "apt-cache policy <package name>" command to verify:
2.19 is greater than 2.2.5
The normal way to install openjdk-8 is by temporarily adding the jessie-backports repo (see backports.org).
You are making it more difficult by trying to install it one deb at a time. If you are having trouble with basic packages such as libc6, I again have to wonder if your system is sane, or has been broken somehow by mixing Debian and Ubuntu repositories.
Code: Select all
$ apt-cache policy libc6
libc6:
Installed: 2.19-18+deb8u10
Candidate: 2.19-18+deb8u10
Version table:
*** 2.19-18+deb8u10 0
500 http://security.debian.org/ jessie/updates/main amd64 Packages
100 /var/lib/dpkg/status
2.19-18+deb8u9 0
500 http://ftp.us.debian.org/debian/ jessie/main amd64 Packages
2.19 is greater than 2.2.5
Code: Select all
$ apt-cache policy zlib1g
zlib1g:
Installed: 1:1.2.8.dfsg-2+b1
Candidate: 1:1.2.8.dfsg-2+b1
Version table:
*** 1:1.2.8.dfsg-2+b1 0
500 http://ftp.us.debian.org/debian/ jessie/main amd64 Packages
100 /var/lib/dpkg/status
You are making it more difficult by trying to install it one deb at a time. If you are having trouble with basic packages such as libc6, I again have to wonder if your system is sane, or has been broken somehow by mixing Debian and Ubuntu repositories.
Re: Installing OpenJDK8
Ah. Basic math failure.youstupiddarkness wrote:???? If you're running LMDE 2, you should have the libc6 and zlib1g packages from the main Debian repository available! Use the "apt-cache policy <package name>" command to verify:
Code: Select all
$ apt-cache policy libc6 libc6: Installed: 2.19-18+deb8u10 Candidate: 2.19-18+deb8u10 Version table: *** 2.19-18+deb8u10 0 500 http://security.debian.org/ jessie/updates/main amd64 Packages 100 /var/lib/dpkg/status 2.19-18+deb8u9 0 500 http://ftp.us.debian.org/debian/ jessie/main amd64 Packages
2.19 is greater than 2.2.5
Code: Select all
$ apt-cache policy zlib1g zlib1g: Installed: 1:1.2.8.dfsg-2+b1 Candidate: 1:1.2.8.dfsg-2+b1 Version table: *** 1:1.2.8.dfsg-2+b1 0 500 http://ftp.us.debian.org/debian/ jessie/main amd64 Packages 100 /var/lib/dpkg/status
Did you miss the first part of this post?youstupiddarkness wrote: The normal way to install openjdk-8 is by temporarily adding the jessie-backports repo (see backports.org).
You are making it more difficult by trying to install it one deb at a time. If you are having trouble with basic packages such as libc6, I again have to wonder if your system is sane, or has been broken somehow by mixing Debian and Ubuntu repositories.
viewtopic.php?f=238&t=249834&p=1344815#p1344409
Re: Installing OpenJDK8
Can you install ca-certificates-java from jessie-backports beforehand in order to get around that hangup?
Code: Select all
apt-get install ca-certificates-java -t jessie-backports
Re: Installing OpenJDK8
I installed all the prereqs as debs. It wasn't ca-certificates-java, but one of it's prereqs that was messing up.youstupiddarkness wrote:Can you install ca-certificates-java from jessie-backports beforehand in order to get around that hangup?Code: Select all
apt-get install ca-certificates-java -t jessie-backports