Sudo yum seems to fail on CentOS, but works fine after sudo -i
Posted
by Aron Rotteveel
on Server Fault
See other posts from Server Fault
or by Aron Rotteveel
Published on 2010-04-27T15:31:16Z
Indexed on
2010/04/27
15:34 UTC
Read the original article
Hit count: 806
I am currently having some trouble with yum through sudo. For some reason, it does not seem to work:
aron@graviton [/var/log]# sudo yum clean all
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
/usr/lib64/python2.4/lib-dynload/datetime.so: failed to map segment from shared object: Cannot allocate memory
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:37)
[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
The strange thing, however, is that it works fine when I gain root privileges through sudo -i
first.
Any ideas what might be causing this problem?
© Server Fault or respective owner