使用yum安装工具的时候(有yum源且正确),一直报错Error: No handle specified,求解

2024-03-19T14:55:10+0800 INFO — logging initialized —
2024-03-19T14:55:10+0800 DDEBUG timer: config: 1 ms
2024-03-19T14:55:10+0800 DEBUG Loaded plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, groups-manager, license-manager, needs-restarting, playground, repoclosure, repodiff, repograph, repomanage, reposync
2024-03-19T14:55:10+0800 DEBUG YUM version: 4.10.0
2024-03-19T14:55:10+0800 DDEBUG Command: yum -y install telnet
2024-03-19T14:55:10+0800 DDEBUG Installroot: /
2024-03-19T14:55:10+0800 DDEBUG Releasever: 22.10%{bclinux_patch_level}
2024-03-19T14:55:10+0800 DEBUG cachedir: /var/cache/dnf
2024-03-19T14:55:10+0800 DDEBUG Base command: install
2024-03-19T14:55:10+0800 DDEBUG Extra commands: [‘-y’, ‘install’, ‘telnet’]
2024-03-19T14:55:10+0800 ERROR Unable to connect to Registration Management Service
2024-03-19T14:55:10+0800 DEBUG User-Agent: constructed: ‘libdnf (BigCloud Enterprise Linux 22.10; generic; Linux.x86_64)’
2024-03-19T14:55:10+0800 DDEBUG Cleaning up.
2024-03-19T14:55:10+0800 SUBDEBUG
Traceback (most recent call last):
File “/usr/lib/python3.9/site-packages/dnf/repo.py”, line 573, in load
ret = self._repo.load()
File “/usr/lib64/python3.9/site-packages/libdnf/repo.py”, line 331, in load
return _repo.Repo_load(self)
RuntimeError: No handle specified

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/lib/python3.9/site-packages/dnf/cli/main.py”, line 67, in main
return _main(base, args, cli_class, option_parser_class)
File “/usr/lib/python3.9/site-packages/dnf/cli/main.py”, line 106, in _main
return cli_run(cli, base)
File “/usr/lib/python3.9/site-packages/dnf/cli/main.py”, line 122, in cli_run
cli.run()
File “/usr/lib/python3.9/site-packages/dnf/cli/cli.py”, line 1038, in run
self._process_demands()
File “/usr/lib/python3.9/site-packages/dnf/cli/cli.py”, line 739, in _process_demands
self.base.fill_sack(
File “/usr/lib/python3.9/site-packages/dnf/base.py”, line 399, in fill_sack
self._add_repo_to_sack(r)
File “/usr/lib/python3.9/site-packages/dnf/base.py”, line 139, in _add_repo_to_sack
repo.load()
File “/usr/lib/python3.9/site-packages/dnf/repo.py”, line 580, in load
raise dnf.exceptions.RepoError(str(e))
dnf.exceptions.RepoError: No handle specified
2024-03-19T14:55:10+0800 CRITICAL Error: No handle specified

yum clean all
yum makecache
清理下源,然后生成个缓存看是否正常,尝试安装别的包看是否也会出现同样的问题