Errors after upgrade from openhab 4.x to 5.x

  • Platform information:
    • Hardware: CPUArchitecture/RAM/storage
    • OS: what OS is used and which version
    • 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 :wink:
what can i do to resolve this trouble?
thanks for help
cg

Are you running on a 32-bit OS? As mentioned in the [release notes]( criptEngine for language ‘application/vnd.openhab.dsl.rule’ could not be found )

openHABian will refuse to install or upgrade to openHAB 5 when it detects a 32 bit operating system.

Further details can be found at the link.

If you are on 64-bit OS an the upgrade fails, please post the full logs. And please use code fences.

```
code and logs go here
```

Openhabian is installed and the os is 64 bit!
uname -m → aarch64
dpkg --print-architecture → arm64
the file os-release
PRETTY_NAME=“Debian GNU/Linux 12 (bookworm)”
NAME=“Debian GNU/Linux”
VERSION_ID=“12”
VERSION=“12 (bookworm)”
VERSION_CODENAME=bookworm
ID=debian
HOME_URL=“https://www.debian.org/
SUPPORT_URL=“Debian -- User Support
BUG_REPORT_URL=“https://bugs.debian.org/

For installation i had use the openhab image!
Thanks for help!

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.

You need to fix that line in that file, probably the quotation marks are in the wrong place

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

What must i change?

The closing " needs ton go at the end of the line.

The big question is what added that and why did it do so incorrectly? Is this a file you’ve changed?

Note, please post code, configs, and logs using code fences so he autoformatting applied by the forum and white space is preserved.

```
code goes here
```

this is the original line i had found, i had no make changes manually!
OK, no anderstand, i will remove the " and move it at the end from this line