想升級下軟體
yum -y update xxxxxxxx
得到這這個訊息
-bash: /usr/bin/yum: /usr/bin/python2.6: bad interpreter: 不是目录
網路找過教學
照做了,但是不是行
我先查看了python
# whereis python
python: /usr/bin/python2.6 /usr/bin/python /usr/lib/python2.6 /usr/local/bin/python2.7-config /usr/local/bin/python2.7 /usr/ local/bin/python /usr/local/lib/python2.7 /usr/include/python2.6 /usr/share/man/man1/python.1.gz
裝了兩
修改了
/usr/bin/yum
改成了#!/usr/bin/python2.6
還是出-bash: /usr/bin/yum: /usr/bin/python2.6: bad interpreter: 不是目錄
現在我不知道怎麼整了
/usr/bin下有
python2.6
python2.6.6
還有一個python
....
升級python的時候做過ln -s /usr/local/bin/python2.7 /usr/bin/python