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?
sudo -sinstead ofsudo -i? – ℝaphink Feb 21 '12 at 13:19sudo -iis not the problem. When executing the commandsudo -s yum clean all, the problem persists, though. – Aron Rotteveel Feb 21 '12 at 14:06sudo -s, I meant to dosudo -s; yum clean all. Did you try that? – ℝaphink Feb 21 '12 at 14:09sudo -s | yum clean all(which I think is what you ment), it does not work and waits for me to break. – Aron Rotteveel Feb 22 '12 at 8:33