[Errno 1] Operation not permitted: 'snapcraft.yaml'

Hello I have a rust gui app that I am trying to build using snapcraft in development mode

here is the yaml file

name: robozapress
version: git
summary: A Bookmarker App built in rust that scrapes your google chrome saved bookmarks

description: |
  Roboza Press Is A Bookmarker App built in rust that scrapes you google chrome saved bookmarks and shows them in a good way with the ability to filter and search in them

  composable:
  - Filter Bookmarks.
  - Search in bookmarks
  - Navigate to your bookmarks easily

base: core20
confinement: devmode


parts:
  robozapress:
    plugin: rust
    source: .
    build-packages:
      - gcc
      - make
      - pkg-config
      - openssl

apps:
  robozapress:
    command: bin/robozapress

I run this command inside my project directory to start initialize the vm

snap run snapcraft

it starts to initialize the vm and download the needed packages but at specific process it fails with this error

[Errno 1] Operation not permitted: 'snapcraft.yaml'                             
We would appreciate it if you anonymously reported this issue.
No other data than the traceback and the version of snapcraft in use will be sen

here is the full log

Launching a VM.
Build environment is in unknown state, cleaning first.
info failed: The following errors occurred:
instance "snapcraft-robozapress" does not exist
Launched: snapcraft-robozapress                                                 
Get:1 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB]                 
Get:2 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:4 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [1,317 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages [970 kB]
Get:6 http://archive.ubuntu.com/ubuntu focal/main Translation-en [506 kB]
Get:7 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages [144 kB]
Get:8 http://security.ubuntu.com/ubuntu focal-security/main Translation-en [231 kB]
Get:9 http://archive.ubuntu.com/ubuntu focal/multiverse Translation-en [104 kB]
Get:10 http://archive.ubuntu.com/ubuntu focal/restricted amd64 Packages [22.0 kB]
Get:11 http://archive.ubuntu.com/ubuntu focal/restricted Translation-en [6,212 B]
Get:12 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [8,628 kB]
Get:13 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [20.7 kB]
Get:14 http://security.ubuntu.com/ubuntu focal-security/multiverse Translation-en [5,196 B]
Get:15 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [799 kB]
Get:16 http://security.ubuntu.com/ubuntu focal-security/restricted Translation-en [114 kB]
Get:17 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [692 kB]
Get:18 http://security.ubuntu.com/ubuntu focal-security/universe Translation-en [121 kB]
Get:19 http://archive.ubuntu.com/ubuntu focal/universe Translation-en [5,124 kB]
Get:20 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1,643 kB]
Get:21 http://archive.ubuntu.com/ubuntu focal-updates/main Translation-en [312 kB]
Get:22 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [23.8 kB]
Get:23 http://archive.ubuntu.com/ubuntu focal-updates/multiverse Translation-en [7,312 B]
Get:24 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [853 kB]
Get:25 http://archive.ubuntu.com/ubuntu focal-updates/restricted Translation-en [122 kB]
Get:26 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [910 kB]
Get:27 http://archive.ubuntu.com/ubuntu focal-updates/universe Translation-en [202 kB]
Fetched 23.4 MB in 13s (1,752 kB/s)                                            
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
  dbus-user-session libpam-systemd linux-image-5.4.0-104-generic
  linux-modules-5.4.0-104-generic
The following packages will be upgraded:
  base-files binutils binutils-common binutils-x86-64-linux-gnu bsdutils
  busybox-initramfs ca-certificates cloud-init cpp-9 distro-info-data fdisk
  g++-9 gcc-9 gcc-9-base initramfs-tools initramfs-tools-bin
  initramfs-tools-core libasan5 libbinutils libblkid1 libc-bin libc-dev-bin
  libc6 libc6-dev libcryptsetup12 libctf-nobfd0 libctf0 libexpat1 libfdisk1
  libgcc-9-dev libmount1 libnetplan0 libpam-modules libpam-modules-bin
  libpam-runtime libpam0g libpython3.8-minimal libpython3.8-stdlib libseccomp2
  libsmartcols1 libssl1.1 libstdc++-9-dev libsystemd0 libudev1 libuuid1
  linux-base linux-image-virtual linux-libc-dev locales mount netplan.io
  openssh-client openssh-server openssh-sftp-server openssl python3.8
  python3.8-minimal snapd squashfs-tools systemd systemd-sysv
  systemd-timesyncd tzdata udev util-linux
