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

Via dietpi-software:

 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

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)

I noticed that I have the identical problem with Certbot.

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.

Resolved by myself only temporary :

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??

Do

ldconfig

Should make it permanent.

John

Ok, changed to SOLVED.
But take a look to improve the change on v160… :rofl: