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
1
vote
1 answer
Error when running sudo snap revert through SSH using Fabric under Jenkins
I am trying to use Fabric to run a snap revert command in a remote Ubuntu 18.14 machine through ssh. The command works when I run it manually, but it fails when I try to run it through Jenkins.
Here is the code I use:
from fabric import Config,…

chaos.ct
- 1,001
- 1
- 7
- 18
1
vote
1 answer
Cannot run my Snap package (built from Rust App)
This is how my snapcraft.yaml looks like (at the root of my Rust project):
name: keval-snap
base: core20
version: '0.1'
summary: Single-line elevator pitch for your amazing snap # 79 char long summary
description: |
This is my-snap's…

Keval Bhogayata
- 4,422
- 3
- 13
- 36
1
vote
0 answers
how get access to host mysql database from my snap app
I'm building a nodejs app using sequalize to handle the mysql database. Now I'm trying to snap that app and I found an error connecting to mysql from the snap service. Which should be the correct way of snapping a nodejs app and get access to mysql…

Alejandro Alfonso
- 211
- 2
- 8
1
vote
2 answers
Not able to create flutter linux desktop application snapcraft build
I have developed a Linux desktop application with the help of flutter but now I am facing an error when I am trying to create the snapcraft build in #Flutter Project and the project is running perfectly when I am run on a Linux system . Please let…

Nikhil Deshmukh
- 11
- 2
1
vote
2 answers
Snapcraft python script with module, staging issues
I am building a snap to test integration of a python script and a python SDK with snapcraft and there appears to be a conflict when two python 'parts' are built in the same snap.
What is the best way to build a snap with multiple python modules?
I…

iotdevAN
- 11
- 3
1
vote
1 answer
"store.RevisionNotAvailable" error while installing a package with Snapcraft
I was trying to install microk8s on my Ubuntu 20.04.3 LTS by executing this command:
sudo snap install microk8s -- classic
However I got this error:
error: store.RevisionNotAvailable with 2 snaps
Does anyone know what is causing this error and how…

kedanek
- 333
- 1
- 10
1
vote
1 answer
systemd system to schedule daily reboot
I want to schedule a daily reboot on ubuntu core. There is no cron on ubuntu core.
But I can use systemd services
I have created a reboot.service and a reboot.timer
[Unit]
Description=reboot…

Jake He
- 2,417
- 3
- 29
- 41
1
vote
0 answers
How to access /usr/bin/ from snap?
I am developing a snap in Go but I have a problem when I try to run this command:
args := []string{"journalctl", "-n 200", "--no-pager"}
output, err := RunCMD("sudo", args, true)
If I run it on the Ubuntu Core machine terminal it works. The…

fra96
- 43
- 6
1
vote
2 answers
unable to run simple jenkins docker node build (home directories outside of /home are not currently supported)
I am using a very simple script mentioned below as per the official docs (https://www.jenkins.io/doc/book/pipeline/docker/):
pipeline {
agent {
docker { image 'node:14-alpine' }
}
stages {
stage('Test') {
…

jay shah
- 903
- 6
- 21
1
vote
1 answer
electron-builder snap installer confusing home directory
This is a follow up of the previous question Defult home directory for snap installer using electron-builder, asked as requested there.
I'm currently building a electron app an building the installer like .deb and .snap with electron-builder. My app…

Eular
- 1,707
- 4
- 26
- 50
1
vote
1 answer
Default home directory for snap installer using electron-builder
I'm currently building a electron app an building the installer like .deb and .snap with electron-builder. Inside the app I need the access the user home directory for some reason and I'm using process.env.HOME || process.env.USERPROFILE to get the…

Eular
- 1,707
- 4
- 26
- 50
1
vote
0 answers
How to make my electron app install-able on Linux
Recently made build an application using Electron Framework. It is very basic. Now I have built it for Linux and published it to snap-store.
Now I want the application to be install-able by the apt-get command.
Is there any such way that I can do…

GN Vageesh
- 322
- 1
- 14
1
vote
2 answers
Problem in installation of snapd on Oracle Linux Server 7.6 (based on RHEL 7.6) using yum
First step is - sudo yum install snapd
This seems to work fine download the dependencies and all and setup is completed
Installed Version : snapd.x86_64 0:2.45-1.el7
Second step is - sudo systemctl enable --now snapd.socket
Gives output as >…

Chinmay Singh
- 41
- 12
1
vote
4 answers
Error when building flutter app for Linux snap package using snapcraft - CMake step failing
This question has been asked here and (erroneously) closed as a duplicate with a link to an old CMAKE question. Probably the closing person did not read the question properly. This has nothing to do with plain CMake configuration, unless you want to…

amirzolal
- 168
- 1
- 9
1
vote
1 answer
Snapcraft: Cannot find executable
I'm trying to create a snap package, and have gotten snapcraft to build one.
However, when trying to run the binary, after installing my freshly built snap, I get:
cannot snap-exec: cannot exec "/snap/foobar/x1/snap/command-chain/snapcraft-runner":…

henry
- 140
- 12