Quote:
Originally Posted by knitinfk
Hi,
I have added two spaces before line 30 and when i execute yum update i get the following error..
[root@localhost bin]# yum update
Traceback (most recent call last):
File "/bin/yum", line 22, in <module>
import yummain
File "/usr/share/yum/yummain.py", line 22, in <module>
import clientStuff
File "/usr/share/yum/clientStuff.py", line 18, in <module>
import rpm
ImportError: No module named rpm
[root@localhost bin]# vi /usr/bin/yum
[root@localhost bin]# yum update
File "/bin/yum", line 22
import yummain
^
IndentationError: unexpected indent
|
Now it seems line 22 is indented, but it mustn't be. Unfortunately I can't see what you did in your vi session; it must have happened there.
This is easy to repair; just remove the indentation.
Regarding the missing rpm module, I am afraid I don't know how this package disappeared and how to get it back. I think your yum is fairly broken. If you want to try reinstalling it, and if you have an installation CD ready, use rpm to install the yum rpm and all the dependencies.