Unable to get my fedora to boot

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'