www.cendio.com
Bug 7295 - server installer/tl-setup fails to install Python 2 on RHEL8
: server installer/tl-setup fails to install Python 2 on RHEL8
Status: CLOSED FIXED
: ThinLinc
Server Installer
: trunk
: PC Unknown
: P2 Normal
: 4.10.1
Assigned To:
:
:
:
: 7328
  Show dependency treegraph
 
Reported: 2018-12-12 10:20 by
Modified: 2019-06-26 13:26 (History)
Acceptance Criteria:
* When python2 is not installed, the suggested dnf command line should work


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From cendio 2018-12-12 10:20:56
See bug 7294 for improving auto-detection of Python 2.7 on RHEL8.

> # ./install-server 
> 
> Error: No Python 2.x interpreter found.
> 
> A Python 2.x interpreter is required for ThinLinc.
> I was trying to use the Python interpreter named 'python'.
> 
> If Python is installed under a different name, set the PYTHON
> environment variable to the Python binary to use. Example:
> PYTHON=/usr/bin/python2.6 ./install-server
> 
> To install Python, please run this command:
> 
>     dnf install python
> 
> Would you like to run this command now?
> 
> (Y/n)? y
> 
> $ dnf install python
> Failed to set locale, defaulting to C
> Updating Subscription Management repositories.
> Updating Subscription Management repositories.
> Last metadata expiration check: 0:26:34 ago on Wed Dec 12 09:52:07 2018.
> No match for argument: python
> There are following alternatives for "python": python2, python36
> Error: Unable to find a match
>
> #
------- Comment #1 From cendio 2019-06-24 10:36:31 -------
It should be safe to change to command line to:

dnf install python2

* On RHEL7, dnf is not installed by default, but can be installed. But in any
case, "python2" is an alias for "python".

* On RHEL8, the package is called "python2".

* On Fedora, the package is called "python2" since Fedora 29.
------- Comment #3 From cendio 2019-06-26 09:15:10 -------
Works well now. Tested on RHEL 8 and SLES 15.