harinath Posted August 25, 2009 Share Posted August 25, 2009 Hi Guys here I am facing problem with YUM since weeks ago when I give yum install http* Traceback (most recent call last): File "/usr/bin/yum", line 28, in <module> import yummain File "/usr/share/yum-cli/yummain.py", line 75 base = cli.YumBaseCli() ^ SyntaxError: invalid syntax this is output I am getting,please can anybody help in this issue,needed urgent,please reply as soon as possible Quote Link to comment https://forums.phpfreaks.com/topic/171774-problem-with-yum/ Share on other sites More sharing options...
trq Posted August 25, 2009 Share Posted August 25, 2009 Have you tried using the complete name of the package you are trying to install instead of using shell expansion? Quote Link to comment https://forums.phpfreaks.com/topic/171774-problem-with-yum/#findComment-905761 Share on other sites More sharing options...
harinath Posted August 26, 2009 Author Share Posted August 26, 2009 I used the complete name of the package but it throwing the same error Quote Link to comment https://forums.phpfreaks.com/topic/171774-problem-with-yum/#findComment-906403 Share on other sites More sharing options...
guyfromfl Posted August 27, 2009 Share Posted August 27, 2009 yum only gives you packages for the distro you have plus i think the previous 2. so if you are using distro 7 but latest is 10 you cant get anything through yum any more. Quote Link to comment https://forums.phpfreaks.com/topic/171774-problem-with-yum/#findComment-907293 Share on other sites More sharing options...
steviewdr Posted August 27, 2009 Share Posted August 27, 2009 I wonder could you use rpm to remove and reinstall yum. -steve Quote Link to comment https://forums.phpfreaks.com/topic/171774-problem-with-yum/#findComment-907836 Share on other sites More sharing options...
trq Posted August 27, 2009 Share Posted August 27, 2009 I wonder could you use rpm to remove and reinstall yum. -steve Yeah, I think that might be the go. Looks like your yum might be broken if its generating syntax errors. Quote Link to comment https://forums.phpfreaks.com/topic/171774-problem-with-yum/#findComment-907950 Share on other sites More sharing options...
harinath Posted August 28, 2009 Author Share Posted August 28, 2009 please tell me again how to reinstall yum Quote Link to comment https://forums.phpfreaks.com/topic/171774-problem-with-yum/#findComment-908106 Share on other sites More sharing options...
harinath Posted August 28, 2009 Author Share Posted August 28, 2009 but i have to remove my older one and again I have to install yum Quote Link to comment https://forums.phpfreaks.com/topic/171774-problem-with-yum/#findComment-908107 Share on other sites More sharing options...
steviewdr Posted August 31, 2009 Share Posted August 31, 2009 Your going to have to do some googling, reading & learning. rpm -qa Shows all listed installed packages. rpm -qa | grep yum Shows all yum packages installed. Your going to have to search and download a rpm package for either yum (if you want to try and fix it) or httpd. (RPMs available on http://dries.ulyssis.org/rpm/packages/index.html and other places too). Read: http://www.rpm.org/max-rpm/ -steve Quote Link to comment https://forums.phpfreaks.com/topic/171774-problem-with-yum/#findComment-909818 Share on other sites More sharing options...
harinath Posted September 1, 2009 Author Share Posted September 1, 2009 Thanks Steve for telling me a 2 different commands and give me a links to read and install different packages,but you did not get my actual problem,here the problem is when I am giving yum install httpd or httpd* it is showing the error as Traceback (most recent call last): File "/usr/bin/yum", line 28, in <module> import yummain File "/usr/share/yum-cli/yummain.py", line 75 base = cli.YumBaseCli() ^ SyntaxError: invalid syntax [root@localhost harinath]# yum install samba* Traceback (most recent call last): File "/usr/bin/yum", line 28, in <module> import yummain File "/usr/share/yum-cli/yummain.py", line 75 base = cli.YumBaseCli() ^ SyntaxError: invalid syntax Please let me know once you solved my problem Quote Link to comment https://forums.phpfreaks.com/topic/171774-problem-with-yum/#findComment-910058 Share on other sites More sharing options...
trq Posted September 1, 2009 Share Posted September 1, 2009 Please let me know once you solved my problem Pfff. Seems you've had all the suggestions your going to get. Quote Link to comment https://forums.phpfreaks.com/topic/171774-problem-with-yum/#findComment-910097 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.