Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

invalid ELF header #122

Closed
massimopalmieri opened this Issue · 8 comments

3 participants

@massimopalmieri

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

@popcornmix
Collaborator

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
@massimopalmieri

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
@popcornmix
Collaborator

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

sudo apt-get install --reinstall libcurl3-gnutls
@massimopalmieri

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.

@popcornmix
Collaborator

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.

@massimopalmieri

I'll try with a new sd

@popcornmix
Collaborator

Is this resolved now?

@popcornmix popcornmix closed this
@shrx

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
Something went wrong with that request. Please try again.