2

I am running 22.04 and when I connect to a remote server via sftp I started getting the error below. EDIT: I just realized that this only occurs for PDF files, and PNG files open in a preview as expected.

22.04-evince-sftp-operation-not-supported

This started happening after updating from 20.04 and I am not sure how to diagnose the problem further, any ideas?

Joff
  • 514

2 Answers2

0

This was a different error than the question posted here Opening PDFs Denied Access Google Drive in Nautilus (Files)

but the solution there ended up working for me.

sudo ln -s /etc/apparmor.d/usr.bin.evince /etc/apparmor.d/disable/
Joff
  • 514
0

This is an issue with the Document Viewer (Evince), not Nautilus.

May be solved by re-installing the Document Viewer (Evince) but instead of using the Ubuntu .deb distribution, installing it as a Flatpak (from Flathub). The sandbox distribution design of Flatpak seems not to suffer from issues with AppArmor permissions.

  1. You need to uninstall the current package installation.
sudo apt-get remove evince
  1. If you already haven't done so, you need to install & activate Flatpak.
sudo apt install flatpak
  1. Activate the Flathub repository.
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
  1. Finally, install Document Viewer again (as a Flatpak distribution package).
flatpak install flathub org.gnome.Evince