Unable to launch Zotero 5 on Ubuntu 16.04, error involves libgtk-3
Hello everyone,
I am running Ubuntu Gnome 16.04 on my computer, downloaded the Zotero 5 tarball, extracted it in my home folder, ran a terminal inside the folfer and typed "./zotero".
I get the following error:
"XPCOMGlueLoad error for file /home/nil/Zotero_linux-i686/libmozgtk.so:
libgtk-3.so.0: cannot open shared object file: No such file or directory
Couldn't load XPCOM."
It seems to me that zotero doesn't find "libtk-3.so.0". I tried reinstalling libgtk-3-0 from synaptic without success.
Any clues on how I could solve this problem?
Thank you by advance,
Nil
I am running Ubuntu Gnome 16.04 on my computer, downloaded the Zotero 5 tarball, extracted it in my home folder, ran a terminal inside the folfer and typed "./zotero".
I get the following error:
"XPCOMGlueLoad error for file /home/nil/Zotero_linux-i686/libmozgtk.so:
libgtk-3.so.0: cannot open shared object file: No such file or directory
Couldn't load XPCOM."
It seems to me that zotero doesn't find "libtk-3.so.0". I tried reinstalling libgtk-3-0 from synaptic without success.
Any clues on how I could solve this problem?
Thank you by advance,
Nil
Oct 25 05:56:40 idillingham zotero-standalone_zotero-standalone.desktop[4932]: XPCOMGlueLoad error for file /snap/zotero-standalone/36/libxul.so:
Oct 25 05:56:40 idillingham zotero-standalone_zotero-standalone.desktop[4932]: libdbus-glib-1.so.2: cannot open shared object file: No such file or directory
Oct 25 05:56:40 idillingham zotero-standalone_zotero-standalone.desktop[4932]: Couldn't load XPCOM.
The file "/snap/zotero-standalone/36/libxul.so" exists.
When I execute "/snap/zotero-standalone/36/zotero" through the shell then Zotero starts.
As with Nil, libgtk-3-0 is installed and at time of posting at the latest version (3.22.30-1ubuntu1).
Given that the problem seems to be one of launching Zotero, might the solution reside in the following line from "/snap/zotero-standalone/36/zotero.desktop"?
Exec=bash -c "$(dirname $(readlink -f %k))/zotero -url %U"
This executes correctly from the shell when executed within "/snap/zotero-standalone/36/". However, is it executed from an alternative location when started through the UI?
I tried modifying the above line, replacing the call to bash with the path to the zotero executable. However, I couldn't save "zotero.desktop", even with sudo. I don't know anything about snap, but these files seem to be read-only.
It looks like it was prepared as part of https://github.com/zotero/zotero/issues/1288 but never intended to be published.
You should try downloading and using the tarball instead (as nil did -- not sure what went wrong for them).
It would be useful for someone with permission to edit the wiki to update the Installation Instructions page:
https://www.zotero.org/support/installation
The option to install the snap release appears when the word Zotero is typed into the Ubuntu Software application. The above page suggests the snap release is supported -- "Linux users may wish to use a package for their distro rather than using the tarball directly." -- which isn't true. Consequently, it's easy to be fooled into not opening a shell!
Ubuntu 19.04
Description: was working fine. Then suddenly stopped launching
/zotero -ZoteroDebug
/opt/Zotero_linux-x86_64/updates/0/updater: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
dpkg -l libgtk2.0*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
un libgtk2.0-0 (no description available)
un libgtk2.0-bin (no description available)
looks like it somehow got uninstalled
$ sudo apt-get install --reinstall libgtk2.0-0
seems to solve the problem