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

后端 未结 2 1776
情深已故
情深已故 2021-01-03 23:56

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 prelo         


        
相关标签:
2条回答
  • 2021-01-04 00:37

    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
    
    0 讨论(0)
  • 2021-01-04 00:57

    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
    
    0 讨论(0)
提交回复
热议问题