免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: 最不爱吃鱼
打印 上一主题 下一主题

yum 提示段错误 [复制链接]

论坛徽章:
0
11 [报告]
发表于 2011-05-11 09:17 |只看该作者
本帖最后由 最不爱吃鱼 于 2011-05-11 09:20 编辑
回复  最不爱吃鱼


    压根就没装上,你从不看屏幕提示么?
cst05001 发表于 2011-05-11 09:03
  1.    [root@wowoj_mail yum.repos.d]# python
  2. Python 2.4.3 (#1, Nov 11 2010, 13:34:43)
  3. [GCC 4.1.2 20080704 (Red Hat 4.1.2-48)] on linux2
  4. Type "help", "copyright", "credits" or "license" for more information.
  5. >>>
复制代码
python有的 也可以正常用
可是输入rpm -qa | grep python 显示没有python

  1. [root@wowoj_mail yum.repos.d]# rpm -qa | grep python
  2. [root@wowoj_mail yum.repos.d]# rpm -qa | grep yum
  3. yum-metadata-parser-1.1.2-3.el5.centos
  4. yum-3.2.22-26.el5.centos
  5. [root@wowoj_mail yum.repos.d]# echo $PATH
  6. /usr/local/ruby/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/courier-imap/sbin:/usr/lib/courier-imap/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
  7. [root@wowoj_mail yum.repos.d]# whereis Python
  8. Python:
  9. [root@wowoj_mail yum.repos.d]# whereis python
  10. python: /usr/bin/python2.4 /usr/bin/python /usr/lib/python2.4 /usr/local/bin/python2.4 /usr/local/bin/python /usr/local/lib/python2.4 /usr/include/python2.4 /usr/share/man/man1/python.1.gz
  11. [root@wowoj_mail yum.repos.d]#
复制代码
rpm -qa | grep yum可以显示安装的yum信息 说明rpm可以
环境变量里没有python的变量
我不知道改加那个路径
现在我重装了yum 之后yum update还提示段错误
请问python的环境变量该加那个路径?
PATH="$PATH":/ 后面是那个路径?
  1. [root@wowoj_mail yum.repos.d]# yum clean all
  2. Loaded plugins: priorities
  3. Cleaning up Everything
  4. [root@wowoj_mail yum.repos.d]# yum uodate
  5. Loaded plugins: priorities
  6. usage: yum [options] COMMAND

  7. List of Commands:

  8. check-update   Check for available package updates
  9. clean          Remove cached data
  10. deplist        List a package's dependencies
  11. downgrade      downgrade a package
  12. erase          Remove a package or packages from your system
  13. groupinfo      Display details about a package group
  14. groupinstall   Install the packages in a group on your system
  15. grouplist      List available package groups
  16. groupremove    Remove the packages in a group from your system
  17. help           Display a helpful usage message
  18. info           Display details about a package or group of packages
  19. install        Install a package or packages on your system
  20. list           List a package or groups of packages
  21. localinstall   Install a local RPM
  22. makecache      Generate the metadata cache
  23. provides       Find what package provides the given value
  24. reinstall      reinstall a package
  25. repolist       Display the configured software repositories
  26. resolvedep     Determine which package provides the given dependency
  27. search         Search package details for the given string
  28. shell          Run an interactive yum shell
  29. update         Update a package or packages on your system
  30. upgrade        Update packages taking obsoletes into account


  31. options:
  32.   -h, --help            show this help message and exit
  33.   -t, --tolerant        be tolerant of errors
  34.   -C                    run entirely from cache, don't update cache
  35.   -c  [config file]     config file location
  36.   -R  [minutes]         maximum command wait time
  37.   -d  [debug level]     debugging output level
  38.   --showduplicates      show duplicates, in repos, in list/search commands
  39.   -e  [error level]     error output level
  40.   -q, --quiet           quiet operation
  41.   -v, --verbose         verbose operation
  42.   -y                    answer yes for all questions
  43.   --version             show Yum version and exit
  44.   --installroot=[path]  set install root
  45.   --enablerepo=[repo]   enable one or more repositories (wildcards allowed)
  46.   --disablerepo=[repo]  disable one or more repositories (wildcards allowed)
  47.   -x [package], --exclude=[package]
  48.                         exclude package(s) by name or glob
  49.   --disableexcludes=[repo]
  50.                         disable exclude from main, for a repo or for
  51.                         everything
  52.   --obsoletes           enable obsoletes processing during updates
  53.   --noplugins           disable Yum plugins
  54.   --nogpgcheck          disable gpg signature checking
  55.   --disableplugin=[plugin]
  56.                         disable plugins by name
  57.   --enableplugin=[plugin]
  58.                         enable plugins by name
  59.   --skip-broken         skip packages with depsolving problems
  60.   --color=COLOR         control whether color is used
  61.   --samearch-priorities
  62.                         Priority-exclude packages based on name + arch

  63.   Plugin Options:
  64. [root@wowoj_mail yum.repos.d]# yum update
  65. Loaded plugins: priorities
  66. addons                                                   |  951 B     00:00
  67. addons/primary                                           |  202 B     00:00
  68. 段错误
  69. [root@wowoj_mail yum.repos.d]#
复制代码
我执行yum的时候可以显示这些信息,是不是说明yum还是没问题的?
谢谢楼上各位。

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
12 [报告]
发表于 2011-05-11 09:36 |只看该作者
段错误肯定有问题.

论坛徽章:
0
13 [报告]
发表于 2011-05-11 09:39 |只看该作者
段错误肯定有问题.
chenyx 发表于 2011-05-11 09:36

我删除所有源之后
yun list可以显示内容
  1. [root@wowoj_mail yum.repos.d]# yum list
  2. Loaded plugins: priorities
  3. Installed Packages
  4. centos-release.i386                  10:5-5.el5.centos                 installed
  5. yum.noarch                           3.2.22-26.el5.centos              installed
  6. yum-metadata-parser.i386             1.1.2-3.el5.centos                installed
  7. [root@wowoj_mail yum.repos.d]# yum update
  8. Loaded plugins: priorities
  9. Setting up Update Process
  10. No Packages marked for Update
  11. [root@wowoj_mail yum.repos.d]#
复制代码
加了源之后就报错
求真相帝帮吾辈解答之。。。。

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
14 [报告]
发表于 2011-05-11 09:42 |只看该作者
楼主试试用本地源看看还出现段错误不

论坛徽章:
1
操作系统版块每日发帖之星
日期:2015-07-11 22:20:00
15 [报告]
发表于 2011-05-11 10:06 |只看该作者
回复 12# chenyx


    而且肯定是rpm所依赖的库被改了,而且是非红帽的!
lz最近装了什么奇怪的东西么?

论坛徽章:
0
16 [报告]
发表于 2011-05-11 10:58 |只看该作者
回复  chenyx


    而且肯定是rpm所依赖的库被改了,而且是非红帽的!
lz最近装了什么奇怪的东西么?
cst05001 发表于 2011-05-11 10:06

我用DVD做本地源
依然提示段错误
  1. [root@wowoj_mail yum.repos.d]# yum makecache
  2. Loaded plugins: priorities
  3. DVDROM                                                   | 1.1 kB     00:00
  4. DVDROM/filelists                                         | 2.9 MB     00:00
  5. DVDROM/other                                             | 9.1 MB     00:00
  6. DVDROM/group                                             | 920 kB     00:00
  7. DVDROM/primary                                           | 920 kB     00:00
  8. 段错误
  9. [root@wowoj_mail yum.repos.d]#
复制代码
之前加过第三方的源 准备直接yum munin 就是这个
rpmforge-release-0.5.2-2.el5.rf.i386.rpm
  1. yum install yum-priorities
  2. wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm  
  3. yum -Uvh  rpmforge-release-0.5.2-2.el5.rf.i386.rpm
复制代码
之后就不好使了
不好使之后这个第三方的rpm我就卸载了
这台服务器装的centos5.5

论坛徽章:
0
17 [报告]
发表于 2011-05-11 11:14 |只看该作者
回复  chenyx


    而且肯定是rpm所依赖的库被改了,而且是非红帽的!
lz最近装了什么奇怪的东西么?
cst05001 发表于 2011-05-11 10:06


要是依赖库被更改了,还能恢复么?

论坛徽章:
1
操作系统版块每日发帖之星
日期:2015-07-11 22:20:00
18 [报告]
发表于 2011-05-11 12:14 |只看该作者
回复 17# 最不爱吃鱼


    用官方包重装这些库

论坛徽章:
0
19 [报告]
发表于 2011-05-11 12:39 |只看该作者
本帖最后由 最不爱吃鱼 于 2011-05-11 13:22 编辑
回复  最不爱吃鱼


    用官方包重装这些库
cst05001 发表于 2011-05-11 12:14


yum用不了
官方包重装那些库?我怎么能列出这些库的名字啊?
真相帝明示

论坛徽章:
1
操作系统版块每日发帖之星
日期:2015-07-11 22:20:00
20 [报告]
发表于 2011-05-11 14:03 |只看该作者
回复 19# 最不爱吃鱼


    你或者你同事动了那些库我怎么知道呢?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP