ELF file error during update related to librewolfssl and xfsprogs

After running garuda-update I'm getting following errors:

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

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

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

The upgrade itself worked. That said, I think it's an issue on it's own that these error weren't emphasized by the updater program. I only saw them by coincidence and remembered that something like this happened a while ago and I ignored it back then.

Anyways, this happened after the updater installed xfsprogs. So I installed them again and got the same error. I didn't install librewolfssl since it's big, but I assume the whole error has something to do with a dependency. pacman -Dk shows no problems.

Note: I also had this warning during the update:

warning: /etc/pacman.d/mirrorlist installed as /etc/pacman.d/mirrorlist.pacnew

garuda-inxi

System:
Kernel: 6.3.8-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 13.1.1
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=f98349e3-8520-4d18-968f-b7d3b3f4b259 rw rootflags=subvol=@
quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
resume=UUID=f38c84c4-3b3e-4abc-afd9-6f44ced56afd loglevel=3 ibt=off
Desktop: KDE Plasma v: 5.27.6 tk: Qt v: 5.15.10 wm: kwin_x11 vt: 1
dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Desktop Mobo: Micro-Star model: MAG B550 TOMAHAWK (MS-7C91) v: 2.0
serial: <superuser required> UEFI: American Megatrends LLC. v: A.A0
date: 05/26/2022
CPU:
Info: model: AMD Ryzen 5 5600G with Radeon Graphics bits: 64 type: MT MCP
arch: Zen 3 gen: 4 level: v3 note: check built: 2021-22
process: TSMC n7 (7nm) family: 0x19 (25) model-id: 0x50 (80) stepping: 0
microcode: 0xA50000D
Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 3 MiB desc: 6x512 KiB
L3: 16 MiB desc: 1x16 MiB
Speed (MHz): avg: 3455 high: 4447 min/max: 1400/4464 boost: enabled
scaling: driver: acpi-cpufreq governor: performance cores: 1: 3045 2: 3054
3: 3100 4: 2993 5: 4447 6: 3126 7: 3493 8: 3023 9: 3900 10: 3900 11: 3489
12: 3900 bogomips: 93428
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities: <filter>
Graphics:
Device-1: AMD Cezanne [Radeon Vega Series / Radeon Mobile Series]
driver: amdgpu v: kernel arch: GCN-5 code: Vega process: GF 14nm
built: 2017-20 pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4
speed: 16 GT/s ports: active: HDMI-A-1 empty: DP-1,DP-2 bus-ID: 30:00.0
chip-ID: 1002:1638 class-ID: 0300 temp: 39.0 C
Display: x11 server: X.Org v: 21.1.8 with: Xwayland v: 23.1.2
compositor: kwin_x11 driver: X: loaded: amdgpu unloaded: modesetting
alternate: fbdev,vesa dri: radeonsi gpu: amdgpu display-ID: :0 screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
s-diag: 582mm (22.93")
Monitor-1: HDMI-A-1 mapped: HDMI-A-0 model: Philips PHL 273V5
serial: <filter> built: 2016 res: 1920x1080 hz: 60 dpi: 82 gamma: 1.2
size: 598x336mm (23.54x13.23") diag: 686mm (27") ratio: 16:9 modes:
max: 1920x1080 min: 720x400
API: OpenGL v: 4.6 Mesa 23.1.3 renderer: AMD Radeon Graphics (renoir LLVM
15.0.7 DRM 3.52 6.3.8-zen1-1-zen) direct-render: Yes
Audio:
Device-1: AMD Renoir Radeon High Definition Audio driver: snd_hda_intel
v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4
speed: 16 GT/s bus-ID: 30:00.1 chip-ID: 1002:1637 class-ID: 0403
Device-2: AMD Family 17h/19h HD Audio vendor: Micro-Star MSI
driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
link-max: gen: 4 speed: 16 GT/s bus-ID: 30:00.6 chip-ID: 1022:15e3
class-ID: 0403
API: ALSA v: k6.3.8-zen1-1-zen status: kernel-api with: aoss
type: oss-emulator tools: N/A
Server-1: PipeWire v: 0.3.71 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: Micro-Star MSI driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
lanes: 1 port: e000 bus-ID: 22:00.0 chip-ID: 10ec:8168 class-ID: 0200
IF: enp34s0 state: down mac: <filter>
Device-2: Realtek RTL8125 2.5GbE vendor: Micro-Star MSI driver: r8169
v: kernel pcie: gen: 2 speed: 5 GT/s lanes: 1 port: d000 bus-ID: 2a:00.0
chip-ID: 10ec:8125 class-ID: 0200
IF: enp42s0 state: down mac: <filter>
Device-3: Qualcomm Atheros AR9271 802.11n driver: ath9k_htc type: USB
rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 3-1:7 chip-ID: 0cf3:9271
class-ID: ff00 serial: <filter>
IF: wlp48s0f3u1 state: up mac: <filter>
Drives:
Local Storage: total: 8.31 TiB used: 7.2 TiB (86.6%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: SSD 980 1TB
size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
lanes: 4 tech: SSD serial: <filter> fw-rev: 1B4QFXO7 temp: 83.8 C
scheme: GPT
ID-2: /dev/sda maj-min: 8:0 vendor: Kingchuxing model: 128GB
size: 119.24 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
tech: SSD serial: <filter> fw-rev: A25E scheme: GPT
ID-3: /dev/sdb maj-min: 8:16 vendor: Seagate model: Expansion Desk
size: 2.73 TiB block-size: physical: 4096 B logical: 4096 B type: USB
rev: 2.1 spd: 480 Mb/s lanes: 1 mode: 2.0 tech: N/A serial: <filter>
fw-rev: 0737
ID-4: /dev/sdc maj-min: 8:32 model: MXT-USB Storage Device size: 7.5 GiB
block-size: physical: 512 B logical: 512 B type: USB rev: 2.0 spd: 480 Mb/s
lanes: 1 mode: 2.0 tech: N/A serial: <filter> fw-rev: 1501 scheme: GPT
SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
ID-5: /dev/sdd maj-min: 8:48 vendor: Western Digital
model: WD50NDZW-11BCSS0 size: 4.55 TiB block-size: physical: 4096 B
logical: 512 B type: USB rev: 3.2 spd: 5 Gb/s lanes: 1 mode: 3.2 gen-1x1
tech: HDD rpm: 4800 serial: <filter> fw-rev: 1034 scheme: GPT
ID-6: /dev/sdf maj-min: 8:80 model: usb disk size: 960 MiB block-size:
physical: 512 B logical: 512 B type: USB rev: 2.0 spd: 480 Mb/s lanes: 1
mode: 2.0 tech: N/A serial: <filter> fw-rev: 2.60 scheme: MBR
SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
Partition:
ID-1: / raw-size: 104.05 GiB size: 104.05 GiB (100.00%)
used: 85.02 GiB (81.7%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 576 KiB (0.2%) fs: vfat dev: /dev/sda1 maj-min: 8:1
ID-3: /home raw-size: 104.05 GiB size: 104.05 GiB (100.00%)
used: 85.02 GiB (81.7%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
ID-4: /var/log raw-size: 104.05 GiB size: 104.05 GiB (100.00%)
used: 85.02 GiB (81.7%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
ID-5: /var/tmp raw-size: 104.05 GiB size: 104.05 GiB (100.00%)
used: 85.02 GiB (81.7%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 13.54 GiB used: 5.26 GiB (38.9%)
priority: 100 dev: /dev/zram0
ID-2: swap-2 type: partition size: 14.9 GiB used: 0 KiB (0.0%)
priority: -2 dev: /dev/sda3 maj-min: 8:3
Sensors:
System Temperatures: cpu: 45.6 C mobo: N/A gpu: amdgpu temp: 39.0 C
Fan Speeds (RPM): N/A
Info:
Processes: 477 Uptime: 7d 5h 39m wakeups: 24 Memory: available: 13.54 GiB
used: 8.09 GiB (59.8%) Init: systemd v: 253 default: graphical
tool: systemctl Compilers: gcc: 13.1.1 clang: 15.0.7 Packages: pm: guix-sys
pkgs: 0 pm: guix-usr pkgs: 0 pm: nix-default pkgs: 0 pm: nix-sys pkgs: 0
pm: nix-usr pkgs: 0 pm: pacman pkgs: 2580 libs: 565 tools: octopi,paru,yay
pm: flatpak pkgs: 0 Shell: fish v: 3.6.1 default: Bash v: 5.1.16
running-in: konsole inxi: 3.3.27
Garuda (2.6.16-1):
System install date:     2022-10-03
Last full system update: 2023-06-29 ↻
Is partially upgraded:   No
Relevant software:       snapper NetworkManager mkinitcpio
Windows dual boot:       No/Undetected
Failed units:            archlinux-keyring-wkd-sync.service configure-printer@usb-001-074.service nmb.service

Where?

Check both files with meld and merge the correct values.

sudo -E DIFFPROG=meld pacdiff

and reboot → ↻

Last full system update: 2023-06-29 ↻
2 Likes

The errors are in the text output of garuda-update. I don't have the output anymore but the result from reinstalling xfsprogs:

:: Processing package changes...
(1/1) reinstalling xfsprogs                             [------------------------------] 100%
HERE

Open a support ticket.

I don't know if I have a problem with that library. It's not even installed. I only wanted to report that Garuda throws an error during update, which might be a missing dependency for xfsprogs.

Probably not a Garuda issue, rather there is likely a problem with those specific files (such as corruption or a mismatched file format). It may be helpful to reinstall that package.

sudo pacman -S wolfssl
3 Likes

Yes, that did it. I didn't think so far to go from trying to install "librewolf", which was something else and so big I didn't want to install it, to trying "wolfssl". The error referred to "libwolfssl", so I had the right idea but got confused about what to reinstall.

That said, it's still so that if I hadn't seen that error and tried to fix it, my Garuda install wouldn't have done anything to fix it and believed everything was fine. It would maybe be good to add some error catching mechanism to the garuda-install script.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.