LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (http://www.linuxquestions.org/questions/fedora-35/)
-   -   Error while trying install anything or update my system (http://www.linuxquestions.org/questions/fedora-35/error-while-trying-install-anything-or-update-my-system-4175466219/)

nilanjanpal 06-16-2013 09:23 AM

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

TB0ne 06-16-2013 05:06 PM

Quote:

Originally Posted by nilanjanpal (Post 4972891)
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

John VV 06-16-2013 05:17 PM

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

nilanjanpal 06-16-2013 10:42 PM

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.

John VV 06-17-2013 12:55 AM

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" )

TB0ne 06-17-2013 08:54 AM

Quote:

Originally Posted by nilanjanpal (Post 4973182)
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.

nilanjanpal 06-17-2013 01:47 PM

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.


All times are GMT -5. The time now is 07:22 AM.