Openhabian install fails : installing additional bluetooth packages... FAILED - install broken and unusable

Downloaded the openhabian install 1.5

Tried to run the installation on both a Raspberry Pi 4 model B (4GB) and a model 3+

Both Pi platforms are working fine and have been doing other things. The Pi 3+ had been running Openhab.

The installation runs through fine… we get to…

Installing additional needed packages… OK
Installing additional bluetooth packages… FAILED

Script ‘/boot/first-boot.bash’ failed.

[FAILED} Failed to start /etc/rc.local Compatibility.

At this point its game over for the install and any attempt to reboot ends up here.

At the moment, on both platforms the install is broken and unusable.

The installation aborts in this function:

needed_packages() {
  # Install apt-transport-https - update packages through https repository
  # Install bc + sysstat - needed for FireMotD
  # Install avahi-daemon - hostname based discovery on local networks
  # Install python/python3-pip - for python packages
  echo -n "$(timestamp) [openHABian] Installing additional needed packages... "
  if cond_redirect apt-get -y install apt-transport-https bc sysstat avahi-daemon python3 python3-pip avahi-autoipd fontconfig; then echo "OK"; else echo "FAILED"; exit 1; fi

  if is_pithree || is_pithreeplus || is_pizerow || is_pifour; then
    echo -n "$(timestamp) [openHABian] Installing additional bluetooth packages... "
    local BTPKGS
    BTPKGS="bluez python3-dev libbluetooth-dev raspberrypi-sys-mods pi-bluetooth"
    # phython3-bluez not available in stretch, but in newer distros
    if ! is_stretch; then
      BTPKGS="$BTPKGS python3-bluez"
    fi
    # shellcheck disable=SC2086
    if cond_redirect apt-get -y install $BTPKGS; then echo "OK"; else echo "FAILED"; exit 1; fi
  fi
}

In case you are not on a stretch release python3-bluez shall be installed. You might run into the error in case the release does not provide python3-bluez.

stretch is identified by checking the content of:

cat /etc/*release*

what does this command return ?

And how did you install openHABian, did you use the image or which OS ?

PS: delete the exit 1 at the bottom of above’s excerpt from /opt/openhabian/functions/system.bash, then reboot

I just downloaded the latest openHABian SD Card image file (v1.5 Aug '19) pointed to from the website.

That’s my point… at the moment the off the shelf default openHABian install is broken on a Raspberry Pi 3+ & 4 - it just doesn’t work

This makes openHAB a non starter for a lot of people.

Reboot to try again. If it fails at the same stage, flash again.
(it should download a hotfix I just applied).

Markus,

Awesome - working fine now.

Very much appreciated - your a star.

Ali

1 Like

You’re welcome. Did you have to reflash or was reboot enough?

reboot was enough