PDA

View Full Version : Problem với Yum in Redhat9.0



MrGIT
06-10-2008, 15:43
Hiện mình đang gặp problem với yum trên Redhat, có bạn nào biết xin giúp đỡ.
Yum bị lỗi như sau:

[root@localhost a]# yum
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

No module named yum

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.2.2 (#1, Feb 24 2003, 19:13:11)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-4)]

If you cannot solve this problem yourself, please go to
the yum faq at:
http://wiki.linux.duke.edu/YumFaq


Mình đã thử nhiều cách rồi nhưng bó tay, mong các bạn giúp mình!!!

quanta
08-10-2008, 22:30
Mình đã thử nhiều cách rồi nhưng bó tay, mong các bạn giúp mình!!!
Đó là những cách gì vậy bạn?

Diamond2
09-10-2008, 17:31
Q. 7: I installed a new version of yum (or upgraded my whole system) and now when I run yum, I get an error saying "The yum libraries do not seem to be available on your system for this version of python" and "Please make sure the package you used to install yum was built for your install of python." What's wrong with the yum package I've got, or my Python installation, and how do I fix it?

A.

In pre-2.3.? yum This error message is often misleading. To see the real error, run python from the command line, and type import yum. The problem probably isn't with your version of python at all, but with a missing libxml2-python, python-sqlite, or python-elementtree package.

Yum 2.4.x provides a different error with the module import errors, so this will become less confusing.

It also includes a directive to send the error to the mailing list. Really, you should figure out what rpm provides the module that was missing and try to install that.

If you are getting a message that yum itself is the missing module then you probably installed it incorreclty (or installed the source rpm using make/make install). If possible, find a prebuilt rpm that will work for your system like one from Fedora or CentOS. Or, you can download the srpm and do a

rpmbuild --rebuild yum*.src.rpm

cavaly
09-10-2008, 23:46
hình như Redhat 9.0 rất được ra đời rất lâu thì phải
kiếm Fedora mà dùng

Maxx
14-10-2008, 10:14
Hiện mình đang gặp problem với yum trên Redhat, có bạn nào biết xin giúp đỡ.
Yum bị lỗi như sau:

[root@localhost a]# yum
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

No module named yum

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.2.2 (#1, Feb 24 2003, 19:13:11)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-4)]

If you cannot solve this problem yourself, please go to
the yum faq at:
http://wiki.linux.duke.edu/YumFaq


Mình đã thử nhiều cách rồi nhưng bó tay, mong các bạn giúp mình!!!

package có ở đây nè bạn http://yum.baseurl.org/download/3.2/
down về cài lại thử xem nhé
#rpm --rebuild yum-3.2.19-0.src.rpm
#rpm -Uvh /path/yum.***.rpm nhé