What does upgrade do after installation?

Hi,

I have Debian 10 Buster installation. I am trying to install JDK11
apt-get update -y
apt-get upgrade -y
The upgrade before the installation of jdk11 has installed (upgraded many packages). I am wondering what does the upgrade exactly do? If I want to install jdk11 by offline, do I have to install/upgrade don’t-know-what-being-upgraded-list?

Thank you,
David

This keeps your Debian system up-to-date and current:

Correct, you would need to figure out those dependency’s before hand.

With Debian, this isn’t really recommended. It’s the main reason Debian exits today, as it does all the dependency tracking for you.

Regards,

Hi Robert,

This keeps your Debian system up-to-date and current:
Does that mean the system (some packages) has been rebuilt even after the version (buster in this case) has been released.

Best Regards,
David

It depends on the package and situation. Normally only ‘updates’ get built, but there are special rare conditions that a package might have to be fully rebuilt after a release.

In either case, the Debian build revision on the package would be bumped.

Regards,

Hi Robert,

Thank you for your input.
I am having difficulties to install jdk. Don’t even know which version to install (jdk8 vs jdk11).

Debian’s general policy is to only have one version of a software package in a release. There would only be one version of OpenJDK; buster has OpenJDK 11.
But jdk11 doesn’t work under buster. It seems ok at least for now with jdk8.
When I install by the command:
apt-get install default-jdk -y

I got error:
The following packages have unmet dependencies:

default-jdk :
Depends: default-jdk-headless (= 2:1.11-71)
but it is not going to be installed

Depends: openjdk-11-jdk but it is not going to be installed
openjdk-11-jdk-headless : Depends: openjdk-11-jre-headless (= 11.0.8+10-1~deb10u1) but 11.0.9+11-1~deb10u1 is to be installed

//==============My comments:
11.0.9+11-1~deb10u1 is the latest version of openjdk-11-jre-headless for Buster.
But it requires an older version 11.0.8+10-1~deb10u1, and the newer version 11.0.9+11-1~deb10u1 is not backwards compatible.

Best Regards,
David

@dzhou, JDK-8 last shipped with Debian Stretch (9.x)

JDK-11 shipped with Debian Buster (10.x)

11.0.8+10-1~deb10u1 -> 11.0.9+11-1~deb10u1 was a security update of openjdk-11:

The correct place to report bugs on this package is:

What issue are you actually having? (Remember, I am not the maintainer of the openjdk-11 package…)

Regards,

HI Robert,

The issue I have is it fails to install jdk11. It complaints it needs (depends on ) 11.0.8+10-1~deb10u1. But I have 11.0.9+10-1~deb10u1 installed.

Application programmers are complaining JDK11 has run-time error.

I am re-flashing debian-buster, and doing a fresh re-installation, then I install and test applications myself to see it works with jdk11 with applications.

Best Regards,

David

Do you absolutely need the full “jdk”? on my ARM farm, I’m using the “jre”…

voodoo@w1-imx6q-wandboard-2gb:~$ dpkg --list | grep jre
ii  openjdk-11-jre-headless:armhf        11.0.9+11-1~deb10u1                  armhf        OpenJDK Java runtime, using Hotspot JIT (headless)

It really helps to post the actual run-time error…

Regards,

Hi Robert,

I re-flashed BBBw with Debian 10 Buster pre-built image loaded. (Our App Programmers may need JDK instead of JRE.). Then I did the following commands to install JDK. The default-jre installation will have the same issues with ca-certificates):
apt-get update -y
apt-get upgrade -y
apt-get install default-jdk -y

Here is the error from installation :

dpkg: error processing package default-jre (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of default-jdk-headless:
default-jdk-headless depends on openjdk-11-jdk-headless; however:
Package openjdk-11-jdk-headless:armhf is not configured yet.

dpkg: error processing package default-jdk-headless (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of openjdk-11-jdk:armhf:
openjdk-11-jdk:armhf depends on openjdk-11-jre (= 11.0.9+11-1~deb10u1); however:
Package openjdk-11-jre:armhf is not configured yet.
openjdk-11-jdk:armhf depends on openjdk-11-jdk-headless (= 11.0.9+11-1~deb10u1); however:
Package openjdk-11-jdk-headless:armhf is not configured yet.

dpkg: error processing package openjdk-11-jdk:armhf (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of default-jdk:
default-jdk depends on default-jre (= 2:1.11-71); however:
Package default-jre is not configured yet.
default-jdk depends on default-jdk-headless (= 2:1.11-71); however:
Package default-jdk-headless is not configured yet.
default-jdk depends on openjdk-11-jdk; however:
Package openjdk-11-jdk:armhf is not configured yet.

dpkg: error processing package default-jdk (–configure):
dependency problems - leaving unconfigured
Processing triggers for man-db (2.8.5-2) …
/usr/bin/mandb: can’t create index cache /var/cache/man/15610: No space left on device
Processing triggers for ca-certificates (20200601~deb10u1) …
Updating certificates in /etc/ssl/certs…
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d…

done.
done.
Processing triggers for fontconfig (2.13.1-2) …
Processing triggers for mime-support (3.62) …
Processing triggers for hicolor-icon-theme (0.17-2) …
Processing triggers for libc-bin (2.28-10) …
Errors were encountered while processing:
ca-certificates-java
openjdk-11-jre-headless:armhf
openjdk-11-jre:armhf
openjdk-11-jdk-headless:armhf
default-jre
default-jdk-headless
openjdk-11-jdk:armhf
default-jdk
E: Sub-process /usr/bin/dpkg returned an error code (1)

Thank you,
David

/usr/bin/mandb: can’t create index cache /var/cache/man/15610: No space left on device

There is a good chance this is causing the issue ^… Make sure you have enough a space on the drive…

Regards,

HI Robert,

That is the manual files man. I moved to sd card, because not enough storage for upgrade. I created a link of /usr/share/man pointing to sdcard folder.

Best Regards,

David