Invalid ELF header

apt-get: error while loading shared libraries: /lib/x86_64-linux-gnu/ invalid ELF header

1 Reply

I'm not entirely sure what's going on here as you didn't provide much context for what you were doing, trying to accomplish, system information, or any services. That said, I Googled the exact phase you posted here and found this post online:

rpm: error while loading shared libraries: invalid ELF header

It looks like a file that is associated with a symbolic link got out of whack, either by being overwritten or something of the sort. That post provides commands to address that issue to allow you to move forward.

I hope this is helpful, considering the lack of info to go on here. For future reference, I'd recommend reviewing our Ask Better Questions post. It details ways you can help others help you by providing more info.


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct