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

Ubuntu 18.04 container doesn't work #65

Closed
alcir opened this issue Dec 29, 2021 · 9 comments · Fixed by #66
Closed

Ubuntu 18.04 container doesn't work #65

alcir opened this issue Dec 29, 2021 · 9 comments · Fixed by #66
Labels
bug Something isn't working container-distro

Comments

@alcir
Copy link
Contributor

alcir commented Dec 29, 2021

It is stated that Ubuntu 18.04 is a supported container distro, but

[user@pc ~]$ distrobox-create --name ubuntu-18 --image docker.io/library/ubuntu:18.04
e4a127e1cf407e72033dc8f34326c1793796de62f97ecbc871ad71823824b89b
Distrobox 'ubuntu-18' successfully created.
To enter, run:
	distrobox-enter --name ubuntu-18
[user@pc ~]$    distrobox-enter --name ubuntu-18
Starting container ubuntu-18
run this command to follow along:
	podman logs -f ubuntu-18
.......
done!
Error: executable file `bash` not found in $PATH: No such file or directory: OCI runtime attempted to invoke a command that was not found

An error occurred
@89luca89 89luca89 added bug Something isn't working container-distro labels Dec 29, 2021
@89luca89
Copy link
Owner

Hi @alcir
Can i have the output of the podman logs? Probably something went wrong with the container initialization

Thanks!

@alcir
Copy link
Contributor Author

alcir commented Dec 29, 2021

Sure

log.txt

@89luca89
Copy link
Owner

Seems like the container bootstrapped correctly
I've tried it right now and it works indeed, seems like a problem with your PATH
Can you do

distrobox-enter --name ubuntu-18 --verbose

to check? It should not have this type of problem, as for now you can see in line 163 of distrobox-enter I ensure that the standard FHS path is present (/usr/local/sbin /usr/local/bin /usr/sbin /usr/bin /sbin /bin)

Let's see if the problem is there

@alcir
Copy link
Contributor Author

alcir commented Dec 29, 2021

distrobox-enter --name ubuntu-18 --verbose

log2.txt

@alcir
Copy link
Contributor Author

alcir commented Dec 29, 2021

Mmmh, I tried on another Fedora host, and there, with podman logs -f ubuntu-18 I simply get
exec container process (missing dynamic library?) /usr/bin/entrypoint: No such file or directory
But maybe this is a very messed up host.

Btw using another Fedora system, I get the same as before: Error: executable file bash not found in $PATH blah blah

@89luca89
Copy link
Owner

Got it, can reproduce now
It's not adding the default /bin/ and /sbin/ paths to PATH correctly, hence it will not find bash in ubuntu-18
It doesn't work with your PATH, it works with my PATH, probably need to check in a better way while building up the PATH variable.

@89luca89
Copy link
Owner

@alcir opened a new pull to fix this, can you check if the fix works?
It worked for me after I've reproduced your PATH

@alcir
Copy link
Contributor Author

alcir commented Dec 29, 2021

Works for me 👍

@89luca89
Copy link
Owner

Cool! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working container-distro
Projects
None yet
2 participants