Skip to content

[Error] Unable to start containers after removing one of multiple distrobox installations #1751

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

Open
MagicalDrizzle opened this issue May 7, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@MagicalDrizzle
Copy link

MagicalDrizzle commented May 7, 2025

Describe the bug
Distrobox seems to "hardcode" its install path when creating containers, so when that particular installation is removed, you are unable to enter containers again even though you do still have distrobox, just installed a different way.

To Reproduce

  • Install distrobox through your package manager.
  • Install distrobox again using the install script (into ~/.local)
    • curl -s https://raw.githubusercontent.com/89luca89/distrobox/main/install | sh -s -- --prefix ~/.local
  • Make sure the distrobox you are invoking is the one installed by curl (it should be by default)
  • Create a container, enter it, exit it, stop the container.
  • Now remove the distrobox installation done with the install script
    • curl -s https://raw.githubusercontent.com/89luca89/distrobox/main/uninstall | sh -s -- --prefix ~/.local
  • Attempt to enter containers.
  • Result:
$ distrobox enter fedora42 
Error: unable to start container "9a78ee26183cd355dbc611db2a6574a9b5b2bcf0fc17ae27d813ca53a0a6011d": crun: cannot stat `/home/username/.local/bin/distrobox-init`: No such file or directory: OCI runtime attempted to invoke a command that was not found

Expected behavior
Distrobox should be able to enter containers.

Logs
Run the commands with --verbose and post the log here as a file upload
Attach also the output of podman logs or docker logs, possibly with --latest flag

distrobox.txt
podman.txt

Desktop (please complete the following information):

  • Are you using podman, docker or lilipod? Podman
  • Which version or podman, docker or lilipod? 4.9.3
  • Which version of distrobox? 1.7.0 (package manager), 1.8.1.2 (curl)
  • Which host distribution? Linux Mint 22.1
  • How did you install distrobox? package manager and curl.
@MagicalDrizzle MagicalDrizzle added the bug Something isn't working label May 7, 2025
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