Hi Team,
Facing below error when we ran dnf list openssh . Kindly help me on this.
cmd :- dnf list
output :-
Traceback (most recent call last):
File “/usr/bin/dnf”, line 61, in
from dnf.cli import main
File “/usr/lib/python3.9/site-packages/dnf/init.py”, line 30, in
import dnf.base
File “/usr/lib/python3.9/site-packages/dnf/base.py”, line 29, in
import libdnf.transaction
File “/usr/lib64/python3.9/site-packages/libdnf/init.py”, line 12, in
from . import conf
File “/usr/lib64/python3.9/site-packages/libdnf/conf.py”, line 13, in
from . import _conf
ImportError: /lib64/libmount.so.1: version `MOUNT_2_40’ not found (required by /lib64/libgio-2.0.so.0)
I seem to have the latest versions for Alma 9 (see below) and the libmount provides all that the libgio requires. Which versions of those packages do you have?
# rpm -qf /lib64/libgio-2.0.so.0
glib2-2.68.4-14.el9_4.1.x86_64
# rpm -qf /lib64/libmount.so.1
libmount-2.37.4-18.el9.x86_64
# strings /lib64/libgio-2.0.so.0 | grep MOUNT_2
MOUNT_2_40
MOUNT_2.20
MOUNT_2.26
MOUNT_2.19
# strings /lib64/libmount.so.1 | grep MOUNT_2
MOUNT_2.19
MOUNT_2.20
MOUNT_2.21
MOUNT_2.22
MOUNT_2.23
MOUNT_2.24
MOUNT_2.25
MOUNT_2.26
MOUNT_2.28
MOUNT_2.30
MOUNT_2.33
MOUNT_2.34
MOUNT_2_35
MOUNT_2_37
MOUNT_2_40
Hi Team,
Thanks for your quick response. Please find the below output.
cmd :- rpm -qf /lib64/libgio-2.0.so.0
glib2-2.68.4-14.el9_4.1.x86_64
cmd :- rpm -qf /lib64/libmount.so.1
libmount-2.37.4-18.el9.x86_64
strings /lib64/libgio-2.0.so.0 | grep MOUNT_2
-bash: strings: command not found
How about:
rpm -V libmount
rpm -V glib2
cmd :- rpm -V libmount
missing a /usr/lib/.build-id/ad/9a99568f664971f0ed274721f07f74b8f41101
S.5…T. /usr/lib64/libmount.so.1.1.0
cmd :- rpm -V glib2
no output
The “no output” is good. The -V
is verify and does not show intact files. No output means no issues.
The actual library file shows S, 5, and T:
S file Size differs
5 digest (formerly MD5 sum) differs
T mTime differs
Something has corrupted the file.
Plan A:
Copy file libmount-2.37.4-18.el9.x86_64.rpm
from online repos and:
rpm -ivh libmount-2.37.4-18.el9.x86_64.rpm
Rationale, the rpm
appears to function and should be able to (re)install the package.
However, if that file is corrupted, then is that the only issue in the system?
One can verify all files with rpm -Va
but there will be some lines shown since config files can be intentionally modified, so all output is not problems.
thanks a lot for your awesome solution.