FreeTAKTeam / FreeTAKHub-Installation

FreeTAKHub-Installation
Eclipse Public License 2.0
36 stars 30 forks source link

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

Open jakobbuis opened 5 months ago

jakobbuis commented 5 months ago

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

aercamti commented 1 month ago

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.