Dear Team,
I am getting below error while running dnf repolist and update after the DNF installation .
root@AIXHost:/>> /opt/freeware/bin/dnf repolist
Traceback (most recent call last):
File "/opt/freeware/bin/dnf", line 58, in <module>
from dnf.cli import main
File "/opt/freeware/lib/python3.9/site-packages/dnf/__init__.py", line 30, in <module>
import dnf.base
File "/opt/freeware/lib/python3.9/site-packages/dnf/base.py", line 29, in <module>
import libdnf.transaction
File "/opt/freeware/lib64/python3.9/site-packages/libdnf/__init__.py", line 3, in <module>
from . import common_types
File "/opt/freeware/lib64/python3.9/site-packages/libdnf/common_types.py", line 13, in <module>
from . import _common_types
ImportError: Could not load module /opt/freeware/lib64/python3.9/site-packages/libdnf/_common_types.so.
Dependent module /opt/freeware/lib/pthread/libstdc++.a(libstdc++.so.6) could not be loaded.
The module has an invalid magic number.
root@AIXHost:/>> /opt/freeware/bin/dnf update
Traceback (most recent call last):
File "/opt/freeware/bin/dnf", line 58, in <module>
from dnf.cli import main
File "/opt/freeware/lib/python3.9/site-packages/dnf/__init__.py", line 30, in <module>
import dnf.base
File "/opt/freeware/lib/python3.9/site-packages/dnf/base.py", line 29, in <module>
import libdnf.transaction
File "/opt/freeware/lib64/python3.9/site-packages/libdnf/__init__.py", line 3, in <module>
from . import common_types
File "/opt/freeware/lib64/python3.9/site-packages/libdnf/common_types.py", line 13, in <module>
from . import _common_types
ImportError: Could not load module /opt/freeware/lib64/python3.9/site-packages/libdnf/_common_types.so.
Dependent module /opt/freeware/lib/pthread/libstdc++.a(libstdc++.so.6) could not be loaded.
The module has an invalid magic number.
root@AIXHost:/>>
Thanks
Shahir
@Aditya Kamath @Ranjit Ranjan @SANGAMESH MALLAYYA
------------------------------
Shahir Ali FR
------------------------------