[SOLVED] NetData and Certbot failed (v159) LD LIBRARY PATH

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
didi
Posts: 29
Joined: Thu Dec 08, 2016 11:02 pm

[SOLVED] NetData and Certbot failed (v159) LD LIBRARY PATH

Post by didi »

Via dietpi-software:

Code: Select all

 Error
Apt-get has failed:
- Apt string = --no-install-recommends zlib1g-dev
- Error code = 100
- Software Title = NetData: real-time performance monitoring
 - Apt log = /etc/dietpi/logs/dietpi-software_apt.log
Please report this issue to DietPi (INCLUDING THE APT LOG) so it
can be investigated.
DietPi-Software will now exit.
dietpi-software_apt.log

Code: Select all

Preconfiguring packages ...
(Reading database ... ^M(Reading database ... 5%^M(Reading database ... 10%^M(Reading database ... 15%^M(Reading database ... 20%^M(Reading database ... 25%^M(Reading database ... 30%^M(Readi$
Preparing to unpack .../libc6_2.19-18+deb8u10_armhf.deb ...

LD_LIBRARY_PATH contains the traditional /lib directory,
but not the multiarch directory /lib/arm-linux-gnueabihf.
It is not safe to upgrade the C library in this situation;
please remove the /lib/directory from LD_LIBRARY_PATH and
try again.

dpkg: error processing archive /var/cache/apt/archives/libc6_2.19-18+deb8u10_armhf.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1
Errors were encountered while processing:
 /var/cache/apt/archives/libc6_2.19-18+deb8u10_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Last edited by didi on Thu Dec 21, 2017 11:32 am, edited 2 times in total.
didi
Posts: 29
Joined: Thu Dec 08, 2016 11:02 pm

Re: NetData failed to Install (v159). Bug?

Post by didi »

I noticed that I have the identical problem with Certbot.

Code: Select all

LD_LIBRARY_PATH contains the traditional /lib directory,
but not the multiarch directory /lib/arm-linux-gnueabihf.
It is not safe to upgrade the C library in this situation;
please remove the /lib/directory from LD_LIBRARY_PATH and
try again.
didi
Posts: 29
Joined: Thu Dec 08, 2016 11:02 pm

Re: NetData and Certbot failed to Install (v159) LD LIBRARY

Post by didi »

Resolved by myself only temporary :

Code: Select all

export LD_LIBRARY_PATH=/lib/arm-linux-gnueabihf:/usr/lib:/usr/local/lib:/opt/vc/lib
So I just removed from the path /lib directory and added /lib/arm-linux-gnueabihf.

Admin, can you fix this in next version??
User avatar
johnvick
Legend
Posts: 693
Joined: Wed Jun 08, 2016 11:53 am
Location: New Zealand

Re: NetData and Certbot failed to Install (v159) LD LIBRARY

Post by johnvick »

Do

# ldconfig

Should make it permanent.

John
didi
Posts: 29
Joined: Thu Dec 08, 2016 11:02 pm

Re: [SOLVED] NetData and Certbot failed (v159) LD LIBRARY PA

Post by didi »

Ok, changed to SOLVED.
But take a look to improve the change on v160.. :lol:
Post Reply