-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
"sudo: command not found" in micro image #269
Comments
+1; installing the |
Issue is stale and will be closed in 7 days unless there is new activity |
The issue is still prevalent and prohibits running many actions. |
@Senui where do you insert this line? |
I just add it as the first step:
|
Ah gotcha, i guess installing it again (from the perspective of the actual GitHub actions running on the web) won't cause any harm. Thanks! :) |
I'm having this problem too. Can it be reopened? @nektos |
One solution is to use the alternative image. For the sake of completeness, here is the text from the README:
|
given that the main problem is that |
Using the Run apt update && apt install sudo
apt update && apt install sudo
shell: sh -e {0}
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
E: List directory /var/lib/apt/lists/partial is missing. - Acquire (13: Permission denied)
Error: Process completed with exit code 100.
|
@rokcarl what image are you using? |
I'm |
|
Just reviving this a little since I also came across the issue today. And found that the updated workaround can be to just use conditional ie- if running act locally vs Github Actions cloud.
Note you may still need to install sudo package for Github Actions. |
Quoting ACT's own explaination for why it exists:
So if the workaround is "use different yaml for act vs. github", that's not a good workaround. |
|
That's mostly not an issue: act can run the container when installing, itself, and run a script that installs the "missing from buster-slim" universals like |
We already provide images that include |
Then really this issue should be briefly reopened, and then closed with a comment that explains which (still small rather than 18GB) image should be used instead, because right now the issue is closed because of github automation, so anyone who finds it is still going to be none the wiser about a solution. |
Why is the
ubuntu-latest
container claiming thatsudo
doesn't exist? It kind of has to in order to run installers.This crashes, even though it never should:
The text was updated successfully, but these errors were encountered: