-
Notifications
You must be signed in to change notification settings - Fork 150
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
Cluster setup fails for ubuntu 20.04 #683
Comments
Just retried with the latest elasticluster version and the problem is still there, here follows an excerpt of the error message: [...] In the generated inventory, the ansible python interpreter is set to /usr/bin/python+eatmydata which is present with the following content: exec /usr/bin/eatmydata -- '/usr/bin/python' "$@" But /usr/bin/python does not exist on the system hence the following error when re-running setup: TASK [Gathering Facts] ********************************************************************************************** $ lsb_release -a |
The use of python3 by default and removed support for python2 are likely the cause. Python3 by default In 20.04 LTS, the python included in the base system is Python 3.8. Python 2.7 has been moved to universe and is not included by default in any new installs. Remaining packages in Ubuntu which require Python 2.7 have been updated to use /usr/bin/python2 as their interpreter, and /usr/bin/python is not present by default on any new installs. On systems upgraded from previous releases, /usr/bin/python will continue to point to python2 for compatibility. Users who require /usr/bin/python for compatibility on newly-installed systems are encouraged to install the python-is-python3 package, for a /usr/bin/python pointing to python3 instead. |
I tried setting up a cluster with ubuntu 20.04 images and the play fails at step "Ensure Python is installed" with the following error:
"install-py2.sh: ERROR: Python interpreter '/usr/bin/python' not found, even after installation. Aborting."
The text was updated successfully, but these errors were encountered: