I was working with conda environments and then installed libmamba as the default environment solver, and also I installed some package using conda which required sudo. After that the dnf command stopped working (error is in photo). Then I rebooted the system, and then now I’m unable to get it to boot, it gets on a screen Oh no! Something went wrong. Please contact system administrator or something like that. I’m now logged in to terminal after getting to that error screen, using Ctrl + Alt + F3.
An important system library may have been replaced with an imposter. We can’t help without more details than “some package”. Use dnf history to get the names of recently installed packages. Note that 3rd party Python packages sometimes break dnf (and other python applications). See the solution to a similar problem in How to fix yum.
Please post terminal output as text (use the </> button) so the error messages, etc., can be found in searches by others who have similar issues. When you don’t have a working GUI, you can save terminal output to a file or use grap a phone with a phone and use OCR (tesseract, etc.) to get text:
# sudo
sudo: error in /etc/sudo.conf, line 8 while loading plugin "sudoers_policy"
sudo: unable to load /usr/libexec/sudo/sudoers.so: /1ib64/libldap.so.2: undefined symbol: EVP_mdZ, version OPENSSL_3.8.0
sudo: fatal error, unable to load plugins
# dnf
Traceback (most recent call last):
File "/usr/bin/dnf", line 61, in <module>
from dnf.cli import main
ModuleNotFoundError: No module named 'dnf'