Upgrade from 2.5.12 to 3.2 failed (openhabian)

I am trying to upgrade my Rspi3 from version 2.5.12 to OH3.
In openhabian-config I set my branch to OH3.
Then in openhabian-config I choose 03 upgrade

afbeelding

Certain directories don’t exist (anymore), such as:
http://mirrordirector.raspbian.org/raspbian/dists/jessie/main/binary-armhf/Packages

Logs (part of):
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_US.UTF-8
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_US
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_US.UTF-8
Fetched 5,545 B in 6s (880 B/s)
W: Failed to fetch http://mirrordirector.raspbian.org/raspbian/dists/jessie/main/binary-armhf/Packages 404 Not Found [IP: 93.93.128.193 80]
W: Failed to fetch http://mirrordirector.raspbian.org/raspbian/dists/jessie/contrib/binary-armhf/Packages 404 Not Found [IP: 93.93.128.193 80]
W: Failed to fetch http://mirrordirector.raspbian.org/raspbian/dists/jessie/non-free/binary-armhf/Packages 404 Not Found [IP: 93.93.128.193 80]
W: Failed to fetch http://mirrordirector.raspbian.org/raspbian/dists/jessie/rpi/binary-armhf/Packages 404 Not Found [IP: 93.93.128.193 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

  • return 100
  • echo ‘FAILED (update apt lists)’
    FAILED (update apt lists)
  • return 1
  • echo ‘FAILED (install openHAB)’
    FAILED (install openHAB)
  • cond_redirect systemctl start zram-config.service
  • [[ -n ‘’ ]]
  • echo -e ‘\n\033[90;01m$ systemctl start zram-config.service \033[39;49;00m’
    $ systemctl start zram-config.service
  • systemctl start zram-config.service
  • return 0
  • return 1
  • ‘[’ 1 -ne 0 ‘]’
  • whiptail --msgbox ‘There was an error or interruption during the execution of:\n “03 | Install openHAB”\n\nPlease try again. If the error persists, please read /opt/openhabian/docs/openhabian-DEBUG.md or openhabian/openhabian-DEBUG.md at main · openhab/openhabian · GitHub how to proceed.’ 14 80
  • return 0
  • true
  • show_main_menu

You are still on Debian jessie ? buster is still the current one. bullseye just was released.
I think you either should upgrade your system or need to setup a new one.

As long as “update apt lists” will return an error you cannot continue ( using openhabian ).

Thanks Wolfgang.
can I perform the following steps to upgrade to Buster:

  • sudo apt update
  • sudo apt upgrade
  • sudo apt full-upgrade
  • change settings (in /etc/apt/sources.list ?)
  • sudo apt update
  • sudo apt upgrade
  • reboot
  • sudo apt full-upgrade

Steps are described e.g. here: Upgrade existing jessie to buster without re-image . From that it means you have to do it in two steps jessie → stretch; stretch → buster
I personally do not have experiences with doing these steps. I did it with an other distribution years ago … From that I recommend to do a backup before. In case something goes wrong you at least have a backup.
Starting with a fresh image could save some time.

I did the 2 upgrades and they were successful.
Thanks for your advices.
With the switch to OH3 I will wait a few more days.

I’m hesitating between migration and a clean install.
The advantage of a new installation is that everything is neatly reassembled.
The rebuild will take me hours to get the 100+ items and dozens of rules working again
Regardless of the InfluxDB and Grafana settings and the existing data.

Do you perhaps know whether the existing data (files) of InfluxDB and Grafana (from OH2) can be transferred to a new installation of OH3?

1 Like

Sorry, I did not not closely enough follow that part to give a good advice.