Error reporting using Yum: Yum except keyboardinterrupt, e

An error was reported when using Yum today:

[[email protected] /]# yum File "/usr/bin/yum", line 30 except KeyboardInterrupt, e: ^ SyntaxError: invalid syntax

It turned out that I installed Python 3.5 a few days ago

According to the prompt, the solution:

[[email protected] /]# vim /usr/bin/yum #!/usr/bin/python import sys try: import yum except ImportError: print >> sys.stderr, """\

Change the above statement to the default version of python2.6 before the system:

#!/usr/bin/python2.6 import sys try: import yum except ImportError: print >> sys.stderr, """\

yum can be used

:

Similar Posts: