Openhabian update errors

This is for OH4.3.2/openhabian on rpi4. I recently updated my installation for a couple reasons…

  • use a fresh SD card
  • update openhabian to the current version
  • switch to the 64-bit openhabian version in prep for OH5

I installed on the new SD card from scratch using rpi imager and the 64 bit openhabian version, did the usual setup and restored from a fresh openhab-cli backup file. All went well. Only two issues…

-JVM timezone hard coded to berlin for some reason which caused my rules to fire on berlin time. Fixed the hardcode manually.
-openhabian-config updates are failing due to unmet apt dependencies. As per the logs from openhabian-config options 2…

Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
You might want to run ‘apt --fix-broken install’ to correct these.
The following packages have unmet dependencies:
libc-bin : Depends: libc6 (< 2.37) but 2.40-6 is installed
libc-dev-bin : Depends: libc6 (< 2.37) but 2.40-6 is installed
libc6 : Breaks: systemd (< 256~rc4-1~)
Breaks: systemd:armhf (< 256~rc4-1~)
libc6-dbg : Depends: libc6 (= 2.36-9+rpt2+deb12u9) but 2.40-6 is installed
libc6-dev : Depends: libc6 (= 2.36-9+rpt2+deb12u9) but 2.40-6 is installed
locales : Depends: libc-bin (> 2.40)
E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution).
FAILED
2025-02-11_09:19:18_MST [openHABian] Checking for default openHABian username:password combination… OK
2025-02-11_09:19:18_MST [openHABian] We hope you got what you came for! See you again soon :wink:

I did try apt --fix-broken-install command but no change. Any thoughts on next steps? This looks to me like the 64 bit version is out of sync with apt dependencies. Unfortunately I’m not that knowledgeable with apt save for the basic update/upgrade steps, so any help is appreciated. As I said everything works fine, but I’ll want to update at some point :).
Thx in advance.

openhabian-config → 30 System settings → Set System Timezone can be used to set the timezone.

Try some of the steps on this page: linux - can't install libc6 package - Stack Overflow

I don’t know if that will help but the steps shown shouldn’t do any damage in and of themselves and they might fix the issue.

Thx rlkoshak for the quick reply. No go however. From those steps listed apt-get upgrade, apt-get -u dist-upgrade, dpkg --configure -a, and apt-get -f install all gave me the exact same unmet dependencies error I posted above. And of course apt-get install libc6-i386 failed with package not available error.

All commands done with sudo (in case thinking a permissions issue)

OK, but what about the cleans?

sudo apt-get autoclean # <---------
sudo apt-get update
sudo apt-get upgrade
sudo apt-get -u dist-upgrade

or from the second post:

try to run one of the following commands:

sudo apt-get clean

or,

sudo apt-get autoclean

Just did the cleans again.

sudo apt-get clean seemed to do nothing.
sudo apt-get autoclean came back as…

openhabian@openhabian:~ $ sudo apt-get autoclean
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
openhabian@openhabian:~ $

Sames as the first time :slight_smile:

I think we’ll need to see if an expert in openhabian can chime in.

The root problem is a bunch of stuff depends on a specific version of libc6 and a newer version if libc6 is installed and yet there’s at least one thing installed (locales) which requires the later version.

This is the sort of thing one might see when upgrading from an earlier Raspberry Pi OS to a later one but not with starting from scratch. :man_shrugging: Maybe burn the SD card again with a redownloaded image and see what happens.

This is what we derisively call “dependency hell” but it’s not a super common problem any more and definitely shouldn’t be a problem on a newly installed system.

Oh, and hello neighbor (relatively speaking)! I’m in Colorado.

Hello neighbor, pleased to meet you :slight_smile: and thx for the help. Can definitely redo the install again from scratch and see if the issue recurs. Will make some time, probably this weekend, and report back.

Cheers

Set your timezone in openhabian.conf this time before you boot from that SD.

Thx, much the timezone issue was a pebkac error :). I did take some time to reinstall the 64 bit openhabian later today. Before restoring my oh backup I went through the entire install process and executed 02 Upgrade System several times between my steps with no issues. My last step was to update to OpenJDK 21 as I did the first time and lo and behold…I saw the update error afterwards when executing 02 Upgrade System.

So I think the dependency issue may be popping up with OpenJDK 21 on 64 bit Openhabian.

As for my own prod instance I’ve rebuilt it without moving to OpenJDK 21 and all is well. Thx again for the help!

OpenJDK21 package is brand new and not recommended for OH4 it is there to experiment with OH5.

That would explain it :). It’s easy enough to stick with the default version too. My assumption was that with it being listed in openhabian-config it was ready.

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.