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

[Bug] dpkg error installing zenohd in Docker #415

Closed
JEnoch opened this issue Jan 5, 2023 · 1 comment
Closed

[Bug] dpkg error installing zenohd in Docker #415

JEnoch opened this issue Jan 5, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@JEnoch
Copy link
Member

JEnoch commented Jan 5, 2023

Describe the bug

Installation of zenohd debian package in a fresh ubuntu:latest container returns the folliwing error:

/var/lib/dpkg/info/zenohd.postinst: 23: sudo: not found
dpkg: error processing package zenohd (--configure):
 installed zenohd package post-installation script subprocess returned error exit status 127
Errors were encountered while processing:
 zenohd
E: Sub-process /usr/bin/dpkg returned an error code (1)

To reproduce

  1. docker run -it --init ubuntu
  2. apt update && apt install -y ca-certificates
  3. echo "deb [trusted=yes] https://download.eclipse.org/zenoh/debian-repo/ /" | tee -a /etc/apt/sources.list > /dev/null
  4. apt update && apt install -y zenohd

System info

  • Docker ubuntu:latest
  • Zenoh 0.7.0-rc
@JEnoch JEnoch added the bug Something isn't working label Jan 5, 2023
@JEnoch JEnoch self-assigned this Jan 5, 2023
@JEnoch
Copy link
Member Author

JEnoch commented Jan 5, 2023

sudo and systemctl are not present in Docker image, making the postinstall script to fail.
It should check this and display a warning instead of failing.

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
None yet
Development

No branches or pull requests

1 participant