Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ERROR: ld.so: object 'libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded

Running into this issue when working with Hugo and the AWS CLI on Ubuntu 18.04.

ERROR: ld.so: object 'libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (failed to map segment from shared object): ignored.

This is a fresh install of Ubuntu 18.04, Hugo, and AWS CLI.

like image 319
CommandZ Avatar asked Dec 18 '18 03:12

CommandZ


2 Answers

Found the answer after a bit of web searching here: https://github.com/PX4/Firmware/issues/9409

Solution

If you update your .bashrc with the below line it should fix the issue:

export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0

In addition, you may need to install the following package:

sudo apt install gtk3-nocsd

An Alternative

Another user reported installing the following package fixed their issue:

sudo apt-get install libgtk3-nocsd0:i386
like image 83
CommandZ Avatar answered Nov 06 '22 09:11

CommandZ


Running

$ sudo grep -r LD_PRELOAD /etc $HOME

I found lots of configuration files of the removed package gtk3-nocsd like

/etc/X11/Xsession.d/51gtk3-nocsd-detect: export LD_PRELOAD="libgtk3-nocsd.so.0${LD_PRELOAD:+:$LD_PRELOAD}"

Just remove those old configuration with:

$ sudo apt-get purge gtk3-nocsd
like image 42
Andrei Emeltchenko Avatar answered Nov 06 '22 10:11

Andrei Emeltchenko