LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-21-2015, 02:27 AM   #16
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002

Quote:
Originally Posted by knitinfk View Post
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
yum working fine on server and ftp is working f9 but not able to config yum on client joj123 Red Hat 12 01-13-2015 06:03 PM
Yum not working at all due to /usr/bin/yum syntax error aheusdens Linux - General 1 04-09-2010 04:15 PM
SQUINT throwing error's ... sco1984 SUSE / openSUSE 1 07-23-2008 11:46 PM
RPM Command not working, throwing undefined symbol error racurtis Linux - Software 2 04-03-2007 01:19 PM
SuSE YOU - throwing error neocookie Linux - Software 3 10-25-2004 02:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration