Hi,
I used snap for the first time trying to install the command line util jq.
$ sudo snap install jq
But I get permission denied when trying to use it on any file in my home directory
$ sudo snap info jq
name: jq
summary: The jq command
publisher: Canonical✓
contact: snaps@canonical.com
license: unset
description: |
The jq command
commands:
- jq
snap-id: 8X4ytHZ2xX4kNkr8V2NU3AQuoMlglwED
tracking: stable
refresh-date: today at 09:41 CET
channels:
stable: 1.5+dfsg-1 2017-05-17 (6) 245kB -
candidate: 1.5+dfsg-1 2017-05-17 (6) 245kB -
beta: 1.6 2018-11-19 (11) 1MB -
edge: 1.6 2018-11-19 (11) 1MB -
installed: 1.5+dfsg-1 (6) 245kB -
$ sudo snap list jq
Name Version Rev Tracking Publisher Notes
jq 1.5+dfsg-1 6 stable canonical✓ -
I tried installing it using classic
$ sudo snap install --classic jq
Warning: flag --classic ignored for strictly confined snap jq
jq 1.5+dfsg-1 from Canonical✓ installed
So what is going on here? The only way to get it to work is by installing it using devmode
$ sudo snap install --devmode jq
jq 1.5+dfsg-1 from Canonical✓ installed
$ sudo snap list jq
Name Version Rev Tracking Publisher Notes
jq 1.5+dfsg-1 6 stable canonical✓ devmode
Is this a problem with the snap package or with snap. I can see that there exists a deb package for jq but cannot install it using apt anymore. I am running Ubuntu 19.10. Would appreciate to get any assistance on how to manage this.