My Oracle Support Banner

Oracle Linux: Unable to Perform Yum Update because of distroverpkg Issue (Doc ID 2655176.1)

Last updated on APRIL 15, 2020

Applies to:

Linux OS - Version Oracle Linux 6.10 to Oracle Linux 7.7 [Release OL6U10 to OL7U7]
Linux x86-64
Note: this error most likely cause of OS migration from RHEL to Oracle Linux.

Symptoms

When attempting to update yum, server is experiencing an error:

[root@hostname ~]# yum update
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 298, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 115, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 229, in getOptionsConfig
self.conf
File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 911, in
conf = property(fget=lambda self: self._getConfig(),
File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 300, in _getConfig
startupconf = config.readStartupConfig(fn, root)
File "/usr/lib/python2.6/site-packages/yum/config.py", line 900, in readStartupConfig
startupconf.releasever = _getsysver(startupconf.installroot, startupconf.distroverpkg)
File "/usr/lib/python2.6/site-packages/yum/config.py", line 1051, in _getsysver
hdr = idx.next()
StopIteration
[root@hostname ~]#

 

Changes

 No changes has been made to the system prior to the issue.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.