当我使用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"".
更多推荐
发布评论