在RHEL上错误“错误的依赖关系:xxx需要/ bin / sh”的根本原因是什么?(What's the root cause of error “Failed dependencies:

编程入门 行业动态 更新时间:2024-10-27 06:27:06
在RHEL上错误“错误的依赖关系:xxx需要/ bin / sh”的根本原因是什么?(What's the root cause of error “Failed dependencies: /bin/sh is needed by xxx” on RHEL?)

当我使用rpm在RHEL上安装rpm包时,我收到了一条错误消息,就像“失败的依赖关系:xxx需要/ bin / sh”。

我检查了/ bin / sh在那里,它链接到/ bin / bash和bash运行良好。

我找到了一个解决方案,将--nodeps添加到rpm命令来解决此问题。 但我真的想知道根源是什么?

When I install a rpm package on RHEL using rpm, I got a error message just like "Failed dependencies: /bin/sh is needed by xxx".

I checked that /bin/sh is there and it links to /bin/bash and bash works well.

I found a solution that to add --nodeps to the rpm command to solve this problem. But I really want to know what is the root cause?

最满意答案

如何在全新安装的Ubuntu 14.04上重现此错误。

全新安装Ubuntu 14.04 做一个sudo apt-get install rpm 从https://www.nomachine.com/download/download&id=4下载nomachine rpm 64位linux 对其执行chmod +x nomachine_4.2.25_1_x86_64.rpm

像这样提取它:

el@apollo:~Desktop$ sudo rpm -i nomachine_4.2.25_1_x86_64.rpm rpm: RPM should not be used directly install RPM packages, use Alien instead! rpm: However assuming you know what you are doing... error: Failed dependencies: /bin/sh is needed by nomachine-4.2.25-1.x86_64

所以那是错误。 为了解决它,我遵循它的建议来使用外星人。

sudo alien -i nomachine_4.2.25_1_x86_64.rpm --scripts

并没有正确安装机器。

I have find root cause for this problem. The rpm-libs is missing on my machine. I reinstall rpm-libs then everything is ok. Note: After installing rpm-libs, if the problem still exists, please try "rpm -v --rebuilddb --define="_rpmlock_path /var/lock/rpm"".

更多推荐

本文发布于:2023-08-05 06:54:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1429714.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   根本原因   关系   xxx   bin

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!