I tried to update openHAB to 5.x via openhabian but it fails to install java 21:
sudo apt-get install --yes -o DPkg::Lock::Timeout= -t unstable openjdk-21-jre-headless
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.32) but 2.41-2 is to be installed
libc-dev-bin : Depends: libc6 (< 2.32) but 2.41-2 is to be installed
libc6 : Breaks: systemd (< 256~rc4-1~)
Breaks: systemd:armhf (< 256~rc4-1~)
Breaks: libc6:armhf (!= 2.41-2) but 2.31-13+rpt2+rpi1+deb11u11 is to be installed
libc6:armhf : Breaks: libc6 (!= 2.31-13+rpt2+rpi1+deb11u11) but 2.41-2 is to be installed
libc6-dbg : Depends: libc6 (= 2.31-13+rpt2+rpi1+deb11u11) but 2.41-2 is to be installed
libc6-dev : Depends: libc6 (= 2.31-13+rpt2+rpi1+deb11u11) but 2.41-2 is to be installed
libsystemd-shared : Depends: libssl3t64 (>= 3.4.0) but it is not going to be installed
locales : Depends: libc-bin (> 2.41)
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
when I do
apt --fix-broken install
it tells me
The following packages will be REMOVED:
build-essential dbus-user-session dconf-gsettings-backend dconf-service deconz:armhf g++ g++-10 glib-networking glib-networking:armhf gsettings-desktop-schemas init libatk-bridge2.0-0:armhf libatk1.0-0:armhf libatomic1:armhf libatspi2.0-0:armhf libavahi-client3:armhf
libavahi-common3:armhf libblkid1:armhf libbluetooth-dev libbrotli1:armhf libbsd0:armhf libc-bin libc-dev-bin libc6:armhf libc6-dbg libc6-dev libcairo-gobject2:armhf libcairo2:armhf libcolord2:armhf libcom-err2:armhf libcrypt1:armhf libcups2:armhf libdatrie1:armhf libdbus-1-3:armhf
libdeflate0:armhf libdouble-conversion3:armhf libdrm-amdgpu1:armhf libdrm-nouveau2:armhf libdrm-radeon1:armhf libdrm2:armhf libedit2:armhf libegl-mesa0:armhf libegl1:armhf libelf1:armhf libepoxy0:armhf libevdev2:armhf libexpat1:armhf libexpat1-dev libffi7:armhf libfontconfig1:armhf
libfreetype-dev libfreetype6:armhf libfreetype6-dev libfribidi0:armhf libgbm1:armhf libgcc-s1:armhf libgcrypt20:armhf libgdk-pixbuf-2.0-0:armhf libgl1:armhf libgl1-mesa-dri:armhf libglapi-mesa:armhf libgles2:armhf libglib2.0-0:armhf libglvnd0:armhf libglx-mesa0:armhf libglx0:armhf
libgmp10:armhf libgnutls30:armhf libgpg-error0:armhf libgraphite2-3:armhf libgssapi-krb5-2:armhf libgtk-3-0 libgtk-3-0:armhf libgtk-3-bin libgtk-3-common libgudev-1.0-0:armhf libharfbuzz0b:armhf libhogweed6:armhf libice6:armhf libicu67:armhf libidn2-0:armhf libinput10:armhf
libjbig0:armhf libjpeg62-turbo:armhf libjson-glib-1.0-0:armhf libk5crypto3:armhf libkeyutils1:armhf libkrb5-3:armhf libkrb5support0:armhf liblcms2-2:armhf libllvm11:armhf liblz4-1:armhf liblzma5:armhf libmd0:armhf libmd4c0:armhf libmount1:armhf libmtdev1:armhf libnettle8:armhf
libnsl2:armhf libnss-nis:armhf libnss-nisplus:armhf libp11-kit0:armhf libpam-systemd libpango-1.0-0:armhf libpangocairo-1.0-0:armhf libpangoft2-1.0-0:armhf libpcre2-16-0:armhf libpcre2-8-0:armhf libpcre3:armhf libpixman-1-0:armhf libpng-dev libpng16-16:armhf libproxy1v5:armhf
libpsl5:armhf libpython3-dev libpython3.9-dev libqt5core5a:armhf libqt5dbus5:armhf libqt5gui5:armhf libqt5network5:armhf libqt5qml5:armhf libqt5serialport5:armhf libqt5sql5:armhf libqt5sql5-sqlite:armhf libqt5svg5:armhf libqt5websockets5:armhf libqt5widgets5:armhf librest-0.7-0
librest-0.7-0:armhf librsvg2-2:armhf librsvg2-common:armhf libselinux1:armhf libsensors5:armhf libsm6:armhf libsoup-gnome2.4-1 libsoup-gnome2.4-1:armhf libsoup2.4-1 libsoup2.4-1:armhf libsqlite3-0:armhf libssl1.1:armhf libstdc++-10-dev libstdc++6:armhf libsystemd-shared
libsystemd0:armhf libtasn1-6:armhf libthai0:armhf libtiff5:armhf libtinfo6:armhf libtirpc3:armhf libudev1:armhf libunistring2:armhf libuuid1:armhf libvulkan1:armhf libwacom2:armhf libwayland-client0:armhf libwayland-cursor0:armhf libwayland-egl1:armhf libwayland-server0:armhf
libwebp6:armhf libx11-6:armhf libx11-xcb1:armhf libxau6:armhf libxcb-dri2-0:armhf libxcb-dri3-0:armhf libxcb-glx0:armhf libxcb-icccm4:armhf libxcb-image0:armhf libxcb-keysyms1:armhf libxcb-present0:armhf libxcb-randr0:armhf libxcb-render-util0:armhf libxcb-render0:armhf
libxcb-shape0:armhf libxcb-shm0:armhf libxcb-sync1:armhf libxcb-util1:armhf libxcb-xfixes0:armhf libxcb-xinerama0:armhf libxcb-xinput0:armhf libxcb-xkb1:armhf libxcb1:armhf libxcomposite1:armhf libxcursor1:armhf libxdamage1:armhf libxdmcp6:armhf libxext6:armhf libxfixes3:armhf
libxi6:armhf libxinerama1:armhf libxkbcommon-x11-0:armhf libxkbcommon0:armhf libxml2:armhf libxrandr2:armhf libxrender1:armhf libxshmfence1:armhf libxxf86vm1:armhf libz3-4:armhf libzstd1:armhf locales lsof:armhf mesa-vulkan-drivers:armhf modemmanager network-manager packagekit
packagekit-tools pi-bluetooth policykit-1 python3-dev python3.9-dev qt5-gtk-platformtheme qt5-gtk-platformtheme:armhf raspberrypi-sys-mods systemd systemd-sysv systemd-timesyncd zlib1g:armhf zlib1g-dev
The following NEW packages will be installed:
initscripts insserv startpar sysv-rc
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
init systemd-sysv (due to init) libc-bin libcrypt1:armhf libc6:armhf (due to libcrypt1:armhf) libgcc-s1:armhf
0 upgraded, 4 newly installed, 217 to remove and 3 not upgraded.
5 not fully installed or removed.
Need to get 183 kB of archives.
After this operation, 498 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
it kinda scares me…
Any recommendation how I should continue?