Bug 7295 - server installer/tl-setup fails to install Python 2 on RHEL8
Summary: server installer/tl-setup fails to install Python 2 on RHEL8
Status: CLOSED FIXED
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Server Installer (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: 4.10.1
Assignee: Peter Åstrand
URL:
Keywords: ossman_tester, relnotes
Depends on:
Blocks: 7328
  Show dependency treegraph
 
Reported: 2018-12-12 10:20 CET by Karl Mikaelsson
Modified: 2019-06-26 13:26 CEST (History)
1 user (show)

See Also:
Acceptance Criteria:
* When python2 is not installed, the suggested dnf command line should work


Attachments

Description Karl Mikaelsson cendio 2018-12-12 10:20:56 CET
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 Peter Åstrand cendio 2019-06-24 10:36:31 CEST
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 Pierre Ossman cendio 2019-06-26 09:15:10 CEST
Works well now. Tested on RHEL 8 and SLES 15.

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