# curl: error while loading shared libraries

**URL:** <https://dietpi.com/forum/t/curl-error-while-loading-shared-libraries/5674>\
**Category:** Troubleshooting\
**Created:** [6 September 2021 08:24 UTC](https://dietpi.com/forum/t/curl-error-while-loading-shared-libraries/5674 "2021-09-06T08:24:49Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![novitibo](https://dietpi.com/forum/user_avatar/dietpi.com/novitibo/32/13_2.png) [@novitibo](https://dietpi.com/forum/u/novitibo)\
**Post date:** [6 September 2021 08:24 UTC](https://dietpi.com/forum/t/curl-error-while-loading-shared-libraries/5674/1 "2021-09-06T08:24:49Z")

</div>

hi.

```nohighlight
│ 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](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:

```nohighlight
[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?

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [6 September 2021 08:55 UTC](https://dietpi.com/forum/t/curl-error-while-loading-shared-libraries/5674/2 "2021-09-06T08:55:38Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![novitibo](https://dietpi.com/forum/user_avatar/dietpi.com/novitibo/32/13_2.png) [@novitibo](https://dietpi.com/forum/u/novitibo)\
**Post date:** [6 September 2021 10:23 UTC](https://dietpi.com/forum/t/curl-error-while-loading-shared-libraries/5674/3 "2021-09-06T10:23:16Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [6 September 2021 10:25 UTC](https://dietpi.com/forum/t/curl-error-while-loading-shared-libraries/5674/4 "2021-09-06T10:25:52Z")

</div>

How did you restore your system?

---

<div class="post-metadata">

**Author:** ![novitibo](https://dietpi.com/forum/user_avatar/dietpi.com/novitibo/32/13_2.png) [@novitibo](https://dietpi.com/forum/u/novitibo)\
**Post date:** [6 September 2021 11:12 UTC](https://dietpi.com/forum/t/curl-error-while-loading-shared-libraries/5674/5 "2021-09-06T11:12:09Z")

</div>

Dietpi-backup… Restore

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [6 September 2021 11:17 UTC](https://dietpi.com/forum/t/curl-error-while-loading-shared-libraries/5674/6 "2021-09-06T11:17:00Z")

</div>

you did a reboot afterwards, right?

---

<div class="post-metadata">

**Author:** ![novitibo](https://dietpi.com/forum/user_avatar/dietpi.com/novitibo/32/13_2.png) [@novitibo](https://dietpi.com/forum/u/novitibo)\
**Post date:** [6 September 2021 13:05 UTC](https://dietpi.com/forum/t/curl-error-while-loading-shared-libraries/5674/7 "2021-09-06T13:05:32Z")

</div>

correct

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [6 September 2021 13:16 UTC](https://dietpi.com/forum/t/curl-error-while-loading-shared-libraries/5674/8 "2021-09-06T13:16:46Z")

</div>

you could try to remove curl and reinstall it afterwards

```nohighlight
G_AGP curl
G_AGI curl

```

---

<div class="post-metadata">

**Author:** ![novitibo](https://dietpi.com/forum/user_avatar/dietpi.com/novitibo/32/13_2.png) [@novitibo](https://dietpi.com/forum/u/novitibo)\
**Post date:** [6 September 2021 15:53 UTC](https://dietpi.com/forum/t/curl-error-while-loading-shared-libraries/5674/9 "2021-09-06T15:53:08Z")

</div>

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:

```nohighlight
[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.

```

---

<div class="post-metadata">

**Author:** ![novitibo](https://dietpi.com/forum/user_avatar/dietpi.com/novitibo/32/13_2.png) [@novitibo](https://dietpi.com/forum/u/novitibo)\
**Post date:** [7 September 2021 07:49 UTC](https://dietpi.com/forum/t/curl-error-while-loading-shared-libraries/5674/10 "2021-09-07T07:49:32Z")

</div>

now  
[https://raw.githubusercontent.com/MichaIng/DietPi/master/.conf/dps\_31/99-dietpi-kodi.rules](https://raw.githubusercontent.com/MichaIng/DietPi/master/.conf/dps_31/99-dietpi-kodi.rules)  
and  
[https://raw.githubusercontent.com/MichaIng/DietPi/master/.update/version](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?

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [7 September 2021 09:27 UTC](https://dietpi.com/forum/t/curl-error-while-loading-shared-libraries/5674/11 "2021-09-07T09:27:23Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![novitibo](https://dietpi.com/forum/user_avatar/dietpi.com/novitibo/32/13_2.png) [@novitibo](https://dietpi.com/forum/u/novitibo)\
**Post date:** [7 September 2021 09:30 UTC](https://dietpi.com/forum/t/curl-error-while-loading-shared-libraries/5674/12 "2021-09-07T09:30:52Z")

</div>

what is possibillity that backup\>restore can fail? 🤔

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [7 September 2021 09:34 UTC](https://dietpi.com/forum/t/curl-error-while-loading-shared-libraries/5674/13 "2021-09-07T09:34:41Z")

</div>

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](https://packages.debian.org/search?suite=all&searchon=names&keywords=libhogweed)

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [7 September 2021 10:34 UTC](https://dietpi.com/forum/t/curl-error-while-loading-shared-libraries/5674/14 "2021-09-07T10:34:04Z")

</div>

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 🤔.

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

```nohighlight
apt install --reinstall curl
curl -I https://dietpi.com/
# if it still fails
apt policy curl

```

---

<div class="post-metadata">

**Author:** ![novitibo](https://dietpi.com/forum/user_avatar/dietpi.com/novitibo/32/13_2.png) [@novitibo](https://dietpi.com/forum/u/novitibo)\
**Post date:** [7 September 2021 10:54 UTC](https://dietpi.com/forum/t/curl-error-while-loading-shared-libraries/5674/15 "2021-09-07T10:54:45Z")

</div>

```nohighlight
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

```

🤔

---

<div class="post-metadata">

**Author:** ![novitibo](https://dietpi.com/forum/user_avatar/dietpi.com/novitibo/32/13_2.png) [@novitibo](https://dietpi.com/forum/u/novitibo)\
**Post date:** [8 September 2021 13:41 UTC](https://dietpi.com/forum/t/curl-error-while-loading-shared-libraries/5674/16 "2021-09-08T13:41:32Z")

</div>

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

or

is bullseye upgrade the only option?

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [8 September 2021 20:30 UTC](https://dietpi.com/forum/t/curl-error-while-loading-shared-libraries/5674/17 "2021-09-08T20:30:29Z")

</div>

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. 🙂

---

<div class="post-metadata">

**Author:** ![MichaIng](https://dietpi.com/forum/user_avatar/dietpi.com/michaing/32/7_2.png) [@MichaIng](https://dietpi.com/forum/u/MichaIng)\
**Post date:** [8 September 2021 23:09 UTC](https://dietpi.com/forum/t/curl-error-while-loading-shared-libraries/5674/18 "2021-09-08T23:09:24Z")

</div>

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:

```nohighlight
which -a curl
ls -l {,/usr{,/local}}/bin/curl

```

---

<div class="post-metadata">

**Author:** ![novitibo](https://dietpi.com/forum/user_avatar/dietpi.com/novitibo/32/13_2.png) [@novitibo](https://dietpi.com/forum/u/novitibo)\
**Post date:** [9 September 2021 08:50 UTC](https://dietpi.com/forum/t/curl-error-while-loading-shared-libraries/5674/19 "2021-09-09T08:50:29Z")

</div>

```nohighlight
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

```

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [9 September 2021 17:45 UTC](https://dietpi.com/forum/t/curl-error-while-loading-shared-libraries/5674/20 "2021-09-09T17:45:25Z")

</div>

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

[Next page](https://dietpi.com/forum/t/curl-error-while-loading-shared-libraries/5674.md?page=2)
