Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

invalid ELF header #122

Closed
massimopalmieri opened this Issue Nov 24, 2013 · 8 comments

Comments

Projects
None yet
3 participants

Hi,

I'm trying to update the firmware and I'm getting this error. Do you know how to solve it?

*** Setting up firmware (this may take a few minutes)
Cloning into '//root/.rpi-firmware'...
git-remote-https: error while loading shared libraries: /usr/lib/arm-linux-gnueabihf/libcurl-gnutls.so.4: invalid ELF header
!!! Failed to download new firmware files

Collaborator

popcornmix commented Nov 24, 2013

What happens if you try to download something? e.g.

wget https://github.com/Hexxeh/rpi-firmware/raw/master/start.elf

What about:

pi@raspberrypi:~ $ file /usr/lib/arm-linux-gnueabihf/libcurl-gnutls.so.4
/usr/lib/arm-linux-gnueabihf/libcurl-gnutls.so.4: symbolic link to `libcurl-gnutls.so.4.2.0'
pi@raspberrypi:~ $ file /usr/lib/arm-linux-gnueabihf/libcurl-gnutls.so.4.2.0
/usr/lib/arm-linux-gnueabihf/libcurl-gnutls.so.4.2.0: ELF 32-bit LSB shared object, ARM, version 1 (SYSV), dynamically linked, BuildID[sha1]=0x2199efca1fe34a6d6282584843551221ed03aef8, stripped

Hi popcornmix,
downloading something like start.elf with wget works.

pi@raspberrypi:~ $  file /usr/lib/arm-linux-gnueabihf/libcurl-gnutls.so.4                                       
/usr/lib/arm-linux-gnueabihf/libcurl-gnutls.so.4: symbolic link to `libcurl-gnutls.so.4.2.0'

pi@raspberrypi:~ $  file /usr/lib/arm-linux-gnueabihf/libcurl-gnutls.so.4.2.0
/usr/lib/arm-linux-gnueabihf/libcurl-gnutls.so.4.2.0: data
Collaborator

popcornmix commented Nov 24, 2013

Looks like libcurl-gnutils is corrupted.
I might try:

sudo apt-get install --reinstall libcurl3-gnutls

Thanks a lot for your help. I had to run:

sudo apt-get update --fix-missing
sudo apt-get install --reinstall libcurl3-gnutls

and then sudo rpi-update seemed to work.. but I got this error:

 *** Updating kernel modules
cp: cannot stat `//root/.rpi-firmware/modules/*': No such file or directory

So I rebooted, and after that if I try to run sudo rpi-update, I receive again the same error:

git-remote-https: error while loading shared libraries: /usr/lib/arm-linux-gnueabihf/libcurl-gnutls.so.4: invalid ELF header
 !!! Failed to download new firmware files

I'm wondering if it may be caused by the sd card.

Collaborator

popcornmix commented Nov 25, 2013

It does sound like your sdcard installation is corrupted.
I'd suggest a new install, and run rpi-update first (it has a fix for sdcard corruption).
If there is still a problem try a different sdcard.

I'll try with a new sd

Collaborator

popcornmix commented Apr 5, 2014

Is this resolved now?

@popcornmix popcornmix closed this Apr 17, 2014

Contributor

shrx commented Jun 11, 2014

Got similar errors today:

/opt/Wolfram/WolframEngine/10.0/SystemFiles/Kernel/Binaries/Linux-ARM/WolframKernel: error while loading shared libraries: /opt/Wolfram/WolframEngine/10.0/SystemFiles/Libraries/Linux-ARM/libsqlite3.so.0: invalid ELF header

/opt/Wolfram/WolframEngine/10.0/SystemFiles/Kernel/Binaries/Linux-ARM/WolframKernel: error while loading shared libraries: /opt/Wolfram/WolframEngine/10.0/SystemFiles/Libraries/Linux-ARM/libML32i4.so: invalid ELF header

I'll try reinstalling wolfram-engine, I hope there's no hardware corruption.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment