在centos中用yum安装sysstat时报错 /usr/bin/yum: /usr/bin/Python: bad interpreter: No such file or directory
先进入目录/usr/bin中查看python命令,我的为python2.6,记住后面的数字(系统安装python的版本号),vim打开yum,编辑第一行
#!/usr/bin/python 把pyhon后面加上刚才的版本号,保存退出,重新运行yum,通过!
在centos中用yum安装sysstat时报错 /usr/bin/yum: /usr/bin/Python: bad interpreter: No such file or directory
先进入目录/usr/bin中查看python命令,我的为python2.6,记住后面的数字(系统安装python的版本号),vim打开yum,编辑第一行
#!/usr/bin/python 把pyhon后面加上刚才的版本号,保存退出,重新运行yum,通过!