You are not logged in.

#1 2024-09-12 03:24:11

empada
Member
Registered: 2024-08-23
Posts: 6

libstd-975ad26df43f3092.so is not an ELF file -- what to do to fix?

Hi all,

While trying to update using `yay`, I received the following message below:

ldconfig: /usr/lib/libstd-975ad26df43f3092.so is not an ELF file - it has the wrong magic bytes at the start.


I checked what this file could be and it redirects to

/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-975ad26df43f3092.so

I have search for libstd-975ad26df43f3092.so without success.

It seems this error has been blocking other libraries to be updated as well...

Did anyone have the same problem in the past?

Thanks for your help!

Offline

#2 2024-09-12 09:11:20

gromit
Administrator
From: Germany
Registered: 2024-02-10
Posts: 1,534
Website

Re: libstd-975ad26df43f3092.so is not an ELF file -- what to do to fix?

Are you using the rust package? Because that is one that would own the symlink and actual file in question tongue

If you're having the rust package installed, could you send the output of "pacman -Qkk rust"?

Offline

#3 2024-09-12 12:09:55

empada
Member
Registered: 2024-08-23
Posts: 6

Re: libstd-975ad26df43f3092.so is not an ELF file -- what to do to fix?

Hey,

Thanks for your response. That's part of the problem.

This is what I get from `pacman -Qkk rust`
error: package 'rust' was not found


But if I run `pacman -S rust`, I get I long list of files like:
rust: /usr/bin/cargo exists in filesystem
rust: /usr/bin/cargo-clippy exists in filesystem
[...]
rust: /usr/share/man/man1/rustdoc.1.gz exists in filesystem
Errors occurred, no packages were upgraded.


So I do not have rust install, I am unable to install it, and I get the "wrong magic bytes" error message when I run `yay`

As an arch noob, I am struggling to figure out what to try first! Hah!  neutral

Offline

#4 2024-09-12 13:10:00

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,060

Re: libstd-975ad26df43f3092.so is not an ELF file -- what to do to fix?

there are 2 archlinux packages that provide /usr/bin/cargo, rust & rustup .

Please post pacman -Qs rust

Added

And please use code tags instead of ins . The yellow highlight hurts the eyes.
https://bbs.archlinux.org/help.php#bbcode

Last edited by Lone_Wolf (2024-09-12 13:11:51)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#5 2024-09-12 13:47:06

empada
Member
Registered: 2024-08-23
Posts: 6

Re: libstd-975ad26df43f3092.so is not an ELF file -- what to do to fix?

pacman -Qs rust

local/ca-certificates-mozilla 3.104-1
    Mozilla's set of trusted CA certificates
local/dnssec-anchors 20190629-4
    DNSSEC trust anchors for the root zone
local/python-cramjam 2.8.3-3
    Thin Python bindings to de/compression algorithms in Rust
local/python-pydantic-core 1:2.23.2-1
    Core validation logic for pydantic written in rust
local/python-rpds-py 0.19.0-1
    Python bindings to the Rust rpds crate for persistent data structures
local/tpm2-tss 4.0.1-1
    Implementation of the TCG Trusted Platform Module 2.0 Software Stack (TSS2)

Offline

#6 2024-09-13 08:09:02

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,060

Re: libstd-975ad26df43f3092.so is not an ELF file -- what to do to fix?

So no pacman-installed cargo providing package.

There probably was a rust/cargo install done by something else then pacman .

run and post the output of

$ cargo --version
$ pacman -Qo /usr/bin/cargo

Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#7 2024-09-13 09:59:33

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,532
Website

Re: libstd-975ad26df43f3092.so is not an ELF file -- what to do to fix?

$ grep " rust" /var/log/pacman.log

May be useful to see as well.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB