curl: error while loading shared libraries

Having issues with your DietPi installation or found a bug? Post it here.
User avatar
novitibo
Posts: 133
Joined: Mon Feb 29, 2016 5:11 pm

Re: curl not working after unsuccessful buster>bullseye upgrade

Post by novitibo »

restored again, but still

Code: Select all

curl: error while loading shared libraries: libhogweed.so.6: cannot open shared object file: No such file or directory
no errors in restore log


also looked up for /bin/curl and /usr/local/bin/curl folder in backup folder and there are missing too. should they?
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: curl not working after unsuccessful buster>bullseye upgrade

Post by Joulinar »

can you share following

Code: Select all

dpkg -l libhogweed*
ls -la /usr/lib/arm-linux-gnueabihf/libhogweed*
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
novitibo
Posts: 133
Joined: Mon Feb 29, 2016 5:11 pm

Re: curl not working after unsuccessful buster>bullseye upgrade

Post by novitibo »

Code: Select all

dpkg -l libhogweed*
sh: 0: getcwd() failed: No such file or directory
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name              Version         Architecture Description
+++-=================-===============-============-====================================================
ii  libhogweed4:armhf 3.4.1-1+deb10u1 armhf        low level cryptographic library (public-key cryptos)

Code: Select all

ls -la /usr/lib/arm-linux-gnueabihf/libhogweed*
-rw-r--r-- 1 root root 341988 Jun 11 19:53 /usr/lib/arm-linux-gnueabihf/libhogweed.a
lrwxrwxrwx 1 root root     17 Jun 11 19:53 /usr/lib/arm-linux-gnueabihf/libhogweed.so -> libhogweed.so.4.5
lrwxrwxrwx 1 root root     17 Jun 11 19:53 /usr/lib/arm-linux-gnueabihf/libhogweed.so.4 -> libhogweed.so.4.5
-rw-r--r-- 1 root root 190776 Jun 11 19:53 /usr/lib/arm-linux-gnueabihf/libhogweed.so.4.5
User avatar
novitibo
Posts: 133
Joined: Mon Feb 29, 2016 5:11 pm

Re: curl not working after unsuccessful buster>bullseye upgrade

Post by novitibo »

after another bulsseye upgrade - no ifup was found in system - i remember it was in autopurge list
so I restord old image and just forget the upgrade for now (maybe this whole curl thing was only in my case, but ifup - i think it shouldn't be in purge list)
thank u 4 ur support!
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: curl not working after unsuccessful buster>bullseye upgrade

Post by Joulinar »

:? We already have a larger amount of people who completed the upgrade successful. Personally I did the upgrade 10 times in meantime for testing purposes. And ifupdown never got purged. You are first one reporting it. Would be interesting to find out why it happens in your case.

@MichaIng
Any ideas?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
omavoss
Posts: 77
Joined: Thu Sep 24, 2020 11:08 pm

curl: error while loading shared libraries

Post by omavoss »

Please help me by eliminating this error:

Code: Select all

#### Details:
- Date           | Sat Sep 11 10:58:05 CEST 2021
- DietPi version | v7.4.2 (MichaIng/beta)
- Image creator  | DietPi Core Team
- Pre-image      | Raspbian Lite
- Hardware       | RPi 3 Model B (armv7l) (ID=3)
- Kernel version | `Linux DietPi 5.10.60-v7+ #1449 SMP Wed Aug 25 15:00:01 BST 2021 armv7l GNU/Linux`
- Distro         | buster (ID=5,RASPBIAN=1)
- Command        | `curl -ILfvm 5 https://download.yacy.net/yacy_v1.924_20210209_10069.tar.gz`
- Exit code      | 127
- Software title | DietPi-Software
#### Steps to reproduce:
<!-- Explain how to reproduce the issue -->
1. ...
2. ...
#### Expected behaviour:
<!-- What SHOULD happen? -->
- ...
#### Actual behaviour:
<!-- What IS happening? -->
- ...
#### Extra details:
<!-- Please post any extra details that might help solve the issue -->
- ...
#### Additional logs:
```
curl: error while loading shared libraries: libhogweed.so.6: cannot open shared object file: No such file or directory
Thank you.
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: curl: error while loading shared libraries

Post by Joulinar »

@omavoss
I moved your post into this topic as it's basically same issue with cutl. Until now we do not have a solution as it is quite a strange issue. curl on Buster seems to search for libraries from Bullseye.

Question: did you have done any Bullseye upgrade and maybe a restore afterwards or was your system staying on Buster all the time?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: curl: error while loading shared libraries

Post by Joulinar »

ok today I was able to force the issue on my test system
  1. install a fresh system using DietPi image for RPi Buster armv6
  2. create a backup using dietpi-backup 1
  3. perform an update to Bullseye using our blog post
  4. create a restore using dietpi-backup -1
afterwards curl was failing

Code: Select all

root@DietPi3:~# curl --help
curl: error while loading shared libraries: libhogweed.so.6: cannot open shared object file: No such file or directory
root@DietPi3:~#
And I hope some good news, I found a way on my system to get it back working
  1. G_AGP curl
  2. apt install --reinstall libhogweed4
  3. reboot
  4. apt install curl
At least for me curl was working afterwards again.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
omavoss
Posts: 77
Joined: Thu Sep 24, 2020 11:08 pm

Re: curl: error while loading shared libraries

Post by omavoss »

@Joulinar:

Unfortunately, the error still exists:

Code: Select all

 - Device model : RPi 3 Model B (armv7l)
 - Uptime : up 2 minutes
 - CPU temp : 67'C : 152'F (Running hot, not recommended)
 - LAN IP : 192.168.115.30 (eth0)
 - Freespace (RootFS) : 1,6G
 - Freespace (userdata) : 1,6G
curl: error while loading shared libraries: libhogweed.so.6: cannot open shared object file: No such file or directory

Code: Select all

root@DietPi:~# curl --help
curl: error while loading shared libraries: libhogweed.so.6: cannot open shared object file: No such file or directory
root@DietPi:~#

What can be done?
thank you very much.
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: curl: error while loading shared libraries

Post by Joulinar »

i tested it again. Reinstall of libhogweed4 could be skipped. For me it`s down to following

- purge curl
- reboot
- install curl

Important step is to reboot in between.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply