自制 RPM 的 yum 安装出现错误
我正在尝试使用“yum install my.rpm”来安装某些东西,
问题是我得到
TypeError: an integer is required
error: python callback <bound method RPMTransaction.callback of <yum.rpmtrans.RPMTransaction instance at 0x013e3f8>> failed, aborting!
这是什么意思?我打开了 yum install 的详细信息,但什么也没弄清楚。这是 RHEL 6.1
谢谢
I am trying to isntall something using "yum install my.rpm"
The problem is I am getting
TypeError: an integer is required
error: python callback <bound method RPMTransaction.callback of <yum.rpmtrans.RPMTransaction instance at 0x013e3f8>> failed, aborting!
What does this mean? I turned on verbosity of the yum install, cant figure anything out. This is RHEL 6.1
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果 rpm 在安装软件包时由于某种原因无法访问该文件,则会抛出此错误。
例如,如果您的 rpm 位于带有
root_squash
指令的 NFS 共享上,并尝试安装,那么由于 root 在尝试访问该文件时不会被允许,因此它将失败,并抛出此错误确切的错误。如果是这种情况,那么首先将 rpm 放入
/tmp
中,然后重试即可解决问题。If rpm is not able to access the file for some reason while installing the package, it throws this error.
For example if your rpm is located on a NFS share witn
root_squash
directive, and try to install, then since root while attempting to access the file won't be permitted to it will fail, and it throws this excact error.If this is your case, then putting the rpm in something like
/tmp
first, and then re-trying will solve it.要使用 yum 安装 rpm 文件,需要使用 localinstall 命令:
例如“yum localinstall my.rpm”。但我认为你的规范文件也有问题。
To install a rpm file with yum, you need to use the localinstall command:
For example "yum localinstall my.rpm". But I think you also have a problem with your spec file.