RedHat 8.2 yum update fails
The Issue :
[root@localhost ~]# yum update
Updating Subscription Management repositories.
/usr/lib64/python3.6/site-packages/hawkey/__init__.py:348: DeprecationWarning: The class hawkey.Repo is deprecated. Please use dnf.repo.Repo instead. The class will be removed on 2019-12-31.
warnings.warn(msg, DeprecationWarning)
..
..
..
Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs) 3.5 MB/s | 8.1 MB 00:02
Traceback (most recent call last):
File "/usr/bin/yum", line 58, in <module>
main.user_main(sys.argv[1:], exit_code=True)
File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 193, in user_main
errcode = main(args)
File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 64, in main
return _main(base, args, cli_class, option_parser_class)
File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 99, in _main
return cli_run(cli, base)
File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 115, in cli_run
cli.run()
File "/usr/lib/python3.6/site-packages/dnf/cli/cli.py", line 1124, in run
self._process_demands()
File "/usr/lib/python3.6/site-packages/dnf/cli/cli.py", line 828, in _process_demands
load_available_repos=self.demands.available_repos)
File "/usr/lib/python3.6/site-packages/dnf/base.py", line 400, in fill_sack
self._add_repo_to_sack(r)
File "/usr/lib/python3.6/site-packages/dnf/base.py", line 137, in _add_repo_to_sack
repo._repo.initHyRepo(hrepo)
File "/usr/lib64/python3.6/site-packages/libdnf/repo.py", line 359, in <lambda>
__getattr__ = lambda self, name: _swig_getattr(self, Repo, name)
File "/usr/lib64/python3.6/site-packages/libdnf/repo.py", line 80, in _swig_getattr
raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name))
AttributeError: 'Repo' object has no attribute 'initHyRepo'