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 installs fail with DEBIAN_FRONTEND=noninteractive: command not found #369

Closed
quadespresso opened this issue May 13, 2022 · 2 comments · Fixed by #370
Closed

Ubuntu installs fail with DEBIAN_FRONTEND=noninteractive: command not found #369

quadespresso opened this issue May 13, 2022 · 2 comments · Fixed by #370

Comments

@quadespresso
Copy link
Contributor

launchpad version: 1.4.0-rc.1

I've been trying to stand up a single-node cluster running on Ubuntu 20.04 (also seen on 18.04) and have repeatedly run into this:

[2022-05-13 17:48:17] DEBU [ssh] 3.98.139.172:22: executing `sudo -s -- DEBIAN_FRONTEND=noninteractive apt-get install -y -q curl apt-utils socat iputils-ping`
[2022-05-13 17:48:17] DEBU [ssh] 3.98.139.172:22: /bin/bash: DEBIAN_FRONTEND=noninteractive: command not found

If I switch back to an older version, the issue is no longer present.

I should have noticed this yesterday when I posted my session in this comment, as it's there plain as day: ssh unable to authenticate with Ubuntu 22.04 #366

At the time, I was expecting the actual MCR install to fail, due to the lack of jammy packages in the repo. So I tuned out the DEBIAN_FRONTEND=noninteractive: command not found as I was happy to see that launchpad was able to login via ssh using RSA.

@kke
Copy link
Collaborator

kke commented May 16, 2022

Maybe they changed "sudo". This can be probably fixed by wrapping it inside bash -c.

sudo -s -- bash -c "DEBIAN_FRONTEND=noninteractive apt-get install -y -q curl apt-utils socat iputils-ping"

@kke
Copy link
Collaborator

kke commented May 16, 2022

Yeah same happens in a vm.

ubuntu@foo:~$ sudo -s -- FOO=BAR env
/bin/bash: FOO=BAR: command not found
ubuntu@foo:~$ sudo -s FOO=BAR -- env
SHELL=/bin/bash
...
...

k0sproject/rig#60 this should fix it, it moves the variables before the --.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants