Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing kanto deb package fails in multi-platform docker build #320

Closed
dimitar-dimitrow opened this issue Mar 12, 2024 · 1 comment · Fixed by #321
Closed

Installing kanto deb package fails in multi-platform docker build #320

dimitar-dimitrow opened this issue Mar 12, 2024 · 1 comment · Fixed by #321
Assignees
Labels
bug Something isn't working
Milestone

Comments

@dimitar-dimitrow
Copy link
Contributor

I try to build a multi-platform(linux/amd64, linux/arm64 and linux/arm/v7) docker image that installs the kanto deb package on top of jrei/systemd-ubuntu:22.04(used as a base image). However the build fails on the non-host architectures - linux/arm64 and linux/arm/v7, with the following error:

34.41 Setting up kanto (0.1.0~M3) ...
34.66 Error while loading /var/lib/dpkg/info/kanto.postinst: Exec format error
34.66 dpkg: error processing package kanto (--configure):
34.66  installed kanto package post-installation script subprocess returned error exit status 1
34.67 Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
34.90 Errors were encountered while processing:
34.90  kanto
34.99 E: Sub-process /usr/bin/dpkg returned an error code (1)
@dimitar-dimitrow dimitar-dimitrow added the bug Something isn't working label Mar 12, 2024
@dimitar-dimitrow dimitar-dimitrow added this to the M5 milestone Mar 12, 2024
@dimitar-dimitrow dimitar-dimitrow self-assigned this Mar 12, 2024
@dimitar-dimitrow dimitar-dimitrow moved this to In Progress (max 10) in Eclipse Kanto Mar 12, 2024
@dimitar-dimitrow
Copy link
Contributor Author

Adding a shebang to the beginning of the scripts solved the issue. According to the debian documentation a shebang is a must -
introduction-to-package-maintainer-scripts.

@dimitar-dimitrow dimitar-dimitrow changed the title Installing kanto deb package fails for multi-platform docker build Installing kanto deb package fails in multi-platform docker build Mar 12, 2024
dimitar-dimitrow added a commit to bosch-io/kanto that referenced this issue Mar 12, 2024
@dimitar-dimitrow dimitar-dimitrow moved this from In Progress (max 10) to Ready for Review (max 3) in Eclipse Kanto Mar 12, 2024
@dimitar-dimitrow dimitar-dimitrow linked a pull request Mar 12, 2024 that will close this issue
k-gostev pushed a commit that referenced this issue Mar 13, 2024
@github-project-automation github-project-automation bot moved this from Ready for Review (max 3) to Done in Eclipse Kanto Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant