I am using Fedora 37 and have Linux kernel:
6.1.7-200.fc37.x86_64
.
While trying to replace some libraries (libncurses.so.5
) for STMCubeIDE I have deleted some files in /usr/lib/libncurses*
. Now, when I try to use anything with dnf I get the following message:
$ sudo dnf update
Traceback (most recent call last):
File "/usr/bin/dnf", line 61, in
from dnf.cli import main
File "/usr/lib/python3.11/site-packages/dnf/cli/__init__.py", line 30, in
from dnf.cli.cli import Cli # :api
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/dnf/cli/cli.py", line 44, in
from . import output
File "/usr/lib/python3.11/site-packages/dnf/cli/output.py", line 42, in
import dnf.cli.progress
File "/usr/lib/python3.11/site-packages/dnf/cli/progress.py", line 19, in
from dnf.cli.term import _term_width
File "/usr/lib/python3.11/site-packages/dnf/cli/term.py", line 21, in
import curses
File "/usr/lib64/python3.11/curses/__init__.py", line 13, in
from _curses import *
ImportError: libncursesw.so.6: cannot open shared object file: No such file or directory
I would like to know if there is an easy way to just repair dnf or this specific problem.
Asked by GabrijelOkorn
(25 rep)
Feb 6, 2023, 09:35 PM
Last activity: Feb 7, 2023, 09:11 AM
Last activity: Feb 7, 2023, 09:11 AM