LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-29-2016, 02:54 PM   #1
James0806
Member
 
Registered: Jul 2014
Posts: 38

Rep: Reputation: Disabled
Yum issue on rhel7


[root@VM]# yum upgrade
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 367, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 174, in main
result, resultmsgs = base.doCommands()
File "/usr/share/yum-cli/cli.py", line 571, in doCommands
return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
File "/usr/share/yum-cli/yumcommands.py", line 1794, in doCommand
ret = base.updatePkgs(extcmds, update_to=(basecmd == 'upgrade-to'))
File "/usr/share/yum-cli/cli.py", line 1013, in updatePkgs
self.update()
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 5096, in update
for ievgrp in self.igroups.environments:
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1111, in <lambda>
igroups = property(fget=lambda self: self._getIGroups(),
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1071, in _getIGroups
self._igroups = yum.igroups.InstalledGroups(db_path=pdb_path)
File "/usr/lib/python2.7/site-packages/yum/igroups.py", line 102, in __init__
self._read_pkg_grps(db_path)
File "/usr/lib/python2.7/site-packages/yum/igroups.py", line 114, in _read_pkg_grps
ver = int(_read_str(fo))
ValueError: invalid literal for int() with base 10: ''
 
Old 03-29-2016, 03:16 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 22,301

Rep: Reputation: 6003Reputation: 6003Reputation: 6003Reputation: 6003Reputation: 6003Reputation: 6003Reputation: 6003Reputation: 6003Reputation: 6003Reputation: 6003Reputation: 6003
Quote:
Originally Posted by James0806 View Post
[root@VM]# yum upgrade
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 367, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 174, in main
result, resultmsgs = base.doCommands()
File "/usr/share/yum-cli/cli.py", line 571, in doCommands
return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
File "/usr/share/yum-cli/yumcommands.py", line 1794, in doCommand
ret = base.updatePkgs(extcmds, update_to=(basecmd == 'upgrade-to'))
File "/usr/share/yum-cli/cli.py", line 1013, in updatePkgs
self.update()
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 5096, in update
for ievgrp in self.igroups.environments:
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1111, in <lambda>
igroups = property(fget=lambda self: self._getIGroups(),
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1071, in _getIGroups
self._igroups = yum.igroups.InstalledGroups(db_path=pdb_path)
File "/usr/lib/python2.7/site-packages/yum/igroups.py", line 102, in __init__
self._read_pkg_grps(db_path)
File "/usr/lib/python2.7/site-packages/yum/igroups.py", line 114, in _read_pkg_grps
ver = int(_read_str(fo))
ValueError: invalid literal for int() with base 10: ''
All you've posted is an error..you have provided NO useful details that would let anyone help you. Read the "Question Guidelines" link in my posting signature. After being here for two years now, and posting several threads (where you've done the same thing), or have not followed up at all, there's little we can do to help you. You haven't said if this is a new installation, was working or not, anything that's changed recently, etc.

You're using RHEL7...call Red Hat for help, since you're PAYING FOR RHEL, RIGHT?????
 
Old 03-29-2016, 03:23 PM   #3
James0806
Member
 
Registered: Jul 2014
Posts: 38

Original Poster
Rep: Reputation: Disabled
Yum was working fine till yesterday when trying to install a package or upgrading yum it is throwing error...as mentioned above
 
Old 03-29-2016, 03:45 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,464

Rep: Reputation: 2605Reputation: 2605Reputation: 2605Reputation: 2605Reputation: 2605Reputation: 2605Reputation: 2605Reputation: 2605Reputation: 2605Reputation: 2605Reputation: 2605
run update and NOT upgrade

there is nothing for the current rhel7.2 to upgrade to
7.3 is in testing

Quote:
till yesterday when trying to install a package
what packages???

please post the output of these commands

Code:
su -
yum repolist all
----------------
cat /etc/redhat-release
----------------

/*and the full error from */

yum update 


.
 
Old 03-29-2016, 04:07 PM   #5
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137Reputation: 2137
You didn't manually compile/install a new version of python did you?
 
Old 03-29-2016, 04:17 PM   #6
James0806
Member
 
Registered: Jul 2014
Posts: 38

Original Poster
Rep: Reputation: Disabled
[root@VM]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.1 (Maipo)
[root@VM]# yum repolist
repo id repo name status
epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 9,697
epel-source/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 - Source 0
ol7_UEKR3/x86_64 Latest Unbreakable Enterprise Kernel Release 3 for Oracle Linux 7Server (x86_64) 408
ol7_latest/x86_64 Oracle Linux 7Server Latest (x86_64) 13,946
rpmforge RHEL 7Server - RPMforge.net - dag 245
repolist: 24,296

No package of python was installed or compiled recently
 
Old 03-29-2016, 04:34 PM   #7
James0806
Member
 
Registered: Jul 2014
Posts: 38

Original Poster
Rep: Reputation: Disabled
[root@VM]# yum update
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 367, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 174, in main
result, resultmsgs = base.doCommands()
File "/usr/share/yum-cli/cli.py", line 571, in doCommands
return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
File "/usr/share/yum-cli/yumcommands.py", line 499, in doCommand
ret = base.updatePkgs(extcmds, update_to=(basecmd == 'update-to'))
File "/usr/share/yum-cli/cli.py", line 1013, in updatePkgs
self.update()
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 5096, in update
for ievgrp in self.igroups.environments:
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1111, in <lambda>
igroups = property(fget=lambda self: self._getIGroups(),
File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1071, in _getIGroups
self._igroups = yum.igroups.InstalledGroups(db_path=pdb_path)
File "/usr/lib/python2.7/site-packages/yum/igroups.py", line 102, in __init__
self._read_pkg_grps(db_path)
File "/usr/lib/python2.7/site-packages/yum/igroups.py", line 114, in _read_pkg_grps
ver = int(_read_str(fo))
ValueError: invalid literal for int() with base 10: ''
 
Old 03-29-2016, 04:58 PM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,464

Rep: Reputation: 2605Reputation: 2605Reputation: 2605Reputation: 2605Reputation: 2605Reputation: 2605Reputation: 2605Reputation: 2605Reputation: 2605Reputation: 2605Reputation: 2605
ok so you are NOT!!! running redhat ,but Oracle
Code:
ol7_UEKR3/x86_64 Latest Unbreakable Enterprise Kernel Release 3 for Oracle Linux 7Server (x86_64) 408
ol7_latest/x86_64 Oracle Linux 7Server Latest (x86_64) 13,946
i take it you are not aware that "rpmforge" is no more
the site is no longer there, it is a DEAD repo .


and if you have OLD unsupported rpm's from there they WILL cause problems !

uninstall ALL and EVERY rpm that has "rf" in the name


for a list of packages you have to replace
Code:
su -
rpm -qa | grep rf

replace every rf package from your oracle repos

also keep in mind that although epel is normally not a problem it has been in the past
 
Old 03-29-2016, 05:43 PM   #9
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 22,301

Rep: Reputation: 6003Reputation: 6003Reputation: 6003Reputation: 6003Reputation: 6003Reputation: 6003Reputation: 6003Reputation: 6003Reputation: 6003Reputation: 6003Reputation: 6003
Quote:
Originally Posted by James0806 View Post
Yum was working fine till yesterday when trying to install a package or upgrading yum it is throwing error...as mentioned above
Again, you are NOT PROVIDING INFORMATION. If it was working fine until yesterday, then very obviously SOMETHING HAS CHANGED...what was that???

And re-stating your original error message STILL tells us nothing new. Again, are you PAYING FOR RED HAT???? Have you called RHEL support?? RHEL is NOT free. And as JohnVV pointed out, using old repositories isn't a good idea.

What, exactly, are you trying to accomplish??? What changed since it was working until now??? Again, if you're not going to answer our questions or participate in the conversation, there isn't much point in posting.
 
Old 03-29-2016, 05:55 PM   #10
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590Reputation: 3590
Quote:
Originally Posted by John VV View Post
i take it you are not aware that "rpmforge" is no more
the site is no longer there, it is a DEAD repo .
repoforge.org is the new RPMforge, please keep up to date.


Quote:
Originally Posted by John VV View Post
also keep in mind that although epel is normally not a problem it has been in the past
EPEL is one of the Community Approved Repositories so unless you specify I'd say that's scaremongering. In all the years I've never experienced the kind of problems with EPEL I had with like Atrpm.
 
  


Reply

Tags
rhel7


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
[SOLVED] Yum configuration On RHEL7 Ashish Sood Linux - Server 7 03-18-2015 04:47 PM
Unable to install RHEL7 KVM onto RHEL7 desktop redhatprat Red Hat 10 02-18-2015 04:44 AM
yum repolist issue (yum not working on Centos 5) sanjay2004 Programming 10 02-26-2014 06:57 AM
[SOLVED] Packages and Updates - Getting YUM onto RHEL7.x infinity386@gmail.com Linux - Software 7 11-12-2012 05:34 AM
yum install flash ... yum: command not found ... which yum ... /usr/bin/yum tg3793 Fedora 8 04-13-2011 12:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:21 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration