insomnia: [bug] libgtk-x11-2.0.so.0: cannot open shared object file when installing plugins
- Insomnia Version: v5.16.1
- Operating System: ubuntu18.04
Details
When installing a plugin, Insomnia complains that /snap/insomnia/12/insomnia: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
Howere, there is libgtk-x11-2.0.so.0 in my computer.
locate libgtk-x11-2.0.so.0
/snap/chromium/274/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
/snap/chromium/274/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0.2400.30
/snap/electronic-wechat/7/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
/snap/electronic-wechat/7/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0.2400.30
/snap/gnome-3-26-1604/59/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
/snap/gnome-3-26-1604/59/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0.2400.30
/snap/insomnia/12/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
/snap/insomnia/12/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0.2400.30
/snap/slack/6/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
/snap/slack/6/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0.2400.30
/snap/tusk/15/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
/snap/tusk/15/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0.2400.30
/snap/zeal-casept/26/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
/snap/zeal-casept/26/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0.2400.30
/usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0
/usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0.2400.32
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0.2400.32
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 1
- Comments: 29 (1 by maintainers)
Manual installation worked for me. Note, that I have installed
Insomniaon Fedora usingsnap.insomnia-plugin-default-headersplugin):@gschier:
I suggest to put this into Plugins documentation. I can make a PR if desired.
Solution:
I use
yarn add insomnia-plugin-default-headersinstand ofnpm install insomnia-plugin-default-headers, it will download to the directory, it okHave the same issue on Fedora 29 when clicking on
Install plugin. Insomnia 6.3.2 installed usingsnapgtk3 is installed and dependency is at
/usr/lib64/libgtk-3.so.0For the ones who wish to use bash; You can add an executable script with the following contents:
Insomnia v2020.4.1 installed via snap v2.46.1+20.04 I am getting:
while trying to install plugin.
This shared library seems to be installed: /snap/gnome-3-28-1804/128/usr/lib/x86_64-linux-gnu/libX11.so.6 /snap/gnome-3-28-1804/128/usr/lib/x86_64-linux-gnu/libX11.so.6.3.0
Manually installing plugin as suggested above works.
solved for me !!!
I tried this but can’t install manually.
I just played around with this a bit and it seems like this happens in both the Snap and AppImage packages. I assume it has something to do with the plugin install script launching a new process. It seems to be breaking out of the app container and not being able to find the dependencies anymore.
For now, if you’re using Ubuntu, the
debpackage should work. You can also install plugins into the plugins folder manually usingnpmoryarn.