当我删除libacl包时,Yum命令在fedora中不起作用?

时间:2014-06-16 06:01:58

标签: linux fedora rpm yum

在更新fedora期间,由于error: multilib protected version found,我尝试删除并安装libacl包,但是当我使用libacl删除rpm --erase --nodeps libacl包时,yum命令停止工作,我无法再次安装libacl,运行yum会出现此错误: -

There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   libacl.so.1: cannot open shared object file: No such file or directory

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.7.5 (default, Nov 12 2013, 16:18:42) 
[GCC 4.8.2 20131017 (Red Hat 4.8.2-1)]

If you cannot solve this problem yourself, please go to 
the yum faq at:
http://yum.baseurl.org/wiki/Faq

不仅是yum,而且当我在终端中触发任何命令时,它会出现此错误: -

error while loading shared libraries: libacl.so.1: cannot open shared object file: No such file or directory

由于这个原因,我无法使用rpm命令手动安装任何软件包,有人请给我一些想法吗?

1 个答案:

答案 0 :(得分:1)

手动下载libacl RPM并执行rpm2cpio packagefile.rpm | cpio -div,然后手动将libacl.so.1复制到应有的位置。然后正确安装RPM。在此之后,请不要再次使用--nodeps,除非您确定您知道自己在做什么! ;)