免费注册 查看新帖 |

Chinaunix

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

安装yum [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-07-26 17:37 |只看该作者 |倒序浏览
    今天想升级一下我的everest,因为知道everest0.5pre2出来了,结果发现atp不行了,登录公司内部的服务器发现只提供yum方式升级了:
               
               
                Everest升级仓库
目前为止,Everest支持YUM升级方式,并支持Debian deb格式软件的安装,
deb软件包格式可以通过命令debinst *.deb方式进行安装。升级仓库yum的使用方法如下
YUM升级方式(仅对0.5pre2之后的用户有效):
下载(右键另存为):
[对于升级服务器架设人员,不要忘记修改everest.repo文件中的IP地址]
系统升级定义
将其保存到/etc/yum.repos.d/目录。
然后,运行开始菜单->使用工具->kyum.
通过:
List Available按钮可以列出所有可以安装的软件包
List Updates按钮可以列出系统可用的升级
欢迎使用Everest
--Cjacker
    一看我的everest0.5pre1没有装yum包,所以先用atp装上yum的rpm包。另外yum还有个图形前端,kyum也装上,启动kyum发现好像不能用,在终端之行yum有错误提示
[/url]
# yum
Could not find any working storages.
Exception exceptions.AttributeError: "'YumRepository' object has no attribute 'sack'" in bound method YumRepository.__del__ of yum.yumRepo.YumRepository object at 0x833866c>> ignored
    并没有提示少库文件,上面这个提示让我很郁闷,不知道问题所在。用strace看看详细提示,发现有很多文件找不到,大部分都是关于python的,如下信息
open("/usr/lib/python2.4/site-packages/gtk-2.0/sqlitemodule.so", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.4/site-packages/gtk-2.0/sqlite.py", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/usr/lib/python2.4/site-packages/gtk-2.0/sqlite.pyc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
close(4)                                = 0
futex(0x804a3d8, FUTEX_WAKE, 1)         = 0
gettimeofday({1185439894, 248822}, NULL) = 0
write(2, "\n\nCould not find any working sto"..., 39
Could not find any working storages.
) = 39
futex(0x830d4e8, FUTEX_WAKE, 1)         = 0
unlink("///var/run/yum.pid")            = -1 ENOENT (No such file or directory)
write(2, "Exception ", 10Exception )              = 10
write(2, "exceptions.AttributeError", 25exceptions.AttributeError) = 25
    看了一下我系统也装python了啊,在google上搜一下,发现有
[url=https://lists.dulug.duke.edu/pipermail/yum/2007-July/009971.html]一片文章

,讲的比较类似,有人回复说先看看依赖包是否都安装全了。
Is the installed yum and it's dependencies OK ?
rpm -V yum python rpm rpm-libs fedora-release python-sqlite2
python-urlgrabber yum-metadata-parser
Show us any output from the rpm Verify, and also any *.repo files that
have been modified or added {/etc/yum.repos.d/*.repo}
DaveT.
    不用执行,看了看有关python的这两个我系统里面有没有吧。的确发现python-sqlite2
没有,装上之后,yum可以正常执行了。
    非常奇怪,当时装yum的时候,也没有提示依赖这个包。真奇怪啊。


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/43502/showart_347512.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP