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

[亡魂溺海] 提交于 2019-12-06 21:47:22

问题


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.


回答1:


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

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

Another user reported installing the following package fixed their issue:

sudo apt-get install libgtk3-nocsd0:i386



回答2:


Running

$ sudo grep -r LD_PRELOAD /etc $HOME

I found lots 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


来源:https://stackoverflow.com/questions/53825857/error-ld-so-object-libgtk3-nocsd-so-0-from-ld-preload-cannot-be-preloaded

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!