'dnf, clear commands not working inside docker conatiner
Hi im trying to build a container with base os- centos:8 container image- fedora:33 when i give a dnf install command it returns with a failure, so i went inside the container in interactive mode and tried to do a dnf install or clear but getting the same error
# dnf --help
Traceback (most recent call last):
File "/usr/bin/dnf", line 57, in <module>
from dnf.cli import main
File "/usr/lib/python3.9/site-packages/dnf/__init__.py", line 30, in <module>
import dnf.base
File "/usr/lib/python3.9/site-packages/dnf/base.py", line 29, in <module>
import libdnf.transaction
File "/usr/lib64/python3.9/site-packages/libdnf/__init__.py", line 12, in <module>
from . import conf
File "/usr/lib64/python3.9/site-packages/libdnf/conf.py", line 13, in <module>
from . import _conf
ImportError: /lib64/libffi.so.6: rebuild shared object with IBT support enabled
How to rectify this error.
Solution 1:[1]
I solved mine by just doing this:
yum groupinstall "Development Tools"
The dnf worked and also the clear command.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Ryan M |