My Oracle Support Banner

Yum Update Fails With Message "AttributeError: 'RhnRepo' Object Has No Attribute '_retry_no_cache'" (Doc ID 2369042.1)

Last updated on JULY 05, 2020

Applies to:

Oracle Cloud Infrastructure - Version N/A and later
Linux OS - Version Oracle Linux 7.0 and later
Linux x86-64


After successfully registering an Oracle Linux 7 system to ULN,  the yum update fails with the following message.

# yum update
Loaded plugins: langpacks, rhnplugin, ulninfo
This system is receiving updates from ULN.
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/", line 365, in user_main
errcode = main(args)
File "/usr/share/yum-cli/", line 174, in main
result, resultmsgs = base.doCommands()
File "/usr/share/yum-cli/", line 573, in doCommands
return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
File "/usr/share/yum-cli/", line 2149, in doCommand
File "/usr/lib/python2.7/site-packages/yum/", line 383, in populateSack
sack.populate(repo, mdtype, callback, cacheonly)
File "/usr/lib/python2.7/site-packages/yum/", line 224, in populate
if self._check_db_version(repo, mydbtype):
File "/usr/lib/python2.7/site-packages/yum/", line 316, in _check_db_version
return repo._check_db_version(mdtype)
File "/usr/lib/python2.7/site-packages/yum/", line 1484, in _check_db_version
repoXML = self.repoXML
File "/usr/lib/python2.7/site-packages/yum/", line 1670, in <lambda>
repoXML = property(fget=lambda self: self._getRepoXML(),
File "/usr/share/yum-plugins/", line 578, in _getRepoXML
return YumRepository._getRepoXML(self)
File "/usr/lib/python2.7/site-packages/yum/", line 1666, in _getRepoXML
File "/usr/lib/python2.7/site-packages/yum/", line 1657, in _loadRepoXML
return self._groupLoadRepoXML(text, self._mdpolicy2mdtypes())
File "/usr/lib/python2.7/site-packages/yum/", line 1631, in _groupLoadRepoXML
if self._commonLoadRepoXML(text):
File "/usr/lib/python2.7/site-packages/yum/", line 1456, in _commonLoadRepoXML
result = self._getFileRepoXML(local, text)
File "/usr/lib/python2.7/site-packages/yum/", line 1234, in _getFileRepoXML
size=102400) # setting max size as 100K
File "/usr/share/yum-plugins/", line 390, in _getFile
start, end, copy_local, checkfunc, text, reget, cache, size)
File "/usr/share/yum-plugins/", line 494, in _noExceptionWrappingGet
AttributeError: 'RhnRepo' object has no attribute '_retry_no_cache'


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

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