dnf 给出了一个curl 句柄错误

dnf 给出了一个curl 句柄错误

先决条件:

  • Linux:约克托Linux
  • 软件包-rpm
  • dnf已安装

我的目标是使用 dnf 包管理器,但是当我尝试在 dnf 上运行每个选项时,它不断向我抛出如下 python 错误。

Traceback (most recent call last):
  File "/usr/bin/dnf", line 58, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib64/python3.5/site-packages/dnf/cli/main.py", line 179, in user_main
    errcode = main(args)
  File "/usr/lib64/python3.5/site-packages/dnf/cli/main.py", line 64, in main
    return _main(base, args, cli_class, option_parser_class)
  File "/usr/lib64/python3.5/site-packages/dnf/cli/main.py", line 99, in _main
    return cli_run(cli, base)
  File "/usr/lib64/python3.5/site-packages/dnf/cli/main.py", line 115, in cli_run
    cli.run()
  File "/usr/lib64/python3.5/site-packages/dnf/cli/cli.py", line 1010, in run
    self._process_demands()
  File "/usr/lib64/python3.5/site-packages/dnf/cli/cli.py", line 763, in _process_demands
    load_available_repos=self.demands.available_repos)
  File "/usr/lib64/python3.5/site-packages/dnf/base.py", line 353, in fill_sack
    self._add_repo_to_sack(r)
  File "/usr/lib64/python3.5/site-packages/dnf/base.py", line 118, in _add_repo_to_sack
    repo.load()
  File "/usr/lib64/python3.5/site-packages/dnf/repo.py", line 916, in load
    handle = self._handle_new_remote(tmpdir)
  File "/usr/lib64/python3.5/site-packages/dnf/repo.py", line 744, in _handle_new_remote
    h.setopt(librepo.LRO_PROXYAUTH, True)
  File "/usr/lib64/python3.5/site-packages/librepo/__init__.py", line 1435, in setopt
    _librepo.Handle.setopt(self, option, val)
librepo.LibrepoException: (8, 'curl error: Error', 'An Curl handle error')

如何解决这个问题?谢谢

相关内容