Java Runtime Environment: which java platform is used and what version
openHAB version:
Issue of the topic: please be detailed explaining your issue
Please post configurations (if applicable):
Items configuration related to the issue
Sitemap configuration related to the issue
Rules code related to the issue
Services configuration related to the issue
If logs where generated please post these here using code fences:
Setting up openhab (5.0.0-1) …
/var/lib/dpkg/info/openhab.postinst: 34: /etc/default/openhab: -Duser.timezone=Europe/Berlin: not found
dpkg: error processing package openhab (–configure):
installed openhab package post-installation script subprocess returned error exit status 127
dpkg: dependency problems prevent configuration of openhab-addons:
openhab-addons depends on openhab; however:
Package openhab is not configured yet.
dpkg: error processing package openhab-addons (–configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
openhab
openhab-addons
Updating FireMotD available updates count …
E: Sub-process /usr/bin/dpkg returned an error code (1)
FAILED
2025-08-05_16:15:55_CEST [openHABian] Checking for default openHABian username:password combination… FAILED
2025-08-05_16:15:56_CEST [openHABian] We hope you got what you came for! See you again soon
what can i do to resolve this trouble?
thanks for help
cg
I don’t know if openhabian-config automatically installs Java 21 or if you have to do that as a separate step. That’s the next thing to try. Install Java 21 through openhabian-config and then try to upgrade openHAB.
the line in /etc/default/openhab is the following:
EXTRA_JAVA_OPTS=“-Xms192m -Xmx768m -XX:-TieredCompilation -XX:TieredStopAtLevel=1 -XX:+ExitOnOutOfMemoryError -Dxtext.qn.interning=true” -Duser.timezone=Europe/Berlin