65 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 122 MB of archives.
After this operation, 119 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 base-files amd64 11ubuntu5.5 [60.5 kB]
Get:2 http://security.ubuntu.com/ubuntu focal-security/main amd64 libc6-dev amd64 2.31-0ubuntu9.7 [2,518 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libpam0g amd64 1.3.1-5ubuntu4.3 [55.4 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libpam-modules-bin amd64 1.3.1-5ubuntu4.3 [41.2 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libpam-modules amd64 1.3.1-5ubuntu4.3 [260 kB]
Get:6 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libssl1.1 amd64 1.1.1f-1ubuntu2.11 [1,321 kB]
Get:7 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libpam-runtime all 1.3.1-5ubuntu4.3 [37.3 kB]
Get:8 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 openssl amd64 1.1.1f-1ubuntu2.11 [621 kB]
Get:9 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libnetplan0 amd64 0.103-0ubuntu5~20.04.6 [53.4 kB]
Get:10 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 initramfs-tools all 0.136ubuntu6.7 [9,248 B]
Get:11 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 initramfs-tools-core all 0.136ubuntu6.7 [47.8 kB]
Get:12 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 initramfs-tools-bin amd64 0.136ubuntu6.7 [10.8 kB]
Get:13 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 linux-base all 4.5ubuntu3.7 [17.6 kB]
Get:14 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 netplan.io amd64 0.103-0ubuntu5~20.04.6 [125 kB]
Get:15 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 openssh-sftp-server amd64 1:8.2p1-4ubuntu0.4 [51.5 kB]
Get:16 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 openssh-server amd64 1:8.2p1-4ubuntu0.4 [377 kB]
Get:17 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 openssh-client amd64 1:8.2p1-4ubuntu0.4 [671 kB]
Get:18 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 cloud-init all 21.4-0ubuntu1~20.04.1 [476 kB]
Get:19 http://security.ubuntu.com/ubuntu focal-security/main amd64 libc-dev-bin amd64 2.31-0ubuntu9.7 [71.6 kB]
Get:20 http://security.ubuntu.com/ubuntu focal-security/main amd64 linux-libc-dev amd64 5.4.0-104.118 [1,117 kB]
Get:21 http://security.ubuntu.com/ubuntu focal-security/main amd64 libc6 amd64 2.31-0ubuntu9.7 [2,714 kB]
Get:22 http://security.ubuntu.com/ubuntu focal-security/main amd64 bsdutils amd64 1:2.34-0.1ubuntu9.3 [63.0 kB]
Get:23 http://security.ubuntu.com/ubuntu focal-security/main amd64 libblkid1 amd64 2.34-0.1ubuntu9.3 [136 kB]
Get:24 http://security.ubuntu.com/ubuntu focal-security/main amd64 libuuid1 amd64 2.34-0.1ubuntu9.3 [19.9 kB]
Get:25 http://security.ubuntu.com/ubuntu focal-security/main amd64 libfdisk1 amd64 2.34-0.1ubuntu9.3 [175 kB]
Get:26 http://security.ubuntu.com/ubuntu focal-security/main amd64 libmount1 amd64 2.34-0.1ubuntu9.3 [149 kB]
Get:27 http://security.ubuntu.com/ubuntu focal-security/main amd64 libsmartcols1 amd64 2.34-0.1ubuntu9.3 [100 kB]
Get:28 http://security.ubuntu.com/ubuntu focal-security/main amd64 fdisk amd64 2.34-0.1ubuntu9.3 [120 kB]
Get:29 http://security.ubuntu.com/ubuntu focal-security/main amd64 util-linux amd64 2.34-0.1ubuntu9.3 [1,021 kB]
Get:30 http://security.ubuntu.com/ubuntu focal-security/main amd64 locales all 2.31-0ubuntu9.7 [3,871 kB]
Get:31 http://security.ubuntu.com/ubuntu focal-security/main amd64 libc-bin amd64 2.31-0ubuntu9.7 [636 kB]
Get:32 http://security.ubuntu.com/ubuntu focal-security/main amd64 systemd-sysv amd64 245.4-4ubuntu3.15 [10.3 kB]
Get:33 http://security.ubuntu.com/ubuntu focal-security/main amd64 udev amd64 245.4-4ubuntu3.15 [1,364 kB]
Get:34 http://security.ubuntu.com/ubuntu focal-security/main amd64 libudev1 amd64 245.4-4ubuntu3.15 [77.2 kB]
Get:35 http://security.ubuntu.com/ubuntu focal-security/main amd64 systemd-timesyncd amd64 245.4-4ubuntu3.15 [28.1 kB]
Get:36 http://security.ubuntu.com/ubuntu focal-security/main amd64 libcryptsetup12 amd64 2:2.2.2-3ubuntu2.4 [166 kB]
Get:37 http://security.ubuntu.com/ubuntu focal-security/main amd64 libseccomp2 amd64 2.5.1-1ubuntu1~20.04.2 [42.5 kB]
Get:38 http://security.ubuntu.com/ubuntu focal-security/main amd64 mount amd64 2.34-0.1ubuntu9.3 [115 kB]
Get:39 http://security.ubuntu.com/ubuntu focal-security/main amd64 systemd amd64 245.4-4ubuntu3.15 [3,811 kB]
Get:40 http://security.ubuntu.com/ubuntu focal-security/main amd64 libsystemd0 amd64 245.4-4ubuntu3.15 [270 kB]
Get:41 http://security.ubuntu.com/ubuntu focal-security/main amd64 python3.8 amd64 3.8.10-0ubuntu1~20.04.2 [387 kB]
Get:42 http://security.ubuntu.com/ubuntu focal-security/main amd64 python3.8-minimal amd64 3.8.10-0ubuntu1~20.04.2 [1,900 kB]
Get:43 http://security.ubuntu.com/ubuntu focal-security/main amd64 libpython3.8-stdlib amd64 3.8.10-0ubuntu1~20.04.2 [1,675 kB]
Get:44 http://security.ubuntu.com/ubuntu focal-security/main amd64 libpython3.8-minimal amd64 3.8.10-0ubuntu1~20.04.2 [717 kB]
Get:45 http://security.ubuntu.com/ubuntu focal-security/main amd64 libexpat1 amd64 2.2.9-1ubuntu0.4 [74.4 kB]
Get:46 http://security.ubuntu.com/ubuntu focal-security/main amd64 ca-certificates all 20210119~20.04.2 [145 kB]
Get:47 http://security.ubuntu.com/ubuntu focal-security/main amd64 distro-info-data all 0.43ubuntu1.9 [4,744 B]
Get:48 http://security.ubuntu.com/ubuntu focal-security/main amd64 libpam-systemd amd64 245.4-4ubuntu3.15 [186 kB]
Get:49 http://security.ubuntu.com/ubuntu focal-security/main amd64 busybox-initramfs amd64 1:1.30.1-4ubuntu6.4 [169 kB]
Get:50 http://security.ubuntu.com/ubuntu focal-security/main amd64 tzdata all 2021e-0ubuntu0.20.04 [295 kB]
Get:51 http://security.ubuntu.com/ubuntu focal-security/main amd64 libctf0 amd64 2.34-6ubuntu1.3 [46.6 kB]
Get:52 http://security.ubuntu.com/ubuntu focal-security/main amd64 binutils-x86-64-linux-gnu amd64 2.34-6ubuntu1.3 [1,613 kB]
Get:53 http://security.ubuntu.com/ubuntu focal-security/main amd64 libbinutils amd64 2.34-6ubuntu1.3 [474 kB]
Get:54 http://security.ubuntu.com/ubuntu focal-security/main amd64 binutils amd64 2.34-6ubuntu1.3 [3,380 B]
Get:55 http://security.ubuntu.com/ubuntu focal-security/main amd64 binutils-common amd64 2.34-6ubuntu1.3 [207 kB]
Get:56 http://security.ubuntu.com/ubuntu focal-security/main amd64 libctf-nobfd0 amd64 2.34-6ubuntu1.3 [47.4 kB]
Get:57 http://security.ubuntu.com/ubuntu focal-security/main amd64 libasan5 amd64 9.4.0-1ubuntu1~20.04 [2,752 kB]
Get:58 http://security.ubuntu.com/ubuntu focal-security/main amd64 g++-9 amd64 9.4.0-1ubuntu1~20.04 [8,421 kB]
Get:59 http://security.ubuntu.com/ubuntu focal-security/main amd64 gcc-9 amd64 9.4.0-1ubuntu1~20.04 [8,275 kB]
Get:60 http://security.ubuntu.com/ubuntu focal-security/main amd64 libstdc++-9-dev amd64 9.4.0-1ubuntu1~20.04 [1,722 kB]
Get:61 http://security.ubuntu.com/ubuntu focal-security/main amd64 libgcc-9-dev amd64 9.4.0-1ubuntu1~20.04 [2,360 kB]
Get:62 http://security.ubuntu.com/ubuntu focal-security/main amd64 cpp-9 amd64 9.4.0-1ubuntu1~20.04 [7,501 kB]
Get:63 http://security.ubuntu.com/ubuntu focal-security/main amd64 gcc-9-base amd64 9.4.0-1ubuntu1~20.04 [19.4 kB]
Get:64 http://security.ubuntu.com/ubuntu focal-security/main amd64 dbus-user-session amd64 1.12.16-2ubuntu2.1 [9,428 B]
Get:65 http://security.ubuntu.com/ubuntu focal-security/main amd64 linux-modules-5.4.0-104-generic amd64 5.4.0-104.118 [14.8 MB]
Get:66 http://security.ubuntu.com/ubuntu focal-security/main amd64 linux-image-5.4.0-104-generic amd64 5.4.0-104.118 [10.5 MB]
Get:67 http://security.ubuntu.com/ubuntu focal-security/main amd64 linux-image-virtual amd64 5.4.0.104.108 [2,440 B]
Get:68 http://security.ubuntu.com/ubuntu focal-security/main amd64 squashfs-tools amd64 1:4.4-1ubuntu0.3 [117 kB]
Get:69 http://security.ubuntu.com/ubuntu focal-security/main amd64 snapd amd64 2.54.3+20.04.1ubuntu0.2 [34.3 MB]
Fetched 122 MB in 1min 6s (1,845 kB/s)                                         
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 18996 files and directories currently installed.)
Preparing to unpack .../libc6-dev_2.31-0ubuntu9.7_amd64.deb ...
Unpacking libc6-dev:amd64 (2.31-0ubuntu9.7) over (2.31-0ubuntu9.2) ...
Preparing to unpack .../libc-dev-bin_2.31-0ubuntu9.7_amd64.deb ...
Unpacking libc-dev-bin (2.31-0ubuntu9.7) over (2.31-0ubuntu9.2) ...
Preparing to unpack .../linux-libc-dev_5.4.0-104.118_amd64.deb ...
Unpacking linux-libc-dev:amd64 (5.4.0-104.118) over (5.4.0-84.94) ...
Preparing to unpack .../libc6_2.31-0ubuntu9.7_amd64.deb ...
Unpacking libc6:amd64 (2.31-0ubuntu9.7) over (2.31-0ubuntu9.2) ...
Setting up libc6:amd64 (2.31-0ubuntu9.7) ...
(Reading database ... 18996 files and directories currently installed.)
Preparing to unpack .../base-files_11ubuntu5.5_amd64.deb ...
Warning: Stopping motd-news.service, but it can still be activated by:
  motd-news.timer
