免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1365 | 回复: 4
打印 上一主题 下一主题

[系统安装] YUM不能用 求救啊。。。 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-06-24 18:13 |只看该作者 |倒序浏览
已经按照网上的方法修改过
# vi /usr/bin/yum 文件了,不管改成2.4还是2.6都不行
还有其他方法都用过了。。。
可能系统有点乱了
现在这样都不行了
[root@localhost bin]# python --version
-bash: python: command not found

YUM错误:
[root@localhost bin]# yum install httpd
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   No module named yum

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.6.5 (r265:79063, Jul 14 2010, 11:36:23)
[GCC 4.4.4 20100630 (Red Hat 4.4.4-10)]

If you cannot solve this problem yourself, please go to
the yum faq at:
  http://wiki.linux.duke.edu/YumFaq

论坛徽章:
0
2 [报告]
发表于 2012-06-24 19:19 |只看该作者
fxd2006 发表于 2012-06-24 18:13
已经按照网上的方法修改过
# vi /usr/bin/yum 文件了,不管改成2.4还是2.6都不行
还有其他方法都用过了。 ...
  1. It's possible that the above module doesn't match the
  2. current version of Python
复制代码
应该是版本不兼容,请确认你的系统版本

论坛徽章:
0
3 [报告]
发表于 2012-06-24 19:33 |只看该作者
回复 2# zjhxmjl

  1. [root@localhost etc]# uname -sr
  2. Linux 2.6.32-71.el6.i686
复制代码

论坛徽章:
0
4 [报告]
发表于 2012-06-24 20:38 |只看该作者
fxd2006 发表于 2012-06-24 19:33
回复 2# zjhxmjl

终端运行下给我看看
  1. ll /etc/yum.repos.d/
复制代码

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
5 [报告]
发表于 2012-06-25 04:41 |只看该作者
实在不行,重新安装一个 yum 的软件包。

用 rpm 来安装 yum 的软件包看看。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP