LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 06-16-2013, 09:23 AM   #1
nilanjanpal
LQ Newbie
 
Registered: Jun 2013
Posts: 3

Rep: Reputation: Disabled
Unhappy Error while trying install anything or update my system


I am using the below command --

Code:
yum update
I am getting the below set of error --

Code:
[root@localhost nilanjanpal]# yum update
Loaded plugins: langpacks, presto, refresh-packagekit
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in <module>
    yummain.user_main(sys.argv[1:], exit_code=True)
  File "/usr/share/yum-cli/yummain.py", line 319, in user_main
    errcode = main(args)
  File "/usr/share/yum-cli/yummain.py", line 144, in main
    result, resultmsgs = base.doCommands()
  File "/usr/share/yum-cli/cli.py", line 485, in doCommands
    return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
  File "/usr/share/yum-cli/yumcommands.py", line 405, in doCommand
    return base.updatePkgs(extcmds, update_to=(basecmd == 'update-to'))
  File "/usr/share/yum-cli/cli.py", line 899, in updatePkgs
    self.update()
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 4732, in update
    updates = self.up.getUpdatesTuples()
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1033, in <lambda>
    up = property(fget=lambda self: self._getUpdates(),
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 840, in _getUpdates
    self._up = rpmUtils.updates.Updates(self.rpmdb.simplePkgList(), self.pkgSack.simplePkgList())
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1014, in <lambda>
    pkgSack = property(fget=lambda self: self._getSacks(),
  File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 780, in _getSacks
    self.repos.populateSack(which=repos)
  File "/usr/lib/python2.7/site-packages/yum/repos.py", line 313, in populateSack
    self.doSetup()
  File "/usr/lib/python2.7/site-packages/yum/repos.py", line 138, in doSetup
    self.retrieveAllMD()
  File "/usr/lib/python2.7/site-packages/yum/repos.py", line 84, in retrieveAllMD
    dl = repo._async and repo._commonLoadRepoXML(repo)
  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 1370, in _commonLoadRepoXML
    result = self._getFileRepoXML(local, text)
  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 1148, in _getFileRepoXML
    size=102400) # setting max size as 100K
  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 950, in _getFile
    result = self.grab.urlgrab(misc.to_utf8(relative), local,
  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 626, in <lambda>
    grab = property(lambda self: self._getgrab())
  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 621, in _getgrab
    self._setupGrab()
  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 586, in _setupGrab
    urls = self.urls
  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 806, in <lambda>
    urls = property(fget=lambda self: self._geturls(),
  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 803, in _geturls
    self._baseurlSetup()
  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 769, in _baseurlSetup
    self.check()
  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 513, in check
    'Cannot find a valid baseurl for repo: %s' % self.ui_id
  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 387, in _ui_id
    if '$releasever' in val:
TypeError: argument of type 'Undefined' is not iterable
[root@localhost nilanjanpal]#
Please help
 
Old 06-16-2013, 05:06 PM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,647

Rep: Reputation: 2575Reputation: 2575Reputation: 2575Reputation: 2575Reputation: 2575Reputation: 2575Reputation: 2575Reputation: 2575Reputation: 2575Reputation: 2575Reputation: 2575
Quote:
Originally Posted by nilanjanpal View Post
I am using the below command --
Code:
yum update
I am getting the below set of error --
Code:
[root@localhost nilanjanpal]# yum update
Loaded plugins: langpacks, presto, refresh-packagekit
Traceback (most recent call last):
  File "/usr/bin/yum", line 29, in <module>
[root@localhost nilanjanpal]#
Please help
Not much we can tell you, since you don't tell us what version/distro of Linux you're using...assuming Fedora, but what version?? Has this ever worked? Anything change recently? New installation? Any recent system problems?

A quick Google for the error leads you to:
https://bugzilla.redhat.com/show_bug.cgi?id=870691

...a reported bug in Fedora 17 and 18, which still shows as open. You can try "yum clean all"...and this page on the Fedora forums has some suggestions too.
http://forums.fedoraforum.org/showthread.php?t=271741
 
Old 06-16-2013, 05:17 PM   #3
John VV
Guru
 
Registered: Aug 2005
Posts: 12,956

Rep: Reputation: 1722Reputation: 1722Reputation: 1722Reputation: 1722Reputation: 1722Reputation: 1722Reputation: 1722Reputation: 1722Reputation: 1722Reputation: 1722Reputation: 1722
Without knowing the needed information ( as per above )
This looks like a python issue
did you replace the default ( and REQUIRED) version of python with a different version

yum NEEDS the exact version of python that is in the base repo
 
Old 06-16-2013, 10:42 PM   #4
nilanjanpal
LQ Newbie
 
Registered: Jun 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Sorry about that guys.

Mine is Fedora 18. I tried to install google chrome through terminal and faced the issue after that.

I have tried the command

Code:
 yum clean all
but it doesn't change anything. I get the same result after that as well.

How do I change python? Can you please tell me that.
 
Old 06-17-2013, 12:55 AM   #5
John VV
Guru
 
Registered: Aug 2005
Posts: 12,956

Rep: Reputation: 1722Reputation: 1722Reputation: 1722Reputation: 1722Reputation: 1722Reputation: 1722Reputation: 1722Reputation: 1722Reputation: 1722Reputation: 1722Reputation: 1722
Just how did you install googles "chrome" ?

Did you fallow Mjmwired's guide
http://www.mjmwired.net/resources/mj...18.html#chrome

( this guide IS THE FIRST one listed in the "guide" section of the "fedoraforum.org" )
 
Old 06-17-2013, 08:54 AM   #6
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,647

Rep: Reputation: 2575Reputation: 2575Reputation: 2575Reputation: 2575Reputation: 2575Reputation: 2575Reputation: 2575Reputation: 2575Reputation: 2575Reputation: 2575Reputation: 2575
Quote:
Originally Posted by nilanjanpal View Post
Sorry about that guys.
Mine is Fedora 18. I tried to install google chrome through terminal and faced the issue after that. I have tried the command
Code:
 yum clean all
but it doesn't change anything. I get the same result after that as well.
Did you follow the suggestions in the second link I posted?? What were the results of that?
Quote:
How do I change python? Can you please tell me that.
Well, unless you changed python in the first place, you don't need to change it back. Like JohnVV asked, HOW did you install Chrome?? If Chrome installation did change python, then you're in a difference place.
 
Old 06-17-2013, 01:47 PM   #7
nilanjanpal
LQ Newbie
 
Registered: Jun 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Smile

I was able to solve the issue today.

Unfortunately while trying to install google chrome as per the instructions from various website .. I wrongly created a repo file .... once I deleted the file ... it worked ..

I have just installed cinnamon desktop using the yum command.

Thanks a lot to all of you for your help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Error when update my BSD operating system linwhwylb *BSD 2 10-06-2010 06:16 AM
System update not working, Error note: Lola Kews Linux - Desktop 6 05-05-2009 12:45 PM
error message where i tried update a system debianlam Linux - Software 1 05-09-2008 06:45 AM
System update in 10.1 error leupi Suse/Novell 1 08-01-2006 11:17 PM
yum error, can't update system simeandrews Fedora 8 09-01-2005 11:35 AM


All times are GMT -5. The time now is 05:39 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration