Error when installing Balena Sound on BBB

Hi,
I’ve got the BBB online and can see it on the cloud.
I have CLI working and the latest Balina Sound Master

I’m getting the error message:
E: Unable to locate package python-gpiozero

Can anyone offer any advice?

Hi

can you please add more details about how and when you get that error message? Do you get it after a balena push?

best regards

federico

Yes - I used Balena Push to the device.

[snapcast-client]   Using cache
[snapcast-client]    ---> cc2a49dd502e
[snapcast-client]   Step 9/9 : CMD [ "/bin/bash", "/usr/src/start.sh" ]
[snapcast-client]   Using cache
[snapcast-client]    ---> f3fe52cdf9c0
[snapcast-client]   Successfully built f3fe52cdf9c0
[bluetooth-audio]    ---> Running in f8a0e6a7c317
[bluetooth-audio]   Reading package lists...
[bluetooth-audio]   Building dependency tree...
[bluetooth-audio]   Reading state information...
[bluetooth-audio]   E: Unable to locate package python-gpiozero
[bluetooth-audio]   
[bluetooth-audio]   apt failed, retrying
[bluetooth-audio]   Reading package lists...
[bluetooth-audio]   Building dependency tree...
[bluetooth-audio]   Reading state information...
[bluetooth-audio]   E: Unable to locate package python-gpiozero
[bluetooth-audio]   
[bluetooth-audio]   apt failed, retrying
[bluetooth-audio]   Reading package lists...
[bluetooth-audio]   Building dependency tree...
[bluetooth-audio]   Reading state information...
[bluetooth-audio]   E: Unable to locate package python-gpiozero
[bluetooth-audio]   
[bluetooth-audio]   Removing intermediate container f8a0e6a7c317
[bluetooth-audio]   The command '/bin/sh -c install_packages   alsa-utils   bluealsa   bluez   mplayer   python-dbus   python-gobject   python-gpiozero' returned a non-zero code: 100
[Info]              Uploading images
[Success]           Successfully uploaded images
[Error]             Some services failed to build:
[Error]               Service: bluetooth-audio
[Error]                 Error: The command '/bin/sh -c install_packages   alsa-utils   bluealsa   bluez   mplayer   python-dbus   python-gobject   python-gpiozero' returned a non-zero code: 100
[Info]              Built on arm03
[Error]             Not deploying release.
Remote build failed

Additional information may be available by setting a DEBUG=1 environment
variable: "set DEBUG=1" on a Windows command prompt, "$env:DEBUG = 1" on
powershell, or "export DEBUG=1" on Linux or macOS.

If you need help, don't hesitate in contacting our support forums at
https://forums.balena.io

For CLI bug reports or feature requests, have a look at the GitHub issues or
create a new one at: https://github.com/balena-io/balena-cli/issues/

Also I tried again but got this repeated :

[snapcast-server]   invoke-rc.d: could not determine current runlevel
[snapcast-server]   
[snapcast-server]   invoke-rc.d: policy-rc.d denied execution of start.
[snapcast-server]

And at the end:

[Error]             Some services failed to build:
[Error]               Service: bluetooth-audio
[Error]                 Error: The command '/bin/sh -c install_packages   alsa-utils   bluealsa   bluez   mplayer   python-dbus   python-gobject   python-gpiozero' returned a non-zero code: 100
[Info]              Built on arm01
[Error]             Not deploying release.
Remote build failed

That’s a very unexpected error. Let me have a quick chat with the mainter of balena sound and I’ll get back to you

Thank you Federico

Hi Tony

So that package is not an official debian one, but it’s provided by raspberrypi. On raspberrypi base images, we also enable that repo, so apt-get finds and installs it. However, BBB boards don’t have it, hence the error message you’re getting

Please mind that balena-sound, at the moment, is a raspberrypi (like) project only, so it runs on the PI and on PI compatible boards (eg: balenaFin).

Having it run on other boards would be cool: can you try commenting out python-gpiozero from the dockerfile, and see what happens?

Best regards

federico

1 Like

I’ll give it a try.

Thanks

Tony

I deleted the
** python-gobject
line and the ‘’ on the line before on both files Dockerfile.template and Dockerfile.aarch64

and installation completed.

I’m not intending to use bluetooth - I’ll let you know if it works in action.

yes @ffissore - it works with those lines removed!

It’s a bit glitchy? Tiny drop out every 5 seconds or so.

Do you know what services are essential?

Check out https://github.com/balenalabs/balena-sound/#customize-your-balenasound-experience for a good place to start looking what you can enable/disable without modifying the project.

1 Like

Thanks @robertgzr