Tonight I installed Fedora 27 and after I ran a dnf upgrade to update
all of my packages, I tried to run the dnf group list command after
reboot and I was given the following errors:
Code:
# dnf group list
Last metadata expiration check: 0:42:24 ago on Tue 23 Jan 2018 11:43:53 PM EST.
Traceback (most recent call last):
File "/usr/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 1014, in run
return self.command.run()
File "/usr/lib/python3.6/site-packages/dnf/cli/commands/group.py", line 375, in run
self._grp_setup()
File "/usr/lib/python3.6/site-packages/dnf/cli/commands/group.py", line 108, in _grp_setup
self.base.read_comps(arch_filter=True)
File "/usr/lib/python3.6/site-packages/dnf/base.py", line 550, in read_comps
self._comps._add_from_xml_filename(decompressed)
File "/usr/lib/python3.6/site-packages/dnf/comps.py", line 328, in _add_from_xml_filename
ret = comps.fromxml_f(fn)
_libpycomps.ParserError: Fatal parser error
yum group list gives me the same error as well.. Any ideas on
what I should do to fix this? It is strange that this distro's package
manager would break after a single system upgrade. All help is greatly appreciated! thanks