O problema é resolvido ao instalar o pacote rpm do Python da seguinte forma:
rpm -i --forced python-2.6.6-36.el6.i686.rpm
Isso traz de volta todos os módulos do Python ausentes para que o Python esteja operacional novamente.
Eu tenho um problema ao tentar atualizar o yum. Isso me dá um erro:
After running yum update
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
No module named base64
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, Oct 12 2012, 14:36:13)
[GCC 4.4.6 20120305 (Red Hat 4.4.6-4)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/Faq
Eu posso ter acidentalmente excluído o módulo base64 quando estava tentando remover outro módulo.
Existe uma maneira de reinstalar o módulo base64?
Existe uma maneira de reinstalar o python2.6 para o Red Hat?
Observe que o módulo base64 está ausente e, portanto, yum
não funciona.
(Sugestão do Nikolay) Tentei instalar os pacotes RPM:
python-devel-2.6.6-36.el6.i686.rpm
python-libs-2.6.6-36.el6.i686.rpm
rpm -ivh --force *
warning: python-devel-2.6.6-36.el6.i686.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
warning: python-libs-2.6.6-36.el6.i686.rpm: Header V4 DSA/SHA1 Signature, key ID 192a7d7d: NOKEY
Preparing... ########################################### [100%]
1:python-libs ########################################### [ 50%]
2:python-devel
########################################### [100%]
python:
import urllib2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.6/urllib2.py", line 92, in <module>
import base64
ImportError: No module named base64
Ainda mostrando base64, falta um módulo python.