OpenHabian failure when upgrading to OH 4.3.5

I encountered the following OpenHabian failure when upgrading to OH 4.3.5 from OH 4.3.4 => any thoughts?

2025-04-28_13:51:23_BST [openHABian] Installing openHAB... FAILED
2025-04-28_13:53:23_BST [openHABian] Updating Linux package information... OK
2025-04-28_13:53:23_BST [openHABian] Beginning install of latest openhab release (stable repo)... OK
2025-04-28_13:53:24_BST [openHABian] Adding required keys to apt... OK
Setting up openhab (4.3.5-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

Well can’t help myself but TBH, my first thought was that you sorta got what you pushed for…
Sorry, could not resist.
It was fixed in main but not yet forwarded to openHAB branch that you’re probably using.
I just copied that over so on next attempt it should work out.
(before, check and eventually correct the quotes in line 34 of /etc/default/openhab)

How sweet.

I think, today I have the same problem on my openhabian installation, while updating from OH 4.3.4 to 4.3.5.
Could you please check again?

openhab (4.3.5-1) wird eingerichtet ...
/var/lib/dpkg/info/openhab.postinst: 34: /etc/default/openhab: -Duser.timezone=Europe/Berlin: not found
dpkg: Fehler beim Bearbeiten des Paketes openhab (--configure):
 »installiertes post-installation-Skript des Paketes openhab«-Unterprozess gab den Fehlerwert 127 zurück
dpkg: Abhängigkeitsprobleme verhindern Konfiguration von openhab-addons:
 openhab-addons hängt ab von openhab; aber:
  Paket openhab ist noch nicht konfiguriert.

dpkg: Fehler beim Bearbeiten des Paketes openhab-addons (--configure):
 Abhängigkeitsprobleme - verbleibt unkonfiguriert
Trigger für libc-bin (2.36-9+rpt2+deb12u12) werden verarbeitet ...
Fehler traten auf beim Bearbeiten von:
 openhab
 openhab-addons
Updating FireMotD available updates count ...
E: Sub-process /usr/bin/dpkg returned an error code (1)

No.
This can happen on oldish openHABian setups, but these we’re not gonna retro-fix.
Manually fix /etc/default/openhab or reinstall.

Same here. I have no idea how to fix it manually?

then search the forum it was mentioned in some other thread

Did you find a solution for this?

Yes, I went to the folder /etc/default in Putty and edited the file openhab. This was also mentioned above but I did not find what to edit. Somewhere in the middle of the file you find

EXTRA_JAVA_OPTS=”-Xms192m -Xmx768m -XX:TieredCompilation -XX:TieredStopAtLevel=1 -XX:+ExitOnOutOfMemoryError -Dxtext.qn.interning=true” -Duser.timezone=Europe/Berlin

I have removed the

-Duser.timezone=Europe/Berlin

The timezone of my system is still correct and the error does not appear anymore. Looks good - but I am still not sure if that’s correct.

better keep the tz setting and move the “ character to the end

Thank you so much! Helps a lot, I have adapted it. Was just somehow hard to figure it out without knowing those details.

Fully understand that all those requests from the users are annoying for you professionals. For the less professional ones (I would cluster myself in this category) it is hard to figure out the details without a link.

Thanks for your help!