Running Fedora 32 on an ASUS / AMD 32GB machine. Dual boot Windows 10 and RH32. Upgraded to 32 from 30 earlier this year, machine was stable and has been updated periodically since.
Logged on to my account today and opened a terminal, then elevated to SU. Invoked DNF with the command “dnf upgrade --best --allowerasing”. Over 500 packages were marked for upgrade, over 1 Gb of changes. Downloads proceeded OK, transaction tests OK, began transactions.
Suddenly experienced a brief (1 sec.) power outage (probably due to high winds); the machine rebooted into Windows and I shut it down until the weather event passed. Restarted the machine just now and opened a terminal window, elevated to SU, invoked dnf as before. DNF will not load; I get the following message no matter how I invoke dnf:
[CLH@localhost ~]$ su
[root@localhost CLH]# dnf upgrade --best --allowerasing
Traceback (most recent call last):
File “/usr/bin/dnf”, line 58, in
File “/usr/lib/python3.8/site-packages/dnf/cli/main.py”, line 201, in user_main
errcode = main(args)
File “/usr/lib/python3.8/site-packages/dnf/cli/main.py”, line 67, in main
return _main(base, args, cli_class, option_parser_class)
File “/usr/lib/python3.8/site-packages/dnf/cli/main.py”, line 97, in _main
cli = cli_class(base)
File “/usr/lib/python3.8/site-packages/dnf/cli/cli.py”, line 726, in init
AttributeError: module ‘dnf.cli.commands.history’ has no attribute ‘HistoryCommand’
“dnf history”, “dnf list”, “dnf clean” etc. all produce this message. What do I do to resolve this?
Thanks for your suggestions.