curl: error while loading shared libraries

Having issues with your DietPi installation or found a bug? Post it here.
omavoss
Posts: 81
Joined: Thu Sep 24, 2020 11:08 pm

Re: curl: error while loading shared libraries

Post by omavoss »

Yes, that would be good.

If you wish, my postings can be shortened to a necessary minimum or parts of the thread that do not apply can be moved.

Thanks again for everything. :)
User avatar
Joulinar
Posts: 6072
Joined: Sat Nov 16, 2019 12:49 am

Re: curl: error while loading shared libraries

Post by Joulinar »

ok I adjusted the post to increase readability.

And you should not use ifconfig anymore as it depreciated some years ago and has been replaced by ip suite. ;)
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: 6072
Joined: Sat Nov 16, 2019 12:49 am

Re: curl: error while loading shared libraries

Post by Joulinar »

for the once who still struggle with curl, pls try following

Code: Select all

apt install --reinstall librtmp1
curl -I https://dietpi.com/
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
omavoss
Posts: 81
Joined: Thu Sep 24, 2020 11:08 pm

Re: curl: error while loading shared libraries

Post by omavoss »

Thank you very much, I have executed the commands:

Code: Select all

root@DietPi:~# apt install --reinstall librtmp1
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
0 aktualisiert, 0 neu installiert, 1 erneut installiert, 0 zu entfernen und 0 nicht aktualisiert.
Es müssen 54,2 kB an Archiven heruntergeladen werden.
Nach dieser Operation werden 0 B Plattenplatz zusätzlich benutzt.
Holen:1 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf librtmp1 armhf 2.4+20151223.gitfa8646d.1-2+b2 [54,2 kB]
Es wurden 54,2 kB in 1 s geholt (88,6 kB/s).
(Lese Datenbank ... 99074 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../librtmp1_2.4+20151223.gitfa8646d.1-2+b2_armhf.deb ...
Entpacken von librtmp1:armhf (2.4+20151223.gitfa8646d.1-2+b2) über (2.4+20151223.gitfa8646d.1-2+b2) ...
librtmp1:armhf (2.4+20151223.gitfa8646d.1-2+b2) wird eingerichtet ...
Trigger für libc-bin (2.31-13+rpt2+rpi1) werden verarbeitet ...
root@DietPi:~# curl -I https://dietpi.com/
HTTP/2 200
date: Tue, 21 Sep 2021 15:11:26 GMT
content-type: text/html; charset=utf-8
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
x-xss-protection: 1; mode=block
x-robots-tag: all
x-download-options: noopen
x-permitted-cross-domain-policies: none
referrer-policy: no-referrer-when-downgrade
expect-ct: enforce, max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
content-security-policy: upgrade-insecure-requests; frame-ancestors 'self'; form-action 'self'; base-uri https://dietpi.com/matomo/index.php https://dietpi.com/grafana/; default-src 'none'; object-src 'none'; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com data:; img-src * data:; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://unpkg.com https://google.com/recaptcha/ https://www.google.com/recaptcha/ https://www.gstatic.com/recaptcha/; frame-src 'self' https://www.youtube-nocookie.com https://google.com/recaptcha/ https://www.google.com/recaptcha/; manifest-src 'self'; connect-src 'self' https://api.github.com
permissions-policy: accelerometer=(), autoplay=(), camera=(), document-domain=(), encrypted-media=(), fullscreen=(self "https://www.youtube-nocookie.com"), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), midi=(), payment=(), usb=(), screen-wake-lock=()
cache-control: public, max-age=86399
strict-transport-security: max-age=31536000; includeSubDomains; preload
last-modified: Sat, 18 Sep 2021 19:42:35 GMT
vary: Accept-Encoding
content-language: en
cf-cache-status: DYNAMIC
report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=CSTzNyFEqqZGlsY9DiXfFdTmt1bBPJ4T3XKAZiY3KW2DnQVAQTJ%2B9LDLmOdDvbs9F%2FETVk3zltuNPMKvRxx9So8BGPDkpr1rdiwWB6TpqKFIRq%2Bske0rTLbxfTYjOdNu8PX%2BObys4uM5"}],"group":"cf-nel","max_age":604800}
nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
server: cloudflare
cf-ray: 692439dd29942c2e-FRA
alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400, h3-28=":443"; ma=86400, h3-27=":443"; ma=86400

root@DietPi:~#
I will look into the IP package, thank you also for this advice and kind regards.
User avatar
MichaIng
Site Admin
Posts: 3372
Joined: Sat Nov 18, 2017 6:21 pm

Re: curl: error while loading shared libraries

Post by MichaIng »

Great, so curl works now. As this was confirmed in another case as well, another point to add to the guide.
User avatar
Joulinar
Posts: 6072
Joined: Sat Nov 16, 2019 12:49 am

Re: curl: error while loading shared libraries

Post by Joulinar »

If I'm not mistaken, @omavoss upgrade to Bullseye before and I guess curl was already working :D
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
omavoss
Posts: 81
Joined: Thu Sep 24, 2020 11:08 pm

Re: curl: error while loading shared libraries

Post by omavoss »

Yes, that's right. Bullseye is on.

I apologise for causing confusion, I can only translate German to English via Deepl. So it is very difficult for me to express myself understandably.

Many greetings.
User avatar
Joulinar
Posts: 6072
Joined: Sat Nov 16, 2019 12:49 am

Re: curl: error while loading shared libraries

Post by Joulinar »

no problem. if needed write me a private message in German if needed. Something we understand ;)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply