1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SOLVED Package libcec4 is not installed.

Discussion in 'Software Support' started by Tony P, 22 February 2021.

  1. Tony P

    Tony P New Member

    Messages:
    6
    Hardware:
    +PhilipsHue, +nodeMCU/ESP8266, +WLED, RPi4
    Hi,

    new raspberry pi 4 owner, looking to install hyperion and home assistant on the pi, and thought Ubuntu(64) may be the best approach. However on installing Hyperion, I'm hitting

    Package libcec4 is not installed.

    I've attempted several different routes to resolve, including the most recent attempt:

    sudo dpkg -i /path/to/hyperion_file.deb
    sudo apt-get install -f


    however still hitting the same issue:

    Preparing to unpack .../Hyperion-2.0.0-alpha.9-Linux-aarch64.deb ...
    ---Hyperion ambient light preinst ---
    Unpacking hyperion (2.0.0) ...
    dpkg: dependency problems prevent configuration of hyperion:
    hyperion depends on libcec4; however:
    Package libcec4 is not installed.
    dpkg: error processing package hyperion (--install):
    dependency problems - leaving unconfigured
    Errors were encountered while processing:
    hyperion


    To add, I've tried installing hassos.io, however the WS281X option, which is what my leds use, is not present. So if anyone has a solution to that, more than happy to go via that route.


    If anyone could offer some advice on how to progress, that would be much appreciated.

    Thanks
    Tony
     
    Last edited: 22 February 2021
  2. davieboy

    davieboy Active Member

    Messages:
    242
    Hardware:
    RPi1/Zero, RPi2, RPi3, RPi4
    Easiest method would of been Hyperbian then install home assistant but each to their own.

    looks like your trying to install the wrong version (aarch64) im sure you should be the armv7, run this on your terminal to find out
    Code:
    uname --m
    
    Whatever you get from that command is the .deb file you want to download from the release page, should go ok after that :thumbsup:
     
    Last edited: 22 February 2021
  3. Tony P

    Tony P New Member

    Messages:
    6
    Hardware:
    +PhilipsHue, +nodeMCU/ESP8266, +WLED, RPi4
  4. davieboy

    davieboy Active Member

    Messages:
    242
    Hardware:
    RPi1/Zero, RPi2, RPi3, RPi4
    ahh my bad, yeah it looks like you installed a Ubuntu x64 image, what do you get from this one
    Code:
    cat /etc/issue
    
     
  5. Tony P

    Tony P New Member

    Messages:
    6
    Hardware:
    +PhilipsHue, +nodeMCU/ESP8266, +WLED, RPi4
    Hi,

    no worries, the output for this is:

    [email protected]:~$ cat /etc/issue
    Ubuntu 20.10 \n \l


    Thanks
     
  6. davieboy

    davieboy Active Member

    Messages:
    242
    Hardware:
    RPi1/Zero, RPi2, RPi3, RPi4
    Tbh @Tony P IMO a full blown Ubuntu 20.10 on aarch64 is a big resource hog and could be problematic as you can see just now, Quick way would be flash Hyperbian, setup the LEDS then install Home Assistant.

    Alternative to get current working would be install the libcec package but the version 4 is not available on Groovy but you could try the ones below but I don't think it will work and you will definitely spend more time trying to fix this than if you flashed Hyperbian to a SD card.

    Code:
    sudo apt-get install libcec6
    sudo apt-get install libcec-dev
    

    Good Luck

     
  7. Tony P

    Tony P New Member

    Messages:
    6
    Hardware:
    +PhilipsHue, +nodeMCU/ESP8266, +WLED, RPi4
    Thanks @davieboy. My preferred option, is to install homeassistant OS, which has a hyperion add on, which can be installed. However I can't get that working with my led strip, as for some reason WS281x isn't available as an LED controller :-(

    I see there have been a few other people mention that they've had issues with this, and shown some errors from log files, however, no solution has been provided as yet, on the alpha v9.

    The quickest option would be to buy some new leds, which meet the options we have available, but seem to be struggling to find the right leds on amazon/ebay etc.


    Thanks for your help
    Tony
     
  8. Tony P

    Tony P New Member

    Messages:
    6
    Hardware:
    +PhilipsHue, +nodeMCU/ESP8266, +WLED, RPi4
    Testing the suggested commands:


    [email protected]:~$ sudo apt-get install libcec6
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    libcec6 is already the newest version (6.0.2-1).
    libcec6 set to manually installed.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    [email protected]:~$ sudo apt-get install libcec-dev
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    libcec-dev is already the newest version (6.0.2-1).
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


    unfortunately, doesn't look like this made any changes :-(
     
  9. davieboy

    davieboy Active Member

    Messages:
    242
    Hardware:
    RPi1/Zero, RPi2, RPi3, RPi4
    There's numerous workarounds @Tony P , the ubuntu 64 image you had earlier, is that the Home Assistant base o/s?

    Have you tried flashing the Hassios then installing Hyperion the .deb way?

    Im not clued up on the whole Home assistant setup or addons, but im quite sure if you get the Hyperion server setup and home assistant server setup you wont need the addon as you can add commands for HA to control Hyperion

    If all else fails you have Docker providing you only use the features specific to the Container install https://www.home-assistant.io/installation/#compare-installation-methods
     
  10. Tony P

    Tony P New Member

    Messages:
    6
    Hardware:
    +PhilipsHue, +nodeMCU/ESP8266, +WLED, RPi4
    Hi @davieboy,

    problem solved - found the missing led controller drivers this time round. Installed Home Assistant using the 32bit version, which enables the GPIO. Added the custom repository from https://github.com/bradsjm/hassio-addons, and installed the add on, and then this shows the missing WS281X led controller. So now have home assistant (hassos.io) installed with the hyperion add on. Hopefully when I get chance to test it, this will all work fine!

    Now just need to set up numerous other add ons to get details that I'm looking to implement.

    Thanks for your help
    Tony
     
    • Like Like x 1
  11. davieboy

    davieboy Active Member

    Messages:
    242
    Hardware:
    RPi1/Zero, RPi2, RPi3, RPi4
    Good Luck Tony
     
    • Like Like x 1