Unpacking base-files (11ubuntu5.5) over (11ubuntu5.4) ...
Setting up base-files (11ubuntu5.5) ...
Installing new version of config file /etc/issue ...
Installing new version of config file /etc/issue.net ...
Installing new version of config file /etc/lsb-release ...
motd-news.service is a disabled or a static unit, not starting it.
(Reading database ... 18996 files and directories currently installed.)
Preparing to unpack .../bsdutils_1%3a2.34-0.1ubuntu9.3_amd64.deb ...
Unpacking bsdutils (1:2.34-0.1ubuntu9.3) over (1:2.34-0.1ubuntu9.1) ...
Setting up bsdutils (1:2.34-0.1ubuntu9.3) ...
(Reading database ... 18996 files and directories currently installed.)
Preparing to unpack .../libblkid1_2.34-0.1ubuntu9.3_amd64.deb ...
Unpacking libblkid1:amd64 (2.34-0.1ubuntu9.3) over (2.34-0.1ubuntu9.1) ...
Setting up libblkid1:amd64 (2.34-0.1ubuntu9.3) ...
(Reading database ... 18996 files and directories currently installed.)
Preparing to unpack .../libuuid1_2.34-0.1ubuntu9.3_amd64.deb ...
Unpacking libuuid1:amd64 (2.34-0.1ubuntu9.3) over (2.34-0.1ubuntu9.1) ...
Setting up libuuid1:amd64 (2.34-0.1ubuntu9.3) ...
(Reading database ... 18996 files and directories currently installed.)
Preparing to unpack .../libfdisk1_2.34-0.1ubuntu9.3_amd64.deb ...
Unpacking libfdisk1:amd64 (2.34-0.1ubuntu9.3) over (2.34-0.1ubuntu9.1) ...
Preparing to unpack .../libmount1_2.34-0.1ubuntu9.3_amd64.deb ...
Unpacking libmount1:amd64 (2.34-0.1ubuntu9.3) over (2.34-0.1ubuntu9.1) ...
Setting up libmount1:amd64 (2.34-0.1ubuntu9.3) ...
(Reading database ... 18996 files and directories currently installed.)
Preparing to unpack .../libsmartcols1_2.34-0.1ubuntu9.3_amd64.deb ...
Unpacking libsmartcols1:amd64 (2.34-0.1ubuntu9.3) over (2.34-0.1ubuntu9.1) ...
Setting up libsmartcols1:amd64 (2.34-0.1ubuntu9.3) ...
(Reading database ... 18996 files and directories currently installed.)
Preparing to unpack .../fdisk_2.34-0.1ubuntu9.3_amd64.deb ...
Unpacking fdisk (2.34-0.1ubuntu9.3) over (2.34-0.1ubuntu9.1) ...
Preparing to unpack .../util-linux_2.34-0.1ubuntu9.3_amd64.deb ...
Unpacking util-linux (2.34-0.1ubuntu9.3) over (2.34-0.1ubuntu9.1) ...
Setting up util-linux (2.34-0.1ubuntu9.3) ...
(Reading database ... 18996 files and directories currently installed.)
Preparing to unpack .../locales_2.31-0ubuntu9.7_all.deb ...
Unpacking locales (2.31-0ubuntu9.7) over (2.31-0ubuntu9.2) ...
Preparing to unpack .../libc-bin_2.31-0ubuntu9.7_amd64.deb ...
Unpacking libc-bin (2.31-0ubuntu9.7) over (2.31-0ubuntu9.2) ...
Setting up libc-bin (2.31-0ubuntu9.7) ...
(Reading database ... 18996 files and directories currently installed.)
Preparing to unpack .../libpam0g_1.3.1-5ubuntu4.3_amd64.deb ...
Unpacking libpam0g:amd64 (1.3.1-5ubuntu4.3) over (1.3.1-5ubuntu4.2) ...
Setting up libpam0g:amd64 (1.3.1-5ubuntu4.3) ...
(Reading database ... 18996 files and directories currently installed.)
Preparing to unpack .../libpam-modules-bin_1.3.1-5ubuntu4.3_amd64.deb ...
Unpacking libpam-modules-bin (1.3.1-5ubuntu4.3) over (1.3.1-5ubuntu4.2) ...
Setting up libpam-modules-bin (1.3.1-5ubuntu4.3) ...
(Reading database ... 18996 files and directories currently installed.)
Preparing to unpack .../libpam-modules_1.3.1-5ubuntu4.3_amd64.deb ...
Unpacking libpam-modules:amd64 (1.3.1-5ubuntu4.3) over (1.3.1-5ubuntu4.2) ...
Setting up libpam-modules:amd64 (1.3.1-5ubuntu4.3) ...
(Reading database ... 18996 files and directories currently installed.)
Preparing to unpack .../systemd-sysv_245.4-4ubuntu3.15_amd64.deb ...
Unpacking systemd-sysv (245.4-4ubuntu3.15) over (245.4-4ubuntu3.13) ...
Preparing to unpack .../udev_245.4-4ubuntu3.15_amd64.deb ...
Unpacking udev (245.4-4ubuntu3.15) over (245.4-4ubuntu3.13) ...
Preparing to unpack .../libudev1_245.4-4ubuntu3.15_amd64.deb ...
Unpacking libudev1:amd64 (245.4-4ubuntu3.15) over (245.4-4ubuntu3.13) ...
Setting up libudev1:amd64 (245.4-4ubuntu3.15) ...
(Reading database ... 18996 files and directories currently installed.)
Preparing to unpack .../systemd-timesyncd_245.4-4ubuntu3.15_amd64.deb ...
Unpacking systemd-timesyncd (245.4-4ubuntu3.15) over (245.4-4ubuntu3.13) ...
Preparing to unpack .../libssl1.1_1.1.1f-1ubuntu2.11_amd64.deb ...
Unpacking libssl1.1:amd64 (1.1.1f-1ubuntu2.11) over (1.1.1f-1ubuntu2.8) ...
Preparing to unpack .../libcryptsetup12_2%3a2.2.2-3ubuntu2.4_amd64.deb ...
Unpacking libcryptsetup12:amd64 (2:2.2.2-3ubuntu2.4) over (2:2.2.2-3ubuntu2.3) ...
Preparing to unpack .../libseccomp2_2.5.1-1ubuntu1~20.04.2_amd64.deb ...
Unpacking libseccomp2:amd64 (2.5.1-1ubuntu1~20.04.2) over (2.5.1-1ubuntu1~20.04.1) ...
Setting up libseccomp2:amd64 (2.5.1-1ubuntu1~20.04.2) ...
(Reading database ... 18996 files and directories currently installed.)
Preparing to unpack .../mount_2.34-0.1ubuntu9.3_amd64.deb ...
Unpacking mount (2.34-0.1ubuntu9.3) over (2.34-0.1ubuntu9.1) ...
Preparing to unpack .../systemd_245.4-4ubuntu3.15_amd64.deb ...
Unpacking systemd (245.4-4ubuntu3.15) over (245.4-4ubuntu3.13) ...
Preparing to unpack .../libsystemd0_245.4-4ubuntu3.15_amd64.deb ...
Unpacking libsystemd0:amd64 (245.4-4ubuntu3.15) over (245.4-4ubuntu3.13) ...
Setting up libsystemd0:amd64 (245.4-4ubuntu3.15) ...
(Reading database ... 18996 files and directories currently installed.)
Preparing to unpack .../0-python3.8_3.8.10-0ubuntu1~20.04.2_amd64.deb ...
Unpacking python3.8 (3.8.10-0ubuntu1~20.04.2) over (3.8.10-0ubuntu1~20.04) ...
Preparing to unpack .../1-python3.8-minimal_3.8.10-0ubuntu1~20.04.2_amd64.deb ...
Unpacking python3.8-minimal (3.8.10-0ubuntu1~20.04.2) over (3.8.10-0ubuntu1~20.04) ...
Preparing to unpack .../2-libpython3.8-stdlib_3.8.10-0ubuntu1~20.04.2_amd64.deb ...
Unpacking libpython3.8-stdlib:amd64 (3.8.10-0ubuntu1~20.04.2) over (3.8.10-0ubuntu1~20.04) ...
Preparing to unpack .../3-libpython3.8-minimal_3.8.10-0ubuntu1~20.04.2_amd64.deb ...
Unpacking libpython3.8-minimal:amd64 (3.8.10-0ubuntu1~20.04.2) over (3.8.10-0ubuntu1~20.04) ...
Preparing to unpack .../4-libexpat1_2.2.9-1ubuntu0.4_amd64.deb ...
Unpacking libexpat1:amd64 (2.2.9-1ubuntu0.4) over (2.2.9-1build1) ...
Preparing to unpack .../5-libpam-runtime_1.3.1-5ubuntu4.3_all.deb ...
Unpacking libpam-runtime (1.3.1-5ubuntu4.3) over (1.3.1-5ubuntu4.2) ...
Setting up libpam-runtime (1.3.1-5ubuntu4.3) ...
(Reading database ... 18996 files and directories currently installed.)
Preparing to unpack .../00-openssl_1.1.1f-1ubuntu2.11_amd64.deb ...
Unpacking openssl (1.1.1f-1ubuntu2.11) over (1.1.1f-1ubuntu2.8) ...
Preparing to unpack .../01-ca-certificates_20210119~20.04.2_all.deb ...
Unpacking ca-certificates (20210119~20.04.2) over (20210119~20.04.1) ...
Preparing to unpack .../02-distro-info-data_0.43ubuntu1.9_all.deb ...
Unpacking distro-info-data (0.43ubuntu1.9) over (0.43ubuntu1.6) ...
Preparing to unpack .../03-libnetplan0_0.103-0ubuntu5~20.04.6_amd64.deb ...
Unpacking libnetplan0:amd64 (0.103-0ubuntu5~20.04.6) over (0.102-0ubuntu1~20.04.2) ...
Selecting previously unselected package libpam-systemd:amd64.
Preparing to unpack .../04-libpam-systemd_245.4-4ubuntu3.15_amd64.deb ...
Unpacking libpam-systemd:amd64 (245.4-4ubuntu3.15) ...
Preparing to unpack .../05-initramfs-tools_0.136ubuntu6.7_all.deb ...
Unpacking initramfs-tools (0.136ubuntu6.7) over (0.136ubuntu6.6) ...
Preparing to unpack .../06-initramfs-tools-core_0.136ubuntu6.7_all.deb ...
Unpacking initramfs-tools-core (0.136ubuntu6.7) over (0.136ubuntu6.6) ...
Preparing to unpack .../07-busybox-initramfs_1%3a1.30.1-4ubuntu6.4_amd64.deb ...
Unpacking busybox-initramfs (1:1.30.1-4ubuntu6.4) over (1:1.30.1-4ubuntu6.3) ...
Preparing to unpack .../08-initramfs-tools-bin_0.136ubuntu6.7_amd64.deb ...
Unpacking initramfs-tools-bin (0.136ubuntu6.7) over (0.136ubuntu6.6) ...
Preparing to unpack .../09-linux-base_4.5ubuntu3.7_all.deb ...
Unpacking linux-base (4.5ubuntu3.7) over (4.5ubuntu3.6) ...
Preparing to unpack .../10-netplan.io_0.103-0ubuntu5~20.04.6_amd64.deb ...
Unpacking netplan.io (0.103-0ubuntu5~20.04.6) over (0.102-0ubuntu1~20.04.2) ...
Preparing to unpack .../11-tzdata_2021e-0ubuntu0.20.04_all.deb ...
Unpacking tzdata (2021e-0ubuntu0.20.04) over (2021a-0ubuntu0.20.04) ...
Preparing to unpack .../12-openssh-sftp-server_1%3a8.2p1-4ubuntu0.4_amd64.deb ...
Unpacking openssh-sftp-server (1:8.2p1-4ubuntu0.4) over (1:8.2p1-4ubuntu0.3) ...
Preparing to unpack .../13-openssh-server_1%3a8.2p1-4ubuntu0.4_amd64.deb ...
Unpacking openssh-server (1:8.2p1-4ubuntu0.4) over (1:8.2p1-4ubuntu0.3) ...
Preparing to unpack .../14-openssh-client_1%3a8.2p1-4ubuntu0.4_amd64.deb ...
Unpacking openssh-client (1:8.2p1-4ubuntu0.4) over (1:8.2p1-4ubuntu0.3) ...
Preparing to unpack .../15-libctf0_2.34-6ubuntu1.3_amd64.deb ...
Unpacking libctf0:amd64 (2.34-6ubuntu1.3) over (2.34-6ubuntu1.1) ...
Preparing to unpack .../16-binutils-x86-64-linux-gnu_2.34-6ubuntu1.3_amd64.deb ...
Unpacking binutils-x86-64-linux-gnu (2.34-6ubuntu1.3) over (2.34-6ubuntu1.1) ...
Preparing to unpack .../17-libbinutils_2.34-6ubuntu1.3_amd64.deb ...
Unpacking libbinutils:amd64 (2.34-6ubuntu1.3) over (2.34-6ubuntu1.1) ...
Preparing to unpack .../18-binutils_2.34-6ubuntu1.3_amd64.deb ...
Unpacking binutils (2.34-6ubuntu1.3) over (2.34-6ubuntu1.1) ...
Preparing to unpack .../19-binutils-common_2.34-6ubuntu1.3_amd64.deb ...
Unpacking binutils-common:amd64 (2.34-6ubuntu1.3) over (2.34-6ubuntu1.1) ...
Preparing to unpack .../20-libctf-nobfd0_2.34-6ubuntu1.3_amd64.deb ...
Unpacking libctf-nobfd0:amd64 (2.34-6ubuntu1.3) over (2.34-6ubuntu1.1) ...
Preparing to unpack .../21-libasan5_9.4.0-1ubuntu1~20.04_amd64.deb ...
Unpacking libasan5:amd64 (9.4.0-1ubuntu1~20.04) over (9.3.0-17ubuntu1~20.04) ...
Preparing to unpack .../22-g++-9_9.4.0-1ubuntu1~20.04_amd64.deb ...
Unpacking g++-9 (9.4.0-1ubuntu1~20.04) over (9.3.0-17ubuntu1~20.04) ...
Preparing to unpack .../23-gcc-9_9.4.0-1ubuntu1~20.04_amd64.deb ...
Unpacking gcc-9 (9.4.0-1ubuntu1~20.04) over (9.3.0-17ubuntu1~20.04) ...
Preparing to unpack .../24-libstdc++-9-dev_9.4.0-1ubuntu1~20.04_amd64.deb ...
Unpacking libstdc++-9-dev:amd64 (9.4.0-1ubuntu1~20.04) over (9.3.0-17ubuntu1~20.04) ...
Preparing to unpack .../25-libgcc-9-dev_9.4.0-1ubuntu1~20.04_amd64.deb ...
Unpacking libgcc-9-dev:amd64 (9.4.0-1ubuntu1~20.04) over (9.3.0-17ubuntu1~20.04) ...
Preparing to unpack .../26-cpp-9_9.4.0-1ubuntu1~20.04_amd64.deb ...
Unpacking cpp-9 (9.4.0-1ubuntu1~20.04) over (9.3.0-17ubuntu1~20.04) ...
Preparing to unpack .../27-gcc-9-base_9.4.0-1ubuntu1~20.04_amd64.deb ...
Unpacking gcc-9-base:amd64 (9.4.0-1ubuntu1~20.04) over (9.3.0-17ubuntu1~20.04) ...
Selecting previously unselected package dbus-user-session.
Preparing to unpack .../28-dbus-user-session_1.12.16-2ubuntu2.1_amd64.deb ...
Unpacking dbus-user-session (1.12.16-2ubuntu2.1) ...
Selecting previously unselected package linux-modules-5.4.0-104-generic.
Preparing to unpack .../29-linux-modules-5.4.0-104-generic_5.4.0-104.118_amd64.deb ...
Unpacking linux-modules-5.4.0-104-generic (5.4.0-104.118) ...
Selecting previously unselected package linux-image-5.4.0-104-generic.
Preparing to unpack .../30-linux-image-5.4.0-104-generic_5.4.0-104.118_amd64.deb ...
Unpacking linux-image-5.4.0-104-generic (5.4.0-104.118) ...
Preparing to unpack .../31-linux-image-virtual_5.4.0.104.108_amd64.deb ...
Unpacking linux-image-virtual (5.4.0.104.108) over (5.4.0.84.88) ...
Preparing to unpack .../32-squashfs-tools_1%3a4.4-1ubuntu0.3_amd64.deb ...
Unpacking squashfs-tools (1:4.4-1ubuntu0.3) over (1:4.4-1ubuntu0.2) ...
Preparing to unpack .../33-snapd_2.54.3+20.04.1ubuntu0.2_amd64.deb ...
Unpacking snapd (2.54.3+20.04.1ubuntu0.2) over (2.49.2+20.04) ...
Preparing to unpack .../34-cloud-init_21.4-0ubuntu1~20.04.1_all.deb ...
Unpacking cloud-init (21.4-0ubuntu1~20.04.1) over (21.2-3-g899bfaa9-0ubuntu2~20.04.1) ...
Setting up libexpat1:amd64 (2.2.9-1ubuntu0.4) ...
Setting up linux-base (4.5ubuntu3.7) ...
Setting up squashfs-tools (1:4.4-1ubuntu0.3) ...
Setting up distro-info-data (0.43ubuntu1.9) ...
Setting up libssl1.1:amd64 (1.1.1f-1ubuntu2.11) ...
Setting up linux-modules-5.4.0-104-generic (5.4.0-104.118) ...
Setting up binutils-common:amd64 (2.34-6ubuntu1.3) ...
Setting up linux-libc-dev:amd64 (5.4.0-104.118) ...
Setting up libctf-nobfd0:amd64 (2.34-6ubuntu1.3) ...
Setting up libnetplan0:amd64 (0.103-0ubuntu5~20.04.6) ...
Setting up locales (2.31-0ubuntu9.7) ...
Generating locales (this might take a while)...
  en_US.UTF-8... done
