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



在更新fedora期间,由于error: multilib protected version found,我试图删除并安装libacl包,但当我使用rpm --erase --nodeps libacl删除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命令,有人请给我一些想法?

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

最新更新