/usr/bin/yum: /usr/bin/python: bad interpreter
时间: 2023-09-02 08:09:17 浏览: 190
这个错误提示表明在安装软件包时,出现了一个解释器错误,即找不到所需的python解释器。常见的解决办法是重新创建一个指向系统python的软连接。你可以使用以下命令来创建软连接:ln -s /usr/bin/python2.6 /usr/bin/python。这将创建一个名为python的软连接,指向系统中的python2.6解释器。这样,当系统执行/usr/bin/yum时,它将使用正确的python解释器来执行。请确保在执行此命令之前,系统中已经安装了python2.6的rpm包。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [使用yum命令的时候报,-bash: /usr/bin/yum: /usr/bin/python: bad interpreter: 没有那个文件或目录](https://blog.csdn.net/anning_88/article/details/75735757)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [/usr/bin/yum /usr/bin/python: bad interpreter: No such file or directory](https://blog.csdn.net/weixin_44430786/article/details/129284754)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文