curl: error while loading shared libraries

hi.

│ Checking URL: https://raw.githubusercontent.com/MichaIng/DietPi/master/.conf/dps_31/99-dietpi-kodi.rules             │
│  - Command: curl -ILfvm 5 https://raw.githubusercontent.com/MichaIng/DietPi/master/.conf/dps_31/99-dietpi-kodi.rules │
│  - Exit code: 127                                                                                                    │
│  - DietPi version: v7.4.2 (MichaIng/master) | HW_MODEL: 3 | HW_ARCH: 2 | DISTRO: 5                                   │
│  - Error log:                                                                                                        │
│ curl: error while loading shared libraries: libhogweed.so.6: cannot open shared object file: No such file or         │
│ directory

Change command into https://github.com/MichaIng/DietPi/blob/master/.conf/dps_31/99-dietpi-kodi.rules (found on internet) doesn’t work.
What can I do?

Similar issue found with command dietpi-update:

[ INFO ] DietPi-Update | Getting latest version from: https://raw.githubusercontent.com/MichaIng/DietPi/master/.update/version
curl: error while loading shared libraries: libhogweed.so.6: cannot open shared object file: No such file or directory
[FAILED] DietPi-Update | Unable to get latest version.

What can I do?

did you restore your system after the unsuccessful buster>bullseye upgrade ?

At the moment it looks like curl command is looking for Bullseye libraries. And of course they are not available on Buster. And what was the issue with the bullseye upgrade?

Ssh connection was not possible. Local ip not found. I didnt get time to investigate, so I restored backup. But…
How can i change the path for curl into buster version?

How did you restore your system?

Dietpi-backup… Restore

you did a reboot afterwards, right?

correct

you could try to remove curl and reinstall it afterwards

G_AGP curl
G_AGI curl

No luck there. Same issue:

curl: error while loading shared libraries: libhogweed.so.6: cannot open shared object file: No such file or directory

dietpi-update:

[ INFO ] DietPi-Update | Getting latest version from: https://raw.githubusercontent.com/MichaIng/DietPi/master/.update/version
curl: error while loading shared libraries: libhogweed.so.6: cannot open shared object file: No such file or directory
[FAILED] DietPi-Update | Unable to get latest version.

now
https://raw.githubusercontent.com/MichaIng/DietPi/master/.conf/dps_31/99-dietpi-kodi.rules
and
https://raw.githubusercontent.com/MichaIng/DietPi/master/.update/version
link works,
but
curl: error while loading shared libraries: libhogweed.so.6: cannot open shared object file: No such file or directory

do you have any idea?

issue is with your installation. it seems to inkonsistent now. Can you try to rerun the restore? I will ask MichaIng to have a look

what is possibillity that backup>restore can fail? :thinking:

Honestly I’m not sure but your system is looking for libhogweed.so.6. And if I’m not mistaken this is a library available on Bullseye.

https://packages.debian.org/search?suite=all&searchon=names&keywords=libhogweed

If backup or restore fails, then rsync itself failed and you see an error prompt, so it shouldn’t be possible that e.g. the libraries are reverted to Buster while the curl binary is not. If there was not error message, than it must have been a low level error with the drive or filesystem cache which rsync did not receive, not how such can happen. Also strange that it is curl only while obviously the remaining system works well :thinking:.

Please try to reinstall curl. If it still fails, check which package version from where is installed:

apt install --reinstall curl
curl -I https://dietpi.com/
# if it still fails
apt policy curl
root@DietPi:/home/tibo# apt install --reinstall curl
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 49 not upgraded.
Need to get 254 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://ftp.arnes.si/mirrors/raspbian/raspbian buster/main armhf curl armhf 7.64.0-4+deb10u2 [254 kB]
Fetched 254 kB in 0s (551 kB/s)
(Reading database ... 128449 files and directories currently installed.)
Preparing to unpack .../curl_7.64.0-4+deb10u2_armhf.deb ...
Unpacking curl (7.64.0-4+deb10u2) over (7.64.0-4+deb10u2) ...
Setting up curl (7.64.0-4+deb10u2) ...
root@DietPi:/home/tibo# curl -I https://dietpi.com/
curl: error while loading shared libraries: libhogweed.so.6: cannot open shared object file: No such file or directory
root@DietPi:/home/tibo# apt policy curl
curl:
  Installed: 7.64.0-4+deb10u2
  Candidate: 7.64.0-4+deb10u2
  Version table:
 *** 7.64.0-4+deb10u2 500
        500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
        100 /var/lib/dpkg/status

:thinking:

is possible to add missing libhogweed.so.6 manually?

or

is bullseye upgrade the only option?

give some time to MichaIng to come back on this. We all have a day job and sometimes it might take a while.

on the other hand, if you have time, why not trying to update again. Probably we could have a look to your issues. As of know you are the only one reporting such issues after the upgrade. Would be interesting to see what issue is. :slight_smile:

Very strange. You did a reboot in between, didn’t you? I’ll try to replicate on a Buster RPi system, just to rule out an issue with the Raspbian repo.

But wait, one more idea I have. Please run and paste the output of the following commands:

which -a curl
ls -l {,/usr{,/local}}/bin/curl
root@DietPi:/home/tibo# which -a curl
/usr/bin/curl
root@DietPi:/home/tibo# ls -l {,/usr{,/local}}/bin/curl
ls: cannot access '/bin/curl': No such file or directory
ls: cannot access '/usr/local/bin/curl': No such file or directory
-rwxr-xr-x 1 root root 185812 Mar 30 22:56 /usr/bin/curl

out of curiosity, could you run the restore again and watch the output closely for error messages?