概述

由于前公司运维升级了python版本,导致模块缺失无法使用yum命令。

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

   /usr/lib64/python2.7/site-packages/_sqlitecache.so: 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, Oct 31 2018, 18:48:32) 
[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]

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

解决办法

[root@localhost ~]# rpm -q yum-metadata-parser
yum-metadata-parser-1.1.4-10.el7.aarch64
[root@localhost ~]# rpm -e yum-metadata-parser --nodeps
[root@localhost ~]# rpm -ivh yum-metadata-parser-1.1.4-10.el7.aarch64.rpm
END

本文标题:升级python后yum缺失_sqlitecache.so依赖

本文作者:宇宙最帅的男人

本文链接:https://lolicp.com/linux/202105336.html

版权声明:转载或者引用本文内容请注明来源及原作者,本文著作权归作者 (宇宙最帅的男人) 所有。

除非另有说明,本作品采用知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议

最后修改:2021 年 12 月 05 日
如果觉得我的文章对你有用,请随意赞赏