Questions tagged [snap]

These questions are about Snappy (software development and package management system).

At start snappy was designed and built by Canonical for the Ubuntu phone operating system. Now, snappy works on wide range of Linux distributions.

The main terms of snappy are snaps (packages itself), snap (file format of packages), snapcraft (tools for packaging software).

More overview of snappy on Wikipedia - Snappy (package_manager). More overview of snapcraft on official site.

151 questions
62
votes
2 answers

Install specific previous version of package using snap?

I would like to install kubectl version 1.2.4 on a machine. The Kubernetes documentation recommends using snap for installation on Ubuntu. snap install --help is not very useful, the one promising parameter --revision= doesn't work: $ sudo snap…
Cory Klein
  • 18,391
  • 26
  • 81
  • 93
31
votes
1 answer

snap /dev/loop at 100% utilization -- no free space

Free space: thufir@dur:~$ thufir@dur:~$ df -h Filesystem Size Used Avail Use% Mounted on udev 3.9G 0 3.9G 0% /dev tmpfs 794M 9.8M 785M 2% /run /dev/mapper/ubuntu--vg-root …
Thufir
  • 1,810
  • 6
  • 33
  • 60
24
votes
2 answers

What are the dangers of using snap's classic confinement?

While following a video tutorial on Linux bash scripting, the teacher uses atom for editor. When I did I tried to install atom : sudo snap install atom I got the message: error: This revision of snap "atom" was published using classic confinement…
Philippe Moisan
  • 353
  • 1
  • 2
  • 5
19
votes
2 answers

What is the NSFS filesystem?

The kernel contains a filesystem, nsfs. snapd creates a nsfs mount under /run/snapd/ns/.mnt for each installed snap. ls shows it as a 0 byte file. The kernel source code does not seem to contain any documentation or comments about it. The…
Gert van den Berg
  • 1,491
  • 1
  • 10
  • 19
17
votes
2 answers

Is it safe to delete these snaps?

UPDATE: No, it is not safe to delete these snaps. I deleted them and can no longer open three of my applications. Attempt at opening Visual Studio Code: ~$ code internal error, please report: running "code" failed: cannot find installed snap "code"…
silkthyme
  • 181
  • 1
  • 1
  • 7
15
votes
2 answers

How to enable snaps support on Linux Mint 20?

In Linux Mint 20, if I want to enable snap support to install snap packages, the usual command sudo apt install snapd to install snapd does not work. As you can see in the picture below, if I run the command, it throws an error saying the "snapd…
sarru1291
  • 493
  • 1
  • 3
  • 10
10
votes
2 answers

What is the purpose of Snap for Linux?

One of the things I loved about Linux when I first switched was its package management. There are a few projects that bring Linux-style package management to Mac (Homebrew) and Windows (Chocolatey). I'm increasingly seeing apps that provide Snap…
9
votes
4 answers

"Permission denied" with ffmpeg (via snap) on external drive

I got a new drive and I can copy files fine with simple cp on the drive. However for some weird reason I get Permission denied with ffmpeg. Permissions seem fine unless I'm missing something > ll /media/manos/6TB/ drwxrwxrwx 13 manos 4096 Apr…
Pithikos
  • 3,214
  • 4
  • 23
  • 27
7
votes
2 answers

snap package failing: /user.slice/user-1000.slice/session-1.scope is not a snap cgroup

Suddenly, snap packages are failing to run in my system with following error: /user.slice/user-1000.slice/session-1.scope is not a snap cgroup OS: Debian 11 Kernel: 5.10.0-12-amd64 $ SNAPD_DEBUG=1 snap run slack 2022/03/23 18:48:37.614818…
Ashfaqur Rahaman
  • 242
  • 5
  • 12
7
votes
2 answers

Snap cannot create user data directory: Not a directory

My PC fails to run snap packages, when I try I get: 2021/07/31 20:56:38.255535 cmd_run.go:576: WARNING: XAUTHORITY environment value is not a clean path: "/mnt/e664d184-8567-4278-93ce-c986567c66af/home/iaquobe/.Xauthority" cannot create user data…
iaquobe
  • 281
  • 1
  • 4
  • 13
7
votes
2 answers

How can I manually download a snap package? For example, with wget?

How can I manually download a snap package? Preferably as a non-root user with wget? For example, the Snapcraft page for Chromium is here: https://snapcraft.io/chromium How can I find the URL(s) at which Chromium's snap files can be downloaded?
mpb
  • 1,501
  • 1
  • 15
  • 23
6
votes
2 answers

set or pass an environment variable to a snap application (reach pulseaudio server on another machine via tcp from within a snap application)

dear power users and devolopers, i am encountering some problems, adjusting to the way snap works. i always embraced all the possibilities that a GNU/Linux distribution offers me. however, i feel that snap packages are keeping these possibilities…
coffeekid
  • 91
  • 3
6
votes
0 answers

Why are the permissions of /run/user/1000 wrong

My /run/user/1000 directory is owned by root - as far as I understand it, it should be owned by my user - I'm unable to start any snap programs (e.g., slack) as I get this error: mkdir: cannot create directory ‘/run/user/1000/snap.slack’: Permission…
Zack Newsham
  • 511
  • 1
  • 5
  • 4
6
votes
1 answer

Safe to remove snap on Ubuntu Server?

I don't use snap and never install snap packages. On a new Ubuntu Server 18.04, snap list shows: No snaps are installed yet. Is it safe to remove it? I'm not sure what weird dependencies are going on in the background - so I don't want to…
lonix
  • 1,639
  • 18
  • 32
6
votes
2 answers

How to fix Fontconfig error: failed reading config file

On Debian testing, whenever I run a browser from the terminal, I get four lines of the following error: Fontconfig error: failed reading config file This doesn't seem to cause any problems in any application, only in Firefox Quantum installed via…
iuvbio
  • 171
  • 1
  • 9
1
2 3
10 11