in /var/log/dnf.log :

Traceback (most recent call last):
 File "/usr/lib/python3.6/site-packages/dnf/repo.py", line 573, in load
   ret = self._repo.load()
 File "/usr/lib64/python3.6/site-packages/libdnf/repo.py", line 397, in load
   return _repo.Repo_load(self)
RuntimeError: Unknown option

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
 File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 67, in main
   return _main(base, args, cli_class, option_parser_class)
 File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 106, in _main
   return cli_run(cli, base)
 File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 122, in cli_run
   cli.run()
 File "/usr/lib/python3.6/site-packages/dnf/cli/cli.py", line 1038, in run
   self._process_demands()
 File "/usr/lib/python3.6/site-packages/dnf/cli/cli.py", line 741, in _process_demands
   load_available_repos=self.demands.available_repos)
 File "/usr/lib/python3.6/site-packages/dnf/base.py", line 405, in fill_sack
   self._add_repo_to_sack(r)
 File "/usr/lib/python3.6/site-packages/dnf/base.py", line 140, in _add_repo_to_sack
   repo.load()
 File "/usr/lib/python3.6/site-packages/dnf/repo.py", line 580, in load
   raise dnf.exceptions.RepoError(str(e))
dnf.exceptions.RepoError: Unknown option
2024-02-27T17:10:37+0000 CRITICAL Error: Unknown option

Missing packages:

python3-librepo

librepo

Install/update:

wget https://dl.rockylinux.org/pub/rocky/8/BaseOS/x86_64/os/Packages/l/librepo-1.14.2-4.el8.x86_64.rpm

wget https://dl.rockylinux.org/pub/rocky/8/BaseOS/x86_64/os/Packages/p/python3-librepo-1.14.2-4.el8.x86_64.rpm

rpm -U python3-librepo-1.14.2-4.el8.x86_64.rpm  librepo-1.14.2-4.el8.x86_64.rpm