Dnf 有 utf-8 问题

Dnf 有 utf-8 问题

我遇到了 dnf 问题。具体来说:我无法再更新我的盒子了。

# dnf update
Last metadata expiration check: 0:02:11 ago on Thu Jun  2 14:32:01 2016.
Dependencies resolved.
Traceback (most recent call last):
  File "/bin/dnf", line 58, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python3.4/site-packages/dnf/cli/main.py", line 174, in user_main
    errcode = main(args)
  File "/usr/lib/python3.4/site-packages/dnf/cli/main.py", line 60, in main
    return _main(base, args)
  File "/usr/lib/python3.4/site-packages/dnf/cli/main.py", line 120, in _main
    ret = resolving(cli, base)
  File "/usr/lib/python3.4/site-packages/dnf/cli/main.py", line 142, in resolving
    base._plugins.run_resolved()
  File "/usr/lib/python3.4/site-packages/dnf/plugin.py", line 82, in fn
    dnf.util.mapall(operator.methodcaller(method), self.plugins)
  File "/usr/lib/python3.4/site-packages/dnf/util.py", line 183, in mapall
    return list(map(fn, *seq))
  File "/usr/lib/python3.4/site-packages/dnf-plugins/protected_packages.py", line 66, in resolved
    protected = set(get_protected_names())
  File "/usr/lib/python3.4/site-packages/dnf-plugins/protected_packages.py", line 38, in get_protected_names
    protected.extend(map(str.strip, conf_file.readlines()))
  File "/usr/lib64/python3.4/codecs.py", line 319, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xed in position 0: invalid continuation byte

里面/etc/dnf/protected.d/

  • dnf.conf 中仅包含字符串“dnf”。
  • rpmfusion-免费-发布-23.noarch.rpm
  • rpmfusion-nonfree-release-23.noarch.rpm

/etc/yum/protected.d/ there is justsystemd.conf` 里面有“systemd”。

我几乎尝试了所有方法: - 逐个删除每个存储库并清理所有内容 - 在官方 redhat 平台上触发错误以进行错误报告(他们说这是一个将在下一个 dnf-2 版本中修复的错误。

你有什么新想法吗?

相关内容