I installed 4.0 snapshot via openhabian-config on my RPI4 and it resulted into
org.apache.felix.resolver.reason.ReasonException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=openhab-runtime-base; type=karaf.feature; version="[4.0.0.SNAPSHOT,4.0.0.SNAPSHOT]"; filter:="(&(osgi.identity=openhab-runtime-base)(type=karaf.feature)(version>=4.0.0.SNAPSHOT)(version<=4.0.0.SNAPSHOT))" [caused by: Unable to resolve openhab-runtime-base/4.0.0.SNAPSHOT: missing requirement [openhab-runtime-base/4.0.0.SNAPSHOT] osgi.identity; osgi.identity=openhab-core-automation-module-script; type=karaf.feature [caused by: Unable to resolve openhab-core-automation-module-script/4.0.0.SNAPSHOT: missing requirement [openhab-core-automation-module-script/4.0.0.SNAPSHOT] osgi.identity; osgi.identity=openhab-core-base; type=karaf.feature [caused by: Unable to resolve openhab-core-base/4.0.0.SNAPSHOT: missing requirement [openhab-core-base/4.0.0.SNAPSHOT] osgi.identity; osgi.identity=org.openhab.core.automation; type=osgi.bundle; version="[4.0.0.202212240306,4.0.0.202212240306]"; resolution:=mandatory [caused by: Unable to resolve org.openhab.core.automation/4.0.0.202212240306: missing requirement [org.openhab.core.automation/4.0.0.202212240306] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.openhab.core)(version>=4.0.0)(!(version>=5.0.0)))" [caused by: Unable to resolve org.openhab.core/4.0.0.202212240301: missing requirement [org.openhab.core/4.0.0.202212240301]
osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=17))"]]]]]
at org.apache.felix.resolver.Candidates$MissingRequirementError.toException(Candidates.java:1341) ~[org.eclipse.osgi-3.17.200.jar:?]
I overlooked that it hints into the direction of jdk17 - of course.
And I could have known this, I admit! openHAB 4.0 SNAPSHOT discussion - #21 by wborn
So my first feedback or question would be (no complaint );
Doesn’t it make sense that openhabian-config automatically either checks if JDK 17 is installed and informs the user or directly does the upgrade before installing 4.0?
Anyways, I then tried to install jdk 17 via openhabian-config but then it fails with
....
+ cond_redirect apt-get install --yes openjdk-17-jre-headless
+ [[ -n '' ]]
+ echo -e '\n\033[90;01m$ apt-get install --yes openjdk-17-jre-headless \033[39;49;00m'
$ apt-get install --yes openjdk-17-jre-headless
+ apt-get install --yes openjdk-17-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-17-jre-headless : Depends: libc6 (>= 2.34) but 2.28-10+rpt2+rpi1+deb10u1 is to be installed
Depends: libgcc-s1 (>= 3.5) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
+ return 100
+ echo FAILED
I even did an
apt-get update
but it didn’t help (the above log is after the apt-get update).
Any idea how to proceed or fix this?
Should I dare to do a
sudo apt upgrade -y
?