永发信息网

centos yum 出错

答案:2  悬赏:10  手机版
解决时间 2021-02-03 16:32
  • 提问者网友:兔牙战士
  • 2021-02-03 00:32
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

No module named sqlite

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.6.6 (r266:84292, Jan 22 2014, 09:42:36)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)]

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

centos 6.5 运行yum命令出现上述提示。怎么解决?
最佳答案
  • 五星知识达人网友:等灯
  • 2021-02-03 00:45
CentOS升级导致yum错误 No module named sqlite
CentOS升级导致yum错误 No module named sqlite

解决过程

wget centos对应的python-sqlite rpm包

rpm -Uvh --force python-sqlite.*.rpm

没效果

rpm -e --nodeps python-sqlite

rpm -ivh --nodeps python-sqllite.*.rpm

依然无效

wget centos对应的python-sqlite.*.src.rpm包

rpm -ivh python-sqlite.*.src.rpm

cd /usr/src/RedHat/SPECSrpmbuild -bb *.specscd /usr/src/redhat/RPMS/i386/rpm -Uvh --force new-package.rpm

基本这样就能解决了。
全部回答
  • 1楼网友:长青诗
  • 2021-02-03 01:52
这个是python的模块出错了, 这个是yum配置不正确的, 看看wo 的网名行吗?给搞定一下 啊!!
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