I’m preparing to upgrade from FC27 to 30 (I know I’m a bit behind, been kinda lazy but never mind that!) and I am just checking my packages using dnf and I’m getting python errors! I am unable to successfully run any command in dnf, making upgrading my machine (and managing packages at all!) practically impossible. I’d like some help!
This is the error:
$ dnf upgrade
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.6/site-packages/dnf/cli/main.py", line 179, 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 1013, in run
self._process_demands()
File "/usr/lib/python3.6/site-packages/dnf/cli/cli.py", line 766, in _process_demands
load_available_repos=self.demands.available_repos)
File "/usr/lib/python3.6/site-packages/dnf/base.py", line 353, in fill_sack
self._add_repo_to_sack(r)
File "/usr/lib/python3.6/site-packages/dnf/base.py", line 122, in _add_repo_to_sack
hrepo.filelists_fn = repo._filelists_fn
TypeError: Expected a string or a unicode object
and for your information, my installed versions:
$ rpm -q dnf python3-dnf python3 python3-rpm
dnf-2.7.5-2.fc27.noarch
python3-dnf-2.7.5-2.fc27.noarch
textpython3-3.6.6-1.fc27.x86_64
python3-rpm-4.14.2.1-1.fc27.x86_64
Any advice, barring a fresh reinstall of the OS? I used the Fedora Server spin, as this is a server I ssh into. I’d prefer not to wipe everything, there’s a lot of software and configuration on this machine I want to keep intact as it’s used daily.