ERROR: LD_PRELOAD cannot be preloaded :ignored

Nischaya Sharma picture Nischaya Sharma · Jul 9, 2019 · Viewed 9.5k times · Source

I just installed wine from this link to run windows applications in my ubuntu 18.04(Bionic beaver) but when i run wine --version the output was

ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
wine-4.0.1

I tried this solution but it didn't work for me so now here I am asking a similar question.

Answer

Florian Weimer picture Florian Weimer · Sep 8, 2019

This is a side effect of installing the gtk3-nocsd package. On 64-bit systems, it sets the LD_PRELOAD environment variable in a way that is incompatible with 32-bit multi-arch binaries. The error message is harmless. You can try removing the gtk3-nocsd package if you do not need it (apt remove gtk3-nocsd as root), or set the LD_PRELOAD environment variable when launching Wine:

LD_PRELOAD= wine