archlinuxhardened / selinux

PKGBUILDs to build SELinux enabled packages for Arch Linux
145 stars 25 forks source link

ip: error while loading shared libraries: libbpf.so.0: cannot open shared object file: No such file or directory #110

Closed freedom1b2830 closed 1 year ago

freedom1b2830 commented 1 year ago

ldd /usr/bin/ip

    linux-vdso.so.1 (0x00007ffd2f3dd000)
    libbpf.so.0 => not found
    libelf.so.1 => /usr/lib/libelf.so.1 (0x00007f807f45b000)
    libmnl.so.0 => /usr/lib/libmnl.so.0 (0x00007f807f453000)
    libcap.so.2 => /usr/lib/libcap.so.2 (0x00007f807f447000)
    libc.so.6 => /usr/lib/libc.so.6 (0x00007f807f260000)
    libz.so.1 => /usr/lib/libz.so.1 (0x00007f807f246000)
    /lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007f807f5b8000)

pacman -Qo /usr/bin/ip /usr/bin/ip принадлежит iproute2-selinux 5.19.0-1

core/iproute2 6.0.0-1 already exist in common repo

FauxPrada commented 1 year ago

Try installing an older version of libbpf, because it updated to version 1.x so the shared object is now so.1 instead of so.0, hence error.

sudo pacman -U https://archive.archlinux.org/packages/l/libbpf/libbpf-0.8.1-1-x86_64.pkg.tar.zst

If that works, it would be a temporary fix.

freedom1b2830 commented 1 year ago

well, I'll wait for the fix)

:: installing libbpf (0.8.1-1) breaks dependency 'libbpf.so=1-64' required by qemu-system-aarch64
:: installing libbpf (0.8.1-1) breaks dependency 'libbpf.so=1-64' required by qemu-system-alpha
:: installing libbpf (0.8.1-1) breaks dependency 'libbpf.so=1-64' required by qemu-system-arm
:: installing libbpf (0.8.1-1) breaks dependency 'libbpf.so=1-64' required by qemu-system-avr
:: installing libbpf (0.8.1-1) breaks dependency 'libbpf.so=1-64' required by qemu-system-cris
:: installing libbpf (0.8.1-1) breaks dependency 'libbpf.so=1-64' required by qemu-system-hppa
:: installing libbpf (0.8.1-1) breaks dependency 'libbpf.so=1-64' required by qemu-system-loongarch64
:: installing libbpf (0.8.1-1) breaks dependency 'libbpf.so=1-64' required by qemu-system-m68k
:: installing libbpf (0.8.1-1) breaks dependency 'libbpf.so=1-64' required by qemu-system-microblaze
:: installing libbpf (0.8.1-1) breaks dependency 'libbpf.so=1-64' required by qemu-system-mips
:: installing libbpf (0.8.1-1) breaks dependency 'libbpf.so=1-64' required by qemu-system-nios2
:: installing libbpf (0.8.1-1) breaks dependency 'libbpf.so=1-64' required by qemu-system-or1k
:: installing libbpf (0.8.1-1) breaks dependency 'libbpf.so=1-64' required by qemu-system-ppc
:: installing libbpf (0.8.1-1) breaks dependency 'libbpf.so=1-64' required by qemu-system-riscv
:: installing libbpf (0.8.1-1) breaks dependency 'libbpf.so=1-64' required by qemu-system-rx
:: installing libbpf (0.8.1-1) breaks dependency 'libbpf.so=1-64' required by qemu-system-s390x
:: installing libbpf (0.8.1-1) breaks dependency 'libbpf.so=1-64' required by qemu-system-sh4
:: installing libbpf (0.8.1-1) breaks dependency 'libbpf.so=1-64' required by qemu-system-sparc
:: installing libbpf (0.8.1-1) breaks dependency 'libbpf.so=1-64' required by qemu-system-tricore
:: installing libbpf (0.8.1-1) breaks dependency 'libbpf.so=1-64' required by qemu-system-x86
:: installing libbpf (0.8.1-1) breaks dependency 'libbpf.so=1-64' required by qemu-system-xtensa
mgugger commented 1 year ago

Alternatively, rebuilding iproute2-selinux from aur also fixes the issue for me meanwhile:

yay -Sy --aur iproute2-selinux
freedom1b2830 commented 1 year ago

Alternatively, rebuilding iproute2-selinux from aur also fixes the issue for me meanwhile:

yay -Sy --aur iproute2-selinux

This solution helped.