I try to execute snapcraft
command on my snapcraft.yaml
file, but got this error:
Pulling my_package
Failed to pull source: 'my_package.orig_aarch64.tar.gz' not found.
Recommended resolution: Make sure the source path is correct and accessible.
Tried to access by absolute path, but still fails:
Pulling my_package
Failed to pull source: '/home/kbuilder/snap/my_package.orig_aarch64.tar.gz' not found.
Recommended resolution: Make sure the source path is correct and accessible.
However, the ls
command shows the tarball is in the directory:
+++ ls -al /home/kbuilder/snap
total 720232
drwx------ 5 kbuilder kbuilder 4096 Mar 14 03:58 .
drwxr-x--- 7 kbuilder kbuilder 4096 Mar 14 03:57 ..
-rw-r--r-- 1 kbuilder kbuilder 63537239 Mar 14 03:58 my_package.orig_aarch64.tar.gz
drwxr-xr-x 4 kbuilder kbuilder 4096 Mar 14 03:58 lxd
drwxr-xr-x 4 kbuilder kbuilder 4096 Mar 14 03:58 multipass
drwxr-xr-x 4 kbuilder kbuilder 4096 Mar 14 03:57 snapcraft
-rw-rw-r-- 1 kbuilder kbuilder 3542 Mar 14 03:58 snapcraft.yaml
My snapcraft.yaml looks like this:
name: my_package
version: VERSION
summary: my package
description: my package services
grade: stable
confinement: classic
base: core22
environment:
PATH: $SNAP/usr/bin/:$PATH
architectures:
- build-on: amd64
- build-on: arm64
parts:
my-package:
plugin: dump
source:
- on amd64: /home/kbuilder/snap/my_package.orig_amd64.tar.gz
- on arm64: /home/kbuilder/snap/my_package.orig_aarch64.tar.gz
source-type: local
stage-packages:
- on amd64:
- libncursesw5
- libtinfo5
- libdb5.3
- libbz2-1.0
- zlib1g
- libgcc1
- libstdc++6
- liblzma5
- libc6
Anyone know how to solve this? Thanks!