2012年6月26日 星期二

Yum error: No module named sqlite



從我的 iPhone 傳送

開始轉寄郵件:

寄件人: <min.zhang@hk.panasonic.com>
日期: 2012年6月27日 8:07:43 [GMT+08:00]
收件人: <tigerzhk@gmail.com>
標題: Yum error: No module named sqlite

Yum error: No module named sqlite

Posted on January 8th, 2010 Admin No comments

Today we upgraded one of our centos 4.8 server to centos 5.4 via yum. But after upgrade yum seems to be showing sqlite error.

[root@server1]# yum clean all
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.4.3 (#1, Sep  3 2009, 15:37:12)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)]

If you cannot solve this problem yourself, please go to
the yum faq at:

http://wiki.linux.duke.edu/YumFaq

To fix this download the latest python-sqlite rpm from CentOS 5.4 mirror and peform a forceful upgrade.

[root@server1]# rpm -Uvh python-sqlite-1.1.7-1.2.1.i386.rpm –force
Preparing…                ########################################### [100%]
1:python-sqlite          ########################################### [100%]
[root@server1]# yum clean all
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Cleaning up Everything

[root@server1]# yum update



 

沒有留言:

張貼留言