LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 01:54 PM   #1
James0806
Member
 
Registered: Jul 2014
Posts: 41

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, 02:16 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
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, 02:23 PM   #3
James0806
Member
 
Registered: Jul 2014
Posts: 41

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, 02:45 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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, 03:07 PM   #5
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

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

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, 03:34 PM   #7
James0806
Member
 
Registered: Jul 2014
Posts: 41

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, 03:58 PM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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, 04:43 PM   #9
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
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, 04:55 PM   #10
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
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



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

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

All times are GMT -5. The time now is 10:03 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