Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
[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: ''
[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?????
[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
[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: ''
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.