Ask Your Question
0

dnf import error: libexpat.so.1

asked 2016-07-02 00:10:00 -0500

I am a fedora noob who has recently isntalled fedora on my new desktop. The last thing I was doing was installing and removing some software to do some OpenGl programming, mainly gcc, GLEW, and GLFW.

Later I rebooted my computer and could not finish the boot or login. I received some errors: Failed to start Avahi mDNS/DNS-SD Stack, Login Service, firewalld, Accounts Service, Modem Manager, and RealtimeKey Scheduling Policy Service. I rebooted and dropped to the terminal. Attempting to start a service and do an update with dnf received a similar error:

ImportError: libexpat.so.1: cannot open shared object file: No such file or directory

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2016-07-02 19:37:59 -0500

sergiomb gravatar image
rpm -qf /usr/lib64/libexpat.so.1 /usr/lib/libexpat.so.1

expat-2.1.1-2.fc23.x86_64 expat-2.1.1-2.fc23.i686

dnf install expat-2.1.1-2.fc23.x86_64 expat-2.1.1-2.fc23.i686

but remove software have a huge bug with autoremove I advice edit /etc/dnf/dnf.conf and add this line :

clean_requirements_on_remove=false
edit flag offensive delete link more
0

answered 2016-07-02 08:06:53 -0500

devhen gravatar image

It depends on what you did while you were trying to install those tools. Whenever possible, you should install through dnf. libexpat.so.1 is provided by the expat package so the first thing I would try is:

sudo dnf reinstall expat

BTW, you can use dnf provides to findout what package provides a particular file. You can use wildcards (*) but they need to be escaped with a backslash. For example:

dnf provides \*/libexpat.so.1

edit flag offensive delete link more

Question Tools

Stats

Asked: 2016-07-02 00:10:00 -0500

Seen: 263 times

Last updated: Jul 02 '16