Would you like to react to this message? Create an account in a few clicks or log in to continue.

3 posters
  • Post new topic
  • Reply to topic

ELF file- it has the wrong magic bytes at the start ***Solved***

w3ie
w3ie


Posts : 35
Join date : 2024-05-12
Age : 74
Location : The Keystone State NW PA USA

ELF file- it has the wrong magic bytes at the start ***Solved*** Empty ELF file- it has the wrong magic bytes at the start ***Solved***

Post by w3ie 12th June 2024, 2:08 pm

I did an apt autoremove which does the removal and at the end I got:

Code:
ldconfig: /lib/x86_64-linux-gnu/libblas.so.3-x86_64-linux-gnu is not an ELF file - it has the wrong magic bytes at the start.

I get the same when installing a package.

I like magic but don't understand what this is telling me. Shocked


Last edited by w3ie on 13th June 2024, 1:12 pm; edited 1 time in total
w3ie
w3ie


Posts : 35
Join date : 2024-05-12
Age : 74
Location : The Keystone State NW PA USA

ELF file- it has the wrong magic bytes at the start ***Solved*** Empty Re: ELF file- it has the wrong magic bytes at the start ***Solved***

Post by w3ie 13th June 2024, 12:03 am

Reinstalled libblas, no help Sad
Upgreyed
Upgreyed
Admin


Posts : 87
Join date : 2024-05-12
Location : The Sunshine State FL USA

ELF file- it has the wrong magic bytes at the start ***Solved*** Empty Re: ELF file- it has the wrong magic bytes at the start ***Solved***

Post by Upgreyed 13th June 2024, 9:38 am

w3ie wrote:Reinstalled libblas, no help Sad

Open a root terminal and remove these:

Code:
rm -f /usr/lib/x86_64-linux-gnu/liblapack*
rm -f /usr/lib/x86_64-linux-gnu/libblas*
Code:


apt-get update && apt-get install --reinstall liblapack3 libblas3

Check and see if the error is gone bye bye.

Code:
ldconfig


Last edited by Upgreyed on 13th June 2024, 10:08 am; edited 1 time in total
avatar
cdquarles


Posts : 3
Join date : 2024-05-13

ELF file- it has the wrong magic bytes at the start ***Solved*** Empty Re: ELF file- it has the wrong magic bytes at the start ***Solved***

Post by cdquarles 13th June 2024, 9:40 am

w3ie wrote:I did an apt autoremove which does the removal and at the end I got:

Code:
ldconfig: /lib/x86_64-linux-gnu/libblas.so.3-x86_64-linux-gnu is not an ELF file - it has the wrong magic bytes at the start.

I get the same when installing a package.

I like magic but don't understand what this is telling me. Shocked

Those are hexidecimally coded file type indicators, typically for executable files. There are codes that indicate ELF files, PE files, etc. You mostly don't have to worry about them. I have seen that error message as well. Our distro testers and maintainers will know more.
avatar
cdquarles


Posts : 3
Join date : 2024-05-13

ELF file- it has the wrong magic bytes at the start ***Solved*** Empty Re: ELF file- it has the wrong magic bytes at the start ***Solved***

Post by cdquarles 13th June 2024, 9:43 am

Upgreyed wrote:
w3ie wrote:Reinstalled libblas, no help Sad

Open a root terminal and remove these:

Code:
rm -f /usr/lib/x86_64-linux-gnu/liblapack*
rm -f /usr/lib/x86_64-linux-gnu/libblas*
Code:

apt-get update && apt-get install --reinstall liblapack3 libblas3

Check and see if the error is gone bye bye.

Code:
ldconfig

Oh, thanks. I'll bookmark this for future reference if I see such an error again.
w3ie
w3ie


Posts : 35
Join date : 2024-05-12
Age : 74
Location : The Keystone State NW PA USA

ELF file- it has the wrong magic bytes at the start ***Solved*** Empty Re: ELF file- it has the wrong magic bytes at the start ***Solved***

Post by w3ie 13th June 2024, 1:11 pm

Upgreyed wrote:
w3ie wrote:Reinstalled libblas, no help Sad

Open a root terminal and remove these:

Code:
rm -f /usr/lib/x86_64-linux-gnu/liblapack*
rm -f /usr/lib/x86_64-linux-gnu/libblas*
Code:


apt-get update && apt-get install --reinstall liblapack3 libblas3

Check and see if the error is gone bye bye.

Code:
ldconfig

Error went bye bye Very Happy

Sponsored content


ELF file- it has the wrong magic bytes at the start ***Solved*** Empty Re: ELF file- it has the wrong magic bytes at the start ***Solved***

Post by Sponsored content

  • Post new topic
  • Reply to topic

Current date/time is 29th June 2024, 6:35 am