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

Installation on unsupported Ubuntu 24.04 cannot proceed because the question is suppressed #126

Open
jakobbuis opened this issue Jun 20, 2024 · 1 comment

Comments

@jakobbuis
Copy link

jakobbuis commented Jun 20, 2024

Steps to reproduce

  1. Create an Ubuntu 24.04 machine
  2. Run the easy installer script: wget -qO - bit.ly/freetakhub2 | sudo bash -s

Expected:
Output a warning with the option to proceed, waiting for the user to override:

Checking for supported OS...WARNING
FreeTAKServer has only been tested on \033[0;32mUbuntu 22.04\033[0m.
This machine is currently running: Ubuntu 24.04
Errors may arise during installation or execution.
Do you want to continue? [y/n]: y
Proceeding...

Happened:
The user cannot answer the question as the following is output immediately:

Checking for supported OS...WARNING
FreeTAKServer has only been tested on \033[0;32mUbuntu 22.04\033[0m.
This machine is currently running: Ubuntu 24.04
Errors may arise during installation or execution.
Answer was not y. Not proceeding.
Exiting. Installation NOT successful.

This happens because in easy_install.sh on line 14 the terminal is set to non-interactive, so the terminal doesn't wait for the user to input 'y' and immediately proceeds.

Note that I'm not saying that you should be supporting Ubuntu 24.04, just that your input handling is broken, I'm not creating a PR at this time because I'm not sure why line 14 is there in the first place, considering Chesterton's fence

@jakobbuis jakobbuis changed the title Installation on unsupported cannot proceed because the question is suppressed Installation on unsupported Ubuntu 24.04 cannot proceed because the question is suppressed Jun 20, 2024
aercamti added a commit to aercamti/FreeTAKHub-Installation that referenced this issue Oct 16, 2024
Changes made due to upgrade to Ubuntu 24-04 (vs. 22.04) - installation fails since prompt is missing (see here: FreeTAKTeam#126)
@aercamti
Copy link

aercamti commented Oct 18, 2024

I am using a Raspberry Pi 5 (8GB RAM), and can confirm that using the Zero Touch install method referenced in the FreeTAK docs does not work with Ubuntu server 24.04 LTS; it throws the error described by the OP.
Trouble is that the RPi 5 is not supported to work with Ubuntu server 22.04 - which FreeTAK requires....

It would be nice if the FreeTAK install routine could be updated to be compatible with Ubuntu server 24.04 as well, as this seems to the route that Raspberry Pi is going.

To get out of this catch22, I will next try the docker install method, with Ubuntu server 24.04.

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

No branches or pull requests

2 participants