My Oracle Support Banner

Yum Not Working after Python Upgrade To python3.6 (Doc ID 2706245.1)

Last updated on OCTOBER 08, 2020

Applies to:

Linux OS - Version Oracle Linux 5.11 to Oracle Linux 8.1 [Release OL5U11 to OL8U1]
Information in this document applies to any platform.

Symptoms

After python was upgraded to 3.6, having below errors, when executing yum command

# yum repo llist
  File "/bin/yum", line 30
  except KeyboardInterrupt, e:
  ^
SyntaxError: invalid syntax

# yum clean all
File "/bin/yum", line 30
except KeyboardInterrupt, e:
^
SyntaxError: invalid syntax

Changes

 Third party python was updated to version (python 3.6), which was not working as expected

/bin/python3.6

Old existing and stable version in the server is python2.7

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.