I hit an error when running
yum update on my centOS 7, the command failed
to update my OS!
# yum update
Looks like something is wrong with the system. After some research, I notice
the root cause is the missmatch of python version. ‘yum’ command need python 2.7
on /usr/bin/python symbol link, which I changed to python 3.6 before.
# head /usr/bin/yum
The workaround is to change the first line of
/usr/bin/yum to use python2