# OpenHabian failure when upgrading to OH 4.3.5

**URL:** <https://community.openhab.org/t/openhabian-failure-when-upgrading-to-oh-4-3-5/163859>\
**Category:** openHABian\
**Created:** [April 28, 2025, 1:02pm UTC](https://community.openhab.org/t/openhabian-failure-when-upgrading-to-oh-4-3-5/163859 "2025-04-28T13:02:30Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndrewFG](https://community.openhab.org/user_avatar/community.openhab.org/andrewfg/32/35857_2.png) [@AndrewFG](https://community.openhab.org/u/AndrewFG)\
**Post date:** [April 28, 2025, 1:02pm UTC](https://community.openhab.org/t/openhabian-failure-when-upgrading-to-oh-4-3-5/163859/1 "2025-04-28T13:02:30Z")

</div>

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

```auto
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

```

---

<div class="post-metadata">

**Author:** ![mstormi](https://community.openhab.org/user_avatar/community.openhab.org/mstormi/32/55857_2.png) [@mstormi](https://community.openhab.org/u/mstormi)\
**Post date:** [April 28, 2025, 4:30pm UTC](https://community.openhab.org/t/openhabian-failure-when-upgrading-to-oh-4-3-5/163859/2 "2025-04-28T16:30:57Z")

</div>

> [@AndrewFG](#):
>
> =\> any thoughts?

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`)

---

<div class="post-metadata">

**Author:** ![AndrewFG](https://community.openhab.org/user_avatar/community.openhab.org/andrewfg/32/35857_2.png) [@AndrewFG](https://community.openhab.org/u/AndrewFG)\
**Post date:** [April 28, 2025, 5:36pm UTC](https://community.openhab.org/t/openhabian-failure-when-upgrading-to-oh-4-3-5/163859/3 "2025-04-28T17:36:25Z")

</div>

> [@mstormi](#):
>
> Sorry, could not resist

How sweet.

---

<div class="post-metadata">

**Author:** ![jbk](https://community.openhab.org/letter_avatar_proxy/v4/letter/j/82dd89/32.png) [@jbk](https://community.openhab.org/u/jbk)\
**Post date:** [July 17, 2025, 8:30am UTC](https://community.openhab.org/t/openhabian-failure-when-upgrading-to-oh-4-3-5/163859/4 "2025-07-17T08:30:35Z")

</div>

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?

```auto
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)

```

---

<div class="post-metadata">

**Author:** ![mstormi](https://community.openhab.org/user_avatar/community.openhab.org/mstormi/32/55857_2.png) [@mstormi](https://community.openhab.org/u/mstormi)\
**Post date:** [July 17, 2025, 8:40am UTC](https://community.openhab.org/t/openhabian-failure-when-upgrading-to-oh-4-3-5/163859/5 "2025-07-17T08:40:31Z")

</div>

> [@jbk](#):
>
> Could you please check again?

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

---

<div class="post-metadata">

**Author:** ![Christoph\_Holler](https://community.openhab.org/user_avatar/community.openhab.org/christoph_holler/32/38418_2.png) [@Christoph\_Holler](https://community.openhab.org/u/Christoph_Holler)\
**Post date:** [July 18, 2025, 1:53pm UTC](https://community.openhab.org/t/openhabian-failure-when-upgrading-to-oh-4-3-5/163859/6 "2025-07-18T13:53:09Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mstormi](https://community.openhab.org/user_avatar/community.openhab.org/mstormi/32/55857_2.png) [@mstormi](https://community.openhab.org/u/mstormi)\
**Post date:** [July 18, 2025, 5:01pm UTC](https://community.openhab.org/t/openhabian-failure-when-upgrading-to-oh-4-3-5/163859/7 "2025-07-18T17:01:19Z")

</div>

then search the forum it was mentioned in some other thread

---

<div class="post-metadata">

**Author:** ![jbk](https://community.openhab.org/letter_avatar_proxy/v4/letter/j/82dd89/32.png) [@jbk](https://community.openhab.org/u/jbk)\
**Post date:** [July 31, 2025, 10:10am UTC](https://community.openhab.org/t/openhabian-failure-when-upgrading-to-oh-4-3-5/163859/8 "2025-07-31T10:10:35Z")

</div>

Did you find a solution for this?

---

<div class="post-metadata">

**Author:** ![Christoph\_Holler](https://community.openhab.org/user_avatar/community.openhab.org/christoph_holler/32/38418_2.png) [@Christoph\_Holler](https://community.openhab.org/u/Christoph_Holler)\
**Post date:** [August 1, 2025, 5:43am UTC](https://community.openhab.org/t/openhabian-failure-when-upgrading-to-oh-4-3-5/163859/9 "2025-08-01T05:43:10Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![mstormi](https://community.openhab.org/user_avatar/community.openhab.org/mstormi/32/55857_2.png) [@mstormi](https://community.openhab.org/u/mstormi)\
**Post date:** [August 1, 2025, 7:36am UTC](https://community.openhab.org/t/openhabian-failure-when-upgrading-to-oh-4-3-5/163859/10 "2025-08-01T07:36:40Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Christoph\_Holler](https://community.openhab.org/user_avatar/community.openhab.org/christoph_holler/32/38418_2.png) [@Christoph\_Holler](https://community.openhab.org/u/Christoph_Holler)\
**Post date:** [August 1, 2025, 8:15am UTC](https://community.openhab.org/t/openhabian-failure-when-upgrading-to-oh-4-3-5/163859/11 "2025-08-01T08:15:24Z")

</div>

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!
