Openhabian-config -> 02 does not upgrade to openHAB 4.0.1

On my Rapsi 3 (bullseye) running openhain-config does not upgrade to 4.0.1:

openhabian@openHABianPi:~ $ sudo openhabian-config
2023-07-30_14:50:03_CEST [openHABian] Checking for root privileges... OK
2023-07-30_14:50:04_CEST [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
2023-07-30_14:50:04_CEST [openHABian] openHABian configuration tool version: [openHAB]{2023-07-29T21:33:20+02:00}(b7ac016)
2023-07-30_14:50:04_CEST [openHABian] Checking for changes in origin branch openHAB... OK
2023-07-30_14:50:07_CEST [openHABian] Switching to branch openHAB... OK
2023-07-30_14:50:07_CEST [openHABian] Checking openHAB Signing Key expiry.
2023-07-30_14:50:07_CEST [openHABian] Checking expiry date of apt keys... OK
2023-07-30_14:50:08_CEST [openHABian] Checking for updates of openhab_rules_tools for JS Scripting... No update available.
2023-07-30_14:50:12_CEST [openHABian] Adding slightly tuned bash configuration files to system... OK
2023-07-30_14:53:12_CEST [openHABian] Updating Linux package information... OK
2023-07-30_14:53:12_CEST [openHABian] Updating repositories and upgrading installed packages...
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Paketaktualisierung (Upgrade) wird berechnet… Fertig
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
2023-07-30_14:53:32_CEST [openHABian] We hope you got what you came for! See you again soon ;)

openhabian@openHABianPi:~ $ openhab-cli info

Version:     4.0.0 (Build)

User:        openhab (Active Process 28483)
User Groups: openhab tty dialout audio bluetooth gpio

Directories: Folder Name      | Path                        | User:Group
             -----------      | ----                        | ----------
             OPENHAB_HOME     | /usr/share/openhab          | openhab:openhab
             OPENHAB_RUNTIME  | /usr/share/openhab/runtime  | openhab:openhab
             OPENHAB_USERDATA | /var/lib/openhab            | openhab:openhab
             OPENHAB_CONF     | /etc/openhab                | openhab:openhab
             OPENHAB_LOGDIR   | /var/log/openhab            | openhab:openhabian
             OPENHAB_BACKUPS  | /var/lib/openhab/backups    | openhab:openhab

What do i miss?

Running options 03 starts up with an empty window and ends up with error:


I hope the screenshots are appropriate at this place.

setting debug=on for the fist step gives:

openhabian@openHABianPi:~ $ sudo openhabian-config
2023-07-30_17:03:35_CEST [openHABian] Checking for root privileges... OK
2023-07-30_17:03:36_CEST [openHABian] Loading configuration file '/etc/openhabian.conf'... OK
2023-07-30_17:03:36_CEST [openHABian] openHABian configuration tool version: [openHAB]{2023-07-29T21:33:20+02:00}(b7ac016)
2023-07-30_17:03:36_CEST [openHABian] Checking for changes in origin branch openHAB... OK
2023-07-30_17:03:38_CEST [openHABian] Switching to branch openHAB... OK
2023-07-30_17:03:38_CEST [openHABian] Checking openHAB Signing Key expiry.
2023-07-30_17:03:38_CEST [openHABian] Checking expiry date of apt keys... OK
2023-07-30_17:03:38_CEST [openHABian] Checking for updates of openhab_rules_tools for JS Scripting... No update available.
2023-07-30_17:03:42_CEST [openHABian] Adding slightly tuned bash configuration files to system... OK
2023-07-30_17:03:46_CEST [openHABian] Updating Linux package information... OK
2023-07-30_17:03:48_CEST [openHABian] Updating repositories and upgrading installed packages...
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Paketaktualisierung (Upgrade) wird berechnet… Fertig
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
2023-07-30_17:04:02_CEST [openHABian] Updating Linux package information... OK
OK
2023-07-30_17:04:07_CEST [openHABian] Adding required keys to apt... OK
2023-07-30_17:04:07_CEST [openHABian] Installing selected openHAB version...
$ apt-get update
OK:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
OK:3 http://archive.raspberrypi.org/debian bullseye InRelease
OK:4 https://deb.nodesource.com/node_16.x bullseye InRelease
Ign:1 https://repos.azulsystems.com/debian stable InRelease
OK:5 https://repos.azulsystems.com/debian stable Release
Paketlisten werden gelesen… Fertig
W: Das Laden der konfigurierten Datei »ui/binary-armhf/Packages« wird übersprungen, da das Depot »http://archive.raspberrypi.org/debian bullseye InRelease« die Komponente »ui« nicht enthält. (Schreibfehler bei der Angabe der Komponente in sources.list?)
W: Das Laden der konfigurierten Datei »ui/i18n/Translation-de_DE« wird übersprungen, da das Depot »http://archive.raspberrypi.org/debian bullseye InRelease« die Komponente »ui« nicht enthält. (Schreibfehler bei der Angabe der Komponente in sources.list?)
W: Das Laden der konfigurierten Datei »ui/i18n/Translation-en« wird übersprungen, da das Depot »http://archive.raspberrypi.org/debian bullseye InRelease« die Komponente »ui« nicht enthält. (Schreibfehler bei der Angabe der Komponente in sources.list?)
W: Das Laden der konfigurierten Datei »ui/i18n/Translation-de_DE.UTF-8« wird übersprungen, da das Depot »http://archive.raspberrypi.org/debian bullseye InRelease« die Komponente »ui« nicht enthält. (Schreibfehler bei der Angabe der Komponente in sources.list?)
W: Das Laden der konfigurierten Datei »ui/i18n/Translation-de« wird übersprungen, da das Depot »http://archive.raspberrypi.org/debian bullseye InRelease« die Komponente »ui« nicht enthält. (Schreibfehler bei der Angabe der Komponente in sources.list?)

$ apt-get install --allow-downgrades --yes -o DPkg::Lock::Timeout= --option Dpkg::Options::=--force-confnew openhab= openhab-addons=
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
E: Version »« für »openhab« konnte nicht gefunden werden> E: Version »« für »openhab-addons« konnte nicht gefunden werden.
FAILED

If you need a debug=maximum, i’ll create one.

I had the same problem. I was using menu 41 (Install or switch to the latest openHAB Release) instead.

41 did the job. Thx.

yes that’s always required

Here we go for maximum logs. Remember i already got the update via 41

Using 03, the “blank” window still shows up.

opt-02.log (38.9 KB)
opt-03.log (43.6 KB)

The command apt-cache madison openhab | head -n 1 | cut -d'|' -f2 | xargs in line 954 fails.
On a healthy system it should output the openhab package version.
Lines 948ff show there’s something wrong with your repo definitions in /etc/apt/sources.list.d.
That would also explain menu 02 failing.

In this thread Upgrade von Debian 10 'Buster' auf 11 'Bullseye'
the same message appeared. I think it would help you to resolve the problem.

1 Like

Looking at Wolfgang_S’s hint, i removed the " ui" at the end of line in raspi.list.
Now the errormessages in the log are gone, but using 03 the “blank window” and the error message windows stays.

2023-07-31 opt-03.log (42.3 KB)

log for opt 02 stays the same

2023-07-31 opt-02.log (38.9 KB)

Above I forgot to mention, that I updated from 3.5 unintentionally one day before 4.0.1 was out . I look for updates every week. I choosed 02 expecting openhab version would stay, but i got 4.0.0. Lucky me i had already updated to java17 before. So i had to define some units only and openhab continued to do its job.
Not looking at the unexpected, that update using 02 ran as usual / as everytime before.