6

I have installed Zotero-snap in Ubuntu 20.04.

When I try to update Zotero, or when I try to browse to change the default PDF viewer in Zotero, I get a permission denied error. Check this image:

enter image description here

The permissions of some important directories is shown below:

Permissions

I have even turned on the permission to read and write on removable storage devices for the app as shown below:

Permissions from store

Trying to run Zotero with sudo gives me the following error:

enter image description here

What am I missing? What should I do to resolve this issue?

2 Answers2

6

Posting my above comment as an answer as apparently, this comes up for others, too:

The Snap package should disable updating from within the app -- as per its documentation, in-app update isn't supported (see snapcraft.io/zotero-snap) and handle updates itself. Given that it's also not up to date with Zotero, I'd recommend using the deb/aptitude package here, which is very reliable.

Alternatively, you can directly download the tarball from Zotero, unpack it to a convenient location such as ~/.local/bin (make sure you have write access to the location with your regular user account -- otherwise, you'll run into the same issue again) and just run Zotero from the terminal.

Since the deb package basically does the same thing and handles dependencies and creates the launcher, I'd go for that in almost all cases.

2

In my case kubuntu 22.04 there was a lock in /usr/lib/zotero

Try this:

sudo chmod 770 /usr/bin/zotero or sudo chmod -R 770 /opt/zotero

or both:

sudo chmod 770 /usr/bin/zotero && sudo chmod -R 770 /opt/zotero

I had to reboot.

In case of a personal machine you can give broader permission using 707 instead of 770.

See the source and comments here.

See explanation of chmod 770 here

Ultimately you can get the latest .deb file from:

https://mirror.mwt.me/zotero/deb/

Path for the .deb:
From official zotero page https://www.zotero.org/support/installation -->
Recommended community maintained https://github.com/retorquere/zotero-deb -->
Mirror https://mirror.mwt.me/zotero/deb/