Generation complete.
Setting up tzdata (2021e-0ubuntu0.20.04) ...

Current default time zone: 'Africa/Cairo'
Local time is now:      Tue Mar 15 15:08:15 EET 2022.
Universal Time is now:  Tue Mar 15 13:08:15 UTC 2022.
Run 'dpkg-reconfigure tzdata' if you wish to change it.

Setting up udev (245.4-4ubuntu3.15) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-image-5.4.0-104-generic (5.4.0-104.118) ...
I: /boot/vmlinuz is now a symlink to vmlinuz-5.4.0-104-generic
I: /boot/initrd.img is now a symlink to initrd.img-5.4.0-104-generic
Setting up busybox-initramfs (1:1.30.1-4ubuntu6.4) ...
Setting up libfdisk1:amd64 (2.34-0.1ubuntu9.3) ...
Setting up mount (2.34-0.1ubuntu9.3) ...
Setting up libcryptsetup12:amd64 (2:2.2.2-3ubuntu2.4) ...
Setting up linux-image-virtual (5.4.0.104.108) ...
Setting up libbinutils:amd64 (2.34-6ubuntu1.3) ...
Setting up libc-dev-bin (2.31-0ubuntu9.7) ...
Setting up openssl (1.1.1f-1ubuntu2.11) ...
Setting up gcc-9-base:amd64 (9.4.0-1ubuntu1~20.04) ...
Setting up initramfs-tools-bin (0.136ubuntu6.7) ...
Setting up libctf0:amd64 (2.34-6ubuntu1.3) ...
Setting up libpython3.8-minimal:amd64 (3.8.10-0ubuntu1~20.04.2) ...
Setting up openssh-client (1:8.2p1-4ubuntu0.4) ...
Setting up fdisk (2.34-0.1ubuntu9.3) ...
Setting up ca-certificates (20210119~20.04.2) ...
Updating certificates in /etc/ssl/certs...
0 added, 1 removed; done.
Setting up libasan5:amd64 (9.4.0-1ubuntu1~20.04) ...
Setting up python3.8-minimal (3.8.10-0ubuntu1~20.04.2) ...
Setting up cpp-9 (9.4.0-1ubuntu1~20.04) ...
Setting up libc6-dev:amd64 (2.31-0ubuntu9.7) ...
Setting up libpython3.8-stdlib:amd64 (3.8.10-0ubuntu1~20.04.2) ...
Setting up initramfs-tools-core (0.136ubuntu6.7) ...
Setting up python3.8 (3.8.10-0ubuntu1~20.04.2) ...
Setting up binutils-x86-64-linux-gnu (2.34-6ubuntu1.3) ...
Setting up openssh-sftp-server (1:8.2p1-4ubuntu0.4) ...
Setting up initramfs-tools (0.136ubuntu6.7) ...
update-initramfs: deferring update (trigger activated)
Setting up openssh-server (1:8.2p1-4ubuntu0.4) ...
rescue-ssh.target is a disabled or a static unit, not starting it.
Setting up binutils (2.34-6ubuntu1.3) ...
Setting up libgcc-9-dev:amd64 (9.4.0-1ubuntu1~20.04) ...
Setting up gcc-9 (9.4.0-1ubuntu1~20.04) ...
Setting up libstdc++-9-dev:amd64 (9.4.0-1ubuntu1~20.04) ...
Setting up g++-9 (9.4.0-1ubuntu1~20.04) ...
Setting up systemd (245.4-4ubuntu3.15) ...
Setting up netplan.io (0.103-0ubuntu5~20.04.6) ...
Setting up systemd-timesyncd (245.4-4ubuntu3.15) ...
Setting up systemd-sysv (245.4-4ubuntu3.15) ...
Setting up cloud-init (21.4-0ubuntu1~20.04.1) ...
Installing new version of config file /etc/cloud/cloud.cfg ...
Installing new version of config file /etc/cloud/templates/hosts.alpine.tmpl ...
Installing new version of config file /etc/cloud/templates/hosts.debian.tmpl ...
Installing new version of config file /etc/cloud/templates/resolv.conf.tmpl ...
Installing new version of config file /etc/cloud/templates/sources.list.debian.tmpl ...
Created symlink /etc/systemd/system/cloud-init.target.wants/cloud-init-hotplugd.socket → /lib/systemd/system/cloud-init-hotplugd.socket.
Setting up libpam-systemd:amd64 (245.4-4ubuntu3.15) ...
Setting up dbus-user-session (1.12.16-2ubuntu2.1) ...
Setting up snapd (2.54.3+20.04.1ubuntu0.2) ...
Installing new version of config file /etc/apparmor.d/usr.lib.snapd.snap-confine.real ...
Installing new version of config file /etc/profile.d/apps-bin-path.sh ...
snapd.failure.service is a disabled or a static unit, not starting it.
snapd.snap-repair.service is a disabled or a static unit, not starting it.
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.7) ...
Processing triggers for dbus (1.12.16-2ubuntu2.1) ...
Processing triggers for linux-image-5.4.0-104-generic (5.4.0-104.118) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.4.0-104-generic
W: Couldn't identify type of root file system for fsck hook
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/40-force-partuuid.cfg'
Sourcing file `/etc/default/grub.d/50-builddimg-settings.cfg'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
GRUB_FORCE_PARTUUID is set, will attempt initrdless boot
Found linux image: /boot/vmlinuz-5.4.0-104-generic
Found initrd image: /boot/initrd.img-5.4.0-104-generic
Found linux image: /boot/vmlinuz-5.4.0-84-generic
Found initrd image: /boot/initrd.img-5.4.0-84-generic
done
Processing triggers for ca-certificates (20210119~20.04.2) ...
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
Processing triggers for initramfs-tools (0.136ubuntu6.7) ...
update-initramfs: Generating /boot/initrd.img-5.4.0-104-generic
W: Couldn't identify type of root file system for fsck hook
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  apt-transport-https
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 4,680 B of archives.
After this operation, 162 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 apt-transport-https all 2.0.6 [4,680 B]
Fetched 4,680 B in 0s (17.4 kB/s)               
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package apt-transport-https.
(Reading database ... 20292 files and directories currently installed.)
Preparing to unpack .../apt-transport-https_2.0.6_all.deb ...
Unpacking apt-transport-https (2.0.6) ...
Setting up apt-transport-https (2.0.6) ...
2022-03-15T15:09:39+02:00 INFO Waiting for automatic snapd restart...
snapd 2.54.4 from Canonicalâś“ installed
"snapd" switched to the "latest/stable" channel

core20 20220304 from Canonicalâś“ installed
"core20" switched to the "latest/stable" channel

snapcraft 6.0.2 from Canonicalâś“ installed
"snapcraft" switched to the "latest/stable" channel

[Errno 1] Operation not permitted: 'snapcraft.yaml'                             
We would appreciate it if you anonymously reported this issue.
No other data than the traceback and the version of snapcraft in use will be sent.
Would you like to send this error data? (Yes/No/Always/View) [no]: 

I can’t reproduce this error. Can you run just snapcraft?

Otherwise, can you provide the output of snap run snapcraft --enable-developer-debug?

I use snap run snapcraft because the snapcraft is not defined as command

I did the following command

snap run snapcraft --enable-developer-debug

and here is the error output


Running: sudo -H -i env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=True SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True snap unset system proxy.http
Running multipass exec snapcraft-robozapress -- sudo -H -i env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=True SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True snap unset system proxy.http
Running: sudo -H -i env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=True SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True snap unset system proxy.https
Running multipass exec snapcraft-robozapress -- sudo -H -i env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=True SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True snap unset system proxy.https
Running multipass mount /media/tarek/New Volume/learning path/rust programming language/apps/robozapress snapcraft-robozapress:/root/project --uid-map 1000:0 --gid-map 1000:0
Running: sudo -H -i env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=True SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True snapcraft snap
Running multipass exec snapcraft-robozapress -- sudo -H -i env SNAPCRAFT_BUILD_ENVIRONMENT=managed-host HOME=/root SNAPCRAFT_HAS_TTY=True SNAPCRAFT_ENABLE_DEVELOPER_DEBUG=True snapcraft snap
Starting snapcraft 6.0.2 from /snap/snapcraft/7010/lib/python3.8/site-packages/snapcraft/cli.
configure_requests_ca: using '/etc/ssl/certs/ca-certificates.crt' for certificate verification
Parts dir /root/parts
Stage dir /root/stage
Prime dir /root/prime
[Errno 1] Operation not permitted: 'snapcraft.yaml'
Traceback (most recent call last):
  File "/snap/snapcraft/7010/bin/snapcraft", line 8, in <module>
    sys.exit(run())
  File "/snap/snapcraft/7010/lib/python3.8/site-packages/click/core.py", line 1137, in __call__
    return self.main(*args, **kwargs)
  File "/snap/snapcraft/7010/lib/python3.8/site-packages/click/core.py", line 1062, in main
    rv = self.invoke(ctx)
  File "/snap/snapcraft/7010/lib/python3.8/site-packages/click/core.py", line 1668, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/snap/snapcraft/7010/lib/python3.8/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/snap/snapcraft/7010/lib/python3.8/site-packages/click/core.py", line 763, in invoke
    return __callback(*args, **kwargs)
  File "/snap/snapcraft/7010/lib/python3.8/site-packages/snapcraft/cli/lifecycle.py", line 387, in snap
    _execute(steps.PRIME, parts=tuple(), pack_project=True, output=output, **kwargs)
  File "/snap/snapcraft/7010/lib/python3.8/site-packages/snapcraft/cli/lifecycle.py", line 90, in _execute
    project = get_project(is_managed_host=is_managed_host, **kwargs)
  File "/snap/snapcraft/7010/lib/python3.8/site-packages/snapcraft/cli/_options.py", line 364, in get_project
    project = Project(
  File "/snap/snapcraft/7010/lib/python3.8/site-packages/snapcraft/project/_project.py", line 58, in __init__
    self.info = ProjectInfo(snapcraft_yaml_file_path=snapcraft_yaml_file_path)
  File "/snap/snapcraft/7010/lib/python3.8/site-packages/snapcraft/project/_project_info.py", line 30, in __init__
    self.__raw_snapcraft = yaml_utils.load_yaml_file(snapcraft_yaml_file_path)
  File "/snap/snapcraft/7010/lib/python3.8/site-packages/snapcraft/yaml_utils/__init__.py", line 39, in load_yaml_file
    with open(yaml_file_path, "rb") as fp:
PermissionError: [Errno 1] Operation not permitted: 'snapcraft.yaml'
snapcraft is running as a snap True, SNAP_NAME set to 'snapcraft'
We would appreciate it if you anonymously reported this issue.
No other data than the traceback and the version of snapcraft in use will be sent.
Would you like to send this error data? (Yes/No/Always/View) [no]: 

I can get error number 2 and 13 by changing the permissions and ownership of snapcraft.yaml. I can’t get error 1 on Ubuntu.

What are the permissions and ownership of your snapcraft.yaml file locally?

You don’t happen to be running on macOS?

this is linux ubuntu its a normal permission as any file !

Got it. I wonder why you can’t call snapcraft directly. Perhaps /snap/bin/ not part of your $PATH.

I’m not yet sure where this error is originating from. Do you get the same failure if you run snap run snapcraft --use-lxd? Have you tried snap run snapcraft clean?

Second, it’d be useful to enter the multipass instance with snap run snapcraft --debug and check the permissions and ownership of snapcraft.yaml there.

I tried to enter the created vm to see where my files are executed but I don’t know where snapcraft copies my project file and past in the VM also don’t know where I can find snapcraft.yaml in the created VM

Multipass cannot access files in /media by default. Run snap connect multipass:removable-media and try again.

1 Like

thanks it solved the issue and worked fine

I had another problem in the final step of build

I go this error

bin/robozapress' defined in the app 'robozapress' does not exist.
Ensure that 'bin/robozapress' is installed with the correct path.

I opened the /bin directory on the create VM and my app name is not exist there, how can I solve this?

inside a multipass VM created using snapcraft, the final snap layout can be viewed at /root/prime. I suspect your rust project creates a different filename than robozapress or it is not in /root/prime/bin. When creating the path for snapcraft.yaml the /root/prime/ should be deleted leaving just the relative path (no leading / character) from /root/prime/ to the executable file.

Another alternative thing that might be the cause, is if the file lacks the executable permission. Check whether the file has the executable permission set, i.e. chmod 755, though I suspect the rust build should do this automatically.