Update Openhab 2.5.12-1 to 3 - Error message

Dear all,

i am currently trying to update from Openhab 2.5.12-1 to Openhab 3.
However, i am receiving the following error:

There was an error or interruption during the execution of: │
│ “03 | Install openHAB” │
│ │
│ Please try again. If the error persists, please read │
│ /opt/openhabian/docs/openhabian-DEBUG.md or │
openhabian/docs/openhabian-DEBUG.md at main · openhab/openhabian · GitHub how │
│ to proceed.

I am using a Raspberry PI 3+.
The Openhab Version 2 was running fine.

I am trying to update via SSH GUI:
sudo openhabian-config
03 | Install openHAB

I activated the maximum debug mode and the relevant terminal output is the following:

  • echo -n '2021-07-25_13:58:19_CEST [openHABian] Installing selected openHAB3 version… ’
    2021-07-25_13:58:19_CEST [openHABian] Installing selected openHAB3 version… + cond_redirect apt-get update
  • [[ -n ‘’ ]]
  • echo -e ‘\n\033[90;01m$ apt-get update \033[39;49;00m’

$ apt-get update

  • apt-get update
    Hit:2 Index of /debian buster InRelease
    Hit:3 Index of /raspbian buster InRelease
    Ign:1 https://apt.pilight.org stable InRelease
    Ign:4 https://apt.pilight.org development InRelease
    Ign:5 https://apt.pilight.org nightly InRelease
    Get:6 https://apt.pilight.org stable Release [4,565 B]
    Err:7 https://apt.pilight.org development Release
    404 Not Found [IP: 173.249.23.183 443]
    Get:8 https://apt.pilight.org nightly Release [4,462 B]
    Hit:9 JFrog stable InRelease
    Ign:10 https://apt.pilight.org stable Release.gpg
    Ign:11 https://apt.pilight.org nightly Release.gpg
    Ign:10 http://apt.pilight.org stable Release.gpg
    Ign:11 http://apt.pilight.org nightly Release.gpg
    Reading package lists… Done
    E: The repository ‘http://apt.pilight.org development Release’ does not have a Release file.
    N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
    N: See apt-secure(8) manpage for repository creation and user configuration details.
    E: The repository ‘http://apt.pilight.org stable Release’ is no longer signed.
    N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
    N: See apt-secure(8) manpage for repository creation and user configuration details.
    E: The repository ‘http://apt.pilight.org nightly Release’ is no longer signed.
    N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
    N: See apt-secure(8) manpage for repository creation and user configuration details.
    W: Target Packages (main/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list.d/pilight.list:1
    W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list.d/pilight.list:1
    W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list.d/pilight.list:1
    W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list.d/pilight.list:1
    W: Target Translations (main/i18n/Translation-en_US.UTF-8) is configured multiple times in /etc/apt/sources.list:4 and /etc/apt/sources.list.d/pilight.list:1
  • return 100
  • echo ‘FAILED (update apt lists)’
    FAILED (update apt lists)
  • 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/docs/openhabian-DEBUG.md at main · openhab/openhabian · GitHub how to proceed.’ 14 80

There seems to be a problem with an old Pilight installation.
I am not using Pilight anymore (because it stoped working).
However, i am a noob regarding Linux. Therefore, i dont know how to uninstall it :frowning:

Can someone help me?
Thank you!

I do not know the package name but you may try:

sudo apt-get remove pilight

To get rid off the error message you need to remove the file /etc/apt/sources.list.d/pilight.list:

sudo rm /etc/apt/sources.list.d/pilight.list

then

sudo apt-get update

Dear Wolfgang_S,
thank you for your answer.
Unfortunately it is still not working.

I tried to do the following:

openhabian@openhab:~$ sudo apt-get remove pilight
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'pilight' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.

Then i tried to check what the exact name of Pilight is:

dpkg-query -l

Finding the names “pilight”, “pilight-dbg” and “pilight-webgui”.
Therefore i performed:

sudo apt-get purge pilight
sudo apt-get purge pilight-dbg
sudo apt-get purge pilight-webgui

After doing so the names were not showing up anymore.
I did a reboot and tried to update OpenHab again.
Same result like above. So i did:

sudo rm /etc/apt/sources.list.d/pilight.list

In the folder /etc/apt/sources.list.d there are now only the following files:

  • openhab.list
  • raspi.list
  • vscode.list

After this i did

sudo apt-get update

With the following result:

openhabian@openhab:~$ sudo apt-get update
Hit:3 http://raspbian.raspberrypi.org/raspbian buster InRelease
Hit:5 http://archive.raspberrypi.org/debian buster InRelease
Ign:1 https://apt.pilight.org stable InRelease
Ign:2 https://apt.pilight.org development InRelease
Ign:4 https://apt.pilight.org nightly InRelease
Get:6 https://apt.pilight.org stable Release [4,565 B]
Err:7 https://apt.pilight.org development Release
  404  Not Found [IP: 173.249.23.183 443]
Get:8 https://apt.pilight.org nightly Release [4,462 B]
Ign:9 https://apt.pilight.org stable Release.gpg
Hit:10 https://openhab.jfrog.io/artifactory/openhab-linuxpkg stable InRelease
Ign:9 http://apt.pilight.org stable Release.gpg
Ign:11 https://apt.pilight.org nightly Release.gpg
Ign:11 http://apt.pilight.org nightly Release.gpg
Reading package lists... Done
E: The repository 'http://apt.pilight.org development Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://apt.pilight.org stable Release' is no longer signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://apt.pilight.org nightly Release' is no longer signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Tried to update OpenHab again. Same result:

$ apt-get update
+ apt-get update
Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
Hit:5 http://archive.raspberrypi.org/debian buster InRelease
Ign:1 https://apt.pilight.org stable InRelease
Ign:3 https://apt.pilight.org development InRelease
Ign:4 https://apt.pilight.org nightly InRelease
Get:6 https://apt.pilight.org stable Release [4,565 B]
Err:7 https://apt.pilight.org development Release
  404  Not Found [IP: 173.249.23.183 443]
Hit:9 https://openhab.jfrog.io/artifactory/openhab-linuxpkg stable InRelease
Ign:10 https://apt.pilight.org stable Release.gpg
Ign:10 http://apt.pilight.org stable Release.gpg
Get:8 https://apt.pilight.org nightly Release [4,462 B]
Ign:11 https://apt.pilight.org nightly Release.gpg
Ign:11 http://apt.pilight.org nightly Release.gpg
Reading package lists... Done
E: The repository 'http://apt.pilight.org development Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://apt.pilight.org stable Release' is no longer signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://apt.pilight.org nightly Release' is no longer signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
+ return 100
+ echo 'FAILED (update apt lists)'
FAILED (update apt lists)

I really dont know what to do now :frowning:
Can someone help?

I found this topic here covering a similar issue The Stable (Release) Linux repositories have changed location

Selecting 40 | openHAB Related → 41 | openHAB Stable in the configuration tool is also ending in the same error message.

After this i just checked all the files in /etc/apt/ and found the following in /etc/apt/sources.list

deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
deb http://apt.pilight.org/ stable main
deb http://apt.pilight.org/ development main
deb http://apt.pilight.org/ nightly main

I commented the last 3 entries and tried the OpenHab Update again.
And its running now :slight_smile:

Not sure if this approach was fine but at least it seems to update to OpenHab 3.

1 Like