You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to install the newest python3-thingsboard-gateway.deb using balena deploy (docker) for emulation on RasPI, architecture armv7hf instead of amd64.
During install of the python3-thingsboard-gateway.deb package itself the following "exec format error" occurs:
[Build] main Selecting previously unselected package python3-thingsboard-gateway.
[Build] main Preparing to unpack .../117-python3-thingsboard-gateway.deb ...
[Build] main Error while loading /var/lib/dpkg/tmp.ci/preinst: Exec format error
[Build] main dpkg: error processing archive /tmp/apt-dpkg-install-5fGeJY/117-python3-thingsboard-gateway.deb (--unpack):
[Build] main new python3-thingsboard-gateway package pre-installation script subprocess returned error exit status 1
[Build] main Selecting previously unselected package python3-wheel.
[Build] main Preparing to unpack .../118-python3-wheel_0.30.0-0.2_all.deb ...
[Build] main Unpacking python3-wheel (0.30.0-0.2) ...
[Build] main Selecting previously unselected package python3-xdg.
[Build] main Preparing to unpack .../119-python3-xdg_0.25-4ubuntu1_all.deb ...
[Build] main Unpacking python3-xdg (0.25-4ubuntu1) ...
[Build] main Errors were encountered while processing:
[Build] main /tmp/apt-dpkg-install-5fGeJY/117-python3-thingsboard-gateway.deb
[Build] main E: Sub-process /usr/bin/dpkg returned an error code (1)
[Build] Built 1 service in 5:56
[Error] Deploy failed
The command '/tmp/qemu-execve -execve /bin/sh -c sudo apt-get install -y /python3-thingsboard-gateway.deb' returned a non-zero code: 100
I found out, that the preinst script have had no shebang inside. So I added the following lines at the beginning:
#!/bin/sh
set -e
...
After generating the new DEB package the installation was successfull:
[Build] main Selecting previously unselected package python3-thingsboard-gateway.
[Build] main Preparing to unpack .../121-python3-thingsboard-gateway.deb ...
[Build] main Installing directory for configs...
[Build] main Adding system user `thingsboard_gateway' (UID 101) ...
[Build] main Adding new group `thingsboard_gateway' (GID 102) ...
[Build] main Adding new user `thingsboard_gateway' (UID 101) with group `thingsboard_gateway' ...
Please insert the missing lines in your next release. Thanks.
The text was updated successfully, but these errors were encountered:
Hi,
I tried to install the newest python3-thingsboard-gateway.deb using balena deploy (docker) for emulation on RasPI, architecture armv7hf instead of amd64.
During install of the python3-thingsboard-gateway.deb package itself the following "exec format error" occurs:
I found out, that the preinst script have had no shebang inside. So I added the following lines at the beginning:
After generating the new DEB package the installation was successfull:
Please insert the missing lines in your next release. Thanks.
The text was updated successfully, but these errors were encountered: