I have openHAB 3.2 installed and want to upgrade to version 3.3.
All packages are installed - none is outstanding.
Normally I’m checking the upgradable packages with
sudo apt list --upgradable - the list is empty
Also an upgrade with openhabian-config is not working.
As I’m not the Linux expert please point me in the right direction.
I’m searching already for a while to solve it but was not able to find a topic describing already a similar problem.
Below my actual configuration.
###############################################################################
############### openhab #####################################################
###############################################################################
## Ip = 192.168.1.x
## Release = Raspbian GNU/Linux 10 (buster)
## Kernel = Linux 5.10.103-v7+
## Platform = Raspberry Pi 3 Model B Rev 1.2
## Uptime = 17 day(s). 22:38:38
## CPU Usage = 2.26% avg over 4 cpu(s) (4 core(s) x 1 socket(s))
## CPU Load = 1m: 1.04, 5m: 0.74, 15m: 0.67
## Memory = Free: 0.07GB (8%), Used: 0.87GB (92%), Total: 0.94GB
## Swap = Free: 0.00GB (0%), Used: 0.09GB (100%), Total: 0.09GB
## Root = Free: 20.56GB (74%), Used: 7.22GB (26%), Total: 28.99GB
## Updates = 0 apt updates available.
## Sessions = 2 session(s)
## Processes = 129 running processes of 32768 maximum processes
###############################################################################
_ _ _ ____ _
___ ___ ___ ___ | | | | / \ | __ ) (_) ____ ___
/ _ \ / _ \ / _ \ / _ \ | |_| | / _ \ | _ \ | | / _ \ / _ \
| (_) | (_) | __/| | | || _ | / ___ \ | |_) )| || (_) || | | |
\___/| __/ \___/|_| |_||_| |_|/_/ \_\|____/ |_| \__|_||_| | |
|_| openHAB 3.2.0 - Release Build
Looking for a place to get started? Check out 'sudo openhabian-config' and the
documentation at https://www.openhab.org/docs/installation/openhabian.html
The openHAB dashboard can be reached at http://openhab:8080
To interact with openHAB on the command line, execute: 'openhab-cli --help'
openhabian@openhab:~ $ java -version
openjdk version "11.0.11" 2021-04-20 LTS
OpenJDK Runtime Environment Zulu11.48+21-CA (build 11.0.11+9-LTS)
OpenJDK Client VM Zulu11.48+21-CA (build 11.0.11+9-LTS, mixed mode)
openhabian@openhab:~ $
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
++±==============-============-============-=================================
ii openhab 3.3.0-1 all openhab
Thanks for quick response.
3.2 is installed (and looks like some leftovers from 2.x)
openhabian@openhab:/usr/share/keyrings $ dpkg -l|grep openhab
ii openhab 3.2.0-1 all openhab
ii openhab-addons 3.2.0-1 all openhab-addons
rc openhab2 2.5.12-1 all openhab2
openhabian@openhab:/usr/share/keyrings $
Leftover shouldn’t be aproblem.
In /etc/apt/sources.d/ you should see several files. One of them is most probably called openhab.list or openhab. What is the content of this file ?
You can do:
cat /etc/apt/sources.list.d/openhab.list
or
more /etc/apt/sources.list.d/openhab.list
It should show:
deb https://openhab.jfrog.io/artifactory/openhab-linuxpkg stable main
or similar pointing to that repository.
If it points there
apt-get update
apt-get upgrade
shall do the update from 3.2 to 3.3
If you have a different entry in the file pointing to an other repo first post it before changing it.
Investigating myself further in the problem I noticed the Option 2 on the openHAB download page
I also do not have an openhab.gpg file in the keyrings directory (step 2):
openhabian@openhab:/usr/share/keyrings $ ls -l
total 4
-rw-r--r-- 1 root root 1233 May 29 2012 raspbian-archive-keyring.gpg
openhabian@openhab:/usr/share/keyrings $
What I have already is the “apt-transport-https” package installed (step 3):
openhabian@openhab:/usr/share/keyrings $ dpkg -l|grep apt-trans
ii apt-transport-https 1.8.2.3 all transitional package for https support
openhabian@openhab:/usr/share/keyrings $
Looks like I have to execute step 2/4/5 from above mentioned web-page of Option 2.
Which version of openhabian do you have ?
The header of openhabian and menu 00 provide information about the version.
With openhabian it should not be necessary to do the steps by hand.
I think menu 41 should help.
Of course you also can do the steps manually. The result will be the same.
This might be caused by switching the Branch (01 in openhabian-config) from “openHAB3” to “main” and back to “openHAB3” while trying to fix my problem myself.
While being in version 2022-08-24 I have done your recommended menu 41 option.
It took a while - few minutes - but at the end I got the message “operation successful!” in openhabian-confg.
And it is like written (of cause).
The “openhab.gpg” file was created in “/usr/share/keyrings”
and the “openhab.list” file was created in “/etc/apt/sources.list.d”