Snapcraft is a build and packaging tool developed by Canonical which allows packaging the software in an entity called snap.
Questions tagged [snapcraft]
174 questions
16
votes
2 answers
What are conceptual and practical differences between containers (i.e. docker) and encapsulated packages (i.e. flatpack, snap)?
I read often that both concepts are quite different, but I could not find a good explanation about where the differences lie. Both bundle dependencies and restrict talking to the outside world.
When should I pack my app in a container for…

Boffin
- 1,197
- 2
- 11
- 18
11
votes
0 answers
ZOE ERROR (from /usr/lib/snap/snap): error opening parameter file
I package electron app on ubuntu 14.04 LTS using snapcraft.I build it by refering this link.Package was build successfully but when i install the package using following command
sudo snap install springbok_1.0.1_i386.snap
it shows the following…

Pitabas Prathal
- 1,006
- 1
- 12
- 15
9
votes
2 answers
How do i fix the snapd.socket no such file or directory error on MxLinux?
I've been trying to install a couple of apps using sudo snap install
But whenever I try this I always get the same error:
error: cannot communicate with server: Post http://localhost/v2/snaps/standard-notes: dial unix /run/snapd.socket:…

Shadoww
- 111
- 1
- 1
- 6
8
votes
2 answers
snap is unusable due to missing files
today, i tried to start vscode. i type code in dmenu and press enter. nothing happens. i do it a few more times, still nothing. now i try to open it in my terminal. code. i get an error:
/var/lib/snapd/snap/code/70/command-code.wrapper: line 2:…

c8h_
- 143
- 1
- 9
8
votes
3 answers
snap and gitlab-CI: error: cannot communicate with server: Post http://localhost/v2/snaps/hello-world
If I try to run snap under a gitlab-CI pipeline, installing the most simple package, it fails with:
$ snap install hello-world
error: cannot communicate with server: Post
http://localhost/v2/snaps/hello-world: dial unix /run/snapd.socket:
…

knocte
- 16,941
- 11
- 79
- 125
7
votes
0 answers
Docker via snap - Cannot connect to the Docker daemon on a year old installation
I've had Docker installed via Snap on Ubuntu 18.04 a year or so ago. I have around 5 images on there and worked quite a bit on them.
Today I get to work and the command sudo docker start 0e0 gives me:
Cannot connect to the Docker daemon at…

m_highlanderish
- 499
- 1
- 6
- 16
6
votes
1 answer
Snap packages: What is the purpose of the "staging" and "priming" steps?
I have successfully created and uploaded a snap package (the tutorials are great). However, I am left wondering what exactly happens during each of the build steps and how I might take advantage of them.
The process seems to be pull -> build ->…

Zak
- 12,213
- 21
- 59
- 105
5
votes
2 answers
VSCode icon is missing in app switcher on Ubuntu
After I installed VSCode using the the "Snap Store" on Ubuntu Mate 20.04 (Using compiz).
When I do the app switching with ALT+TAB the icon of the VSCode icon is missing.
The original path for the icon is at…

Pini Cheyni
- 5,073
- 2
- 40
- 58
5
votes
1 answer
Enabling live restore on docker isn't keeping the containers alive
I read the Enable Live Restore, but when I tried it.
ubuntu@ip-10-0-0-230:~$ cat /etc/docker/daemon.json
{
"live-restore": true
}
I started an nginx container in detached mode.
sudo docker run -d …

Ashwani
- 1,340
- 1
- 16
- 34
5
votes
1 answer
Availability of snapcraft on AlpineLinux
I was looking for compatibility between snap package management system and alpine linux but could not find any relevant resources. Is there any plan to make it available on alpine linux? Any progress being made in that regard?

Nasoo
- 53
- 1
- 3
5
votes
1 answer
Snapcraft custom LD_LIBRARY_PATH
When building a snap package, the wrapper script automatically adds $SNAP/usr/lib to the LD_LIBRARY_PATH.
When building my package on docker, some libraries (in this case liblapack and libblas) are installed in subdirectories:…

Geotob
- 2,847
- 1
- 16
- 26
4
votes
2 answers
`DllNotFoundException: libc` when trying to run a mono app inside a snap package
When trying to bundle a mono app in a snap package, I'm getting this exception when the app tries to make a simple HTTP request:
System.AggregateException: One or more errors occurred. ---> System.DllNotFoundException: libc
at (wrapper…

knocte
- 16,941
- 11
- 79
- 125
4
votes
1 answer
How to open the terminal from inside a snap application?
When i am trying to open my repo in the terminal from the Gitkraken GUI. It states:
There is no terminal configured in your settings. Would you like to configure your terminal now?
Next, I manually set the gnome terminal as custom terminal command…

Florian
- 725
- 6
- 27
4
votes
1 answer
How can I install Snapcraft in a docker image?
I have been trying to install Snapcraft inside of ubuntu 16.04. When I try to install it with:
snap install snapcraft --classic --beta
I get the error message:
error: cannot communicate with server: Post
http://localhost/v2/snaps/snapcraft: dial…

Caleb Bassham
- 1,874
- 2
- 16
- 33
4
votes
2 answers
How to install java (JDK) on snappy?
I am new to Snappy Ubuntu Core, I am building a system which client & server part. In client part I need to install a Java Application Agent. My client device using raspberry-pi-2 and I install Snappy on that.…

cauchuyennhocuatoi
- 461
- 3
- 8
- 21