Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: iproute2 missing libbpf.so.0 - but not with gremlins version [SOLVED] (Read 607 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

iproute2 missing libbpf.so.0 - but not with gremlins version [SOLVED]

Code: [Select]
$ ip link show
ip: error while loading shared libraries: libbpf.so.0: cannot open shared object file: No such file or directory
It was kind of unhelpful as it broke my usual ip link set <interface> up
So after the latest update libbpf.so.0 has vanished, which is a problem if you still have the regular repo version of iproute2, rather than the gremlins "-2" one:
Code: [Select]
iproute2-5.19.0-1-x86_64.pkg.tar.zst
iproute2-5.19.0-2-x86_64.pkg.tar.zst
I didn't get this on my other gremlins install, so I just copied over the newer version by usb and installed it with -U, after confirming with check-link-consistency it didn't have that requirement.
Syu now tells me:
Code: [Select]
warning: iproute2: local (5.19.0-2) is newer than system (5.19.0-1)

Downgrading libbpf should also cure this I think although I haven't tried, but if you had the older version in your cache it could be easier but when I tried -Qo /usr/lib/libbpf.so.0 it didn't exist so I wasn't sure where it came from at that point and just upgraded iproute2 instead.   :D

Re: iproute2 missing libbpf.so.0 - but not with gremlins version

Reply #1
For a temporary fix until iproute gets fixed, one can use the old ifconfig from the net-tools package

Re: iproute2 missing libbpf.so.0 - but not with gremlins version

Reply #2
Looking at this more carefully today my newer iproute2 package came from a previous update, the source of which was the Arch Linux "testing" repo, (not an Artix gremlins repo as I had assumed before) which I have enabled near the end of pacman.conf because I also have some Arch repos enabled too and it had got picked up from there by good fortune. However, there is currently no iproute2 package in Arch testing and there is a newer version than this in the Arch Linux stable "core" repo :  iproute2-6.0.0-1-x86_64.pkg.tar.zst

Re: iproute2 missing libbpf.so.0 - but not with gremlins version

Reply #3
Most people are gonna be having problems due to the lack of a loopback address. using ifconfig here is the command to create one:
Code: [Select]
ifconfig lo 127.0.0.1 netmask 255.0.0.0 up

 

Re: iproute2 missing libbpf.so.0 - but not with gremlins version [SOLVED]

Reply #4
The latest version of iproute2 in Artix works correctly, anyone updating now to that plus the latest libbpf should be fine.