Get error when trying to install on fedora linux 31

Description of the issue:

The command line on the brave webpage to install on Fedora Linux 31 doesn’t work. I get the python error

$ sudo dnf config-manager --add-repo https://brave-browser-rpm-release.s3.brave.com/x86_64/
Traceback (most recent call last):
File “/usr/bin/dnf”, line 57, in
from dnf.cli import main
File “/usr/lib/python3.7/site-packages/dnf/init.py”, line 30, in
import dnf.base
File “/usr/lib/python3.7/site-packages/dnf/base.py”, line 29, in
import libdnf.transaction
File “/usr/lib64/python3.7/site-packages/libdnf/init.py”, line 4, in
from . import conf
File “/usr/lib64/python3.7/site-packages/libdnf/conf.py”, line 13, in
from . import _conf
ImportError: /lib64/librpm.so.9: file too short

Steps to Reproduce (add as many as necessary): 1. 2. 3.
JUst run the command

sudo dnf config-manager --add-repo https://brave-browser-rpm-release.s3.brave.com/x86_64/

Actual Result (gifs and screenshots are welcome!):

When I try to go the address in the command, I get

Expected result:
Installation.

Reproduces how often:
Always
Operating System and Brave Version(See the About Brave page in the main menu):
Fedora Linux 31

Additional Information:

It turns out that the issue had nothing to do with brave: the rpm library installation got corrupted on my system.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.