Thanks. I ran the command at the directory where the following file exists in snap
folder,
name: my-snap-name # you probably want to 'snapcraft register <name>'
base: core18 # the base snap is the execution environment for this snap
version: '0.1' # just for humans, typically '1.2+git' or '1.3.2'
summary: Single-line elevator pitch for your amazing snap # 79 char long summary
description: |
This is my-snap's description. You have a paragraph or two to tell the
most important story about your snap. Keep it under 100 words though,
we live in tweetspace and your description wants to look good in the snap
store.
grade: devel # must be 'stable' to release into candidate/stable channels
confinement: devmode # use 'strict' once you have the right plugs and slots
# parts:
# my-part:
# # See 'snapcraft plugins'
# plugin: nil
parts:
gnu-hello:
source: http://ftp.gnu.org/gnu/hello/hello-2.10.tar.gz
plugin: autotools
Then I got the following (seems like a lot of web access and installation):
$ env -i - PATH=/snap/bin:/usr/bin:/bin:/sbin:/usr/local/bin USER=$USER /snap/bin/snapcraft --enable-developer-debug --destructive-
mode
Locale not set! Snapcraft will temporarily use C.UTF-8
Starting snapcraft 4.3 from /snap/snapcraft/5472/lib/python3.6/site-packages/snapcraft/cli.
configure_requests_ca: using '/etc/ssl/certs/ca-certificates.crt' for certificate verification
snapcraft is running in a docker or podman (OCI) container Parts dir /home/nfoouser/data/Dropbox/pg/myDevelopment/git_repo/foouser/snappy_hello/snap/parts
Stage dir /home/foouser/git_repo/foouser/snappy_hello/snap/stage
Prime dir /home/foouser/git_repo/foouser/snappy_hello/snap/prime ignoring or passing through unknown parts=OrderedDict([('gnu-hello', OrderedDict([('source', 'http://ftp.gnu.org/gnu/hello/hello-2.10.tar.gz'), ('plugin', 'autotools')]))])
Parts dir /home/foouser/git_repo/foouser/snappy_hello/snap/parts
:
ignoring or passing through unknown parts=OrderedDict([('gnu-hello', OrderedDict([('source', 'http://ftp.gnu.org/gnu/hello/hello-2.10.tar.gz'), ('plugin', 'autotools')]))])
ignoring or passing through unknown parts={'gnu-hello': {'source': 'http://ftp.gnu.org/gnu/hello/hello-2.10.tar.gz', 'plugin': 'autotools', 'stage': [], 'prime': []}}
Loading plugin module 'autotools' with sys.path ['/home/foouser/git_repo/foouser/snappy_hello/snap/snap/plugins', '/snap/snapcraft/5472/bin', '/snap/snapcraft/5472/usr/lib/python36.zip',
'/snap/snapcraft/5472/usr/lib/python3.6', '/snap/snapcraft/5472/usr/lib/python3.6/lib-dynload', '/snap/snapcraft/5472/usr/lib/python3/dist-packages', '/snap/snapcraft/5472/lib/python3.6/site-packages']
Setting up part 'gnu-hello' with plugin 'autotools' and properties {'source': 'http://ftp.gnu.org/gnu/hello/hello-2.10.tar.gz', 'plugin': 'autotools', 'stage': [], 'prime': []}.
Requested build-packages: ['autoconf', 'automake', 'autopoint', 'libtool', 'make']
Executing: ['sudo', '--preserve-env', 'apt-get', 'update']
[sudo] password for nfoouser:
Hit:1 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Ign:2 http://linux.dropbox.com/ubuntu bionic InRelease
Hit:3 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease
Get:4 http://linux.dropbox.com/ubuntu bionic Release [6600 B]
Hit:5 http://us.archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:6 https://typora.io/linux ./ InRelease
Hit:7 http://linux.teamviewer.com/deb stable InRelease
Ign:8 http://dl.google.com/linux/chrome-remote-desktop/deb stable InRelease
Hit:9 http://packages.ros.org/ros/ubuntu bionic InRelease
Hit:10 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:11 http://dl.google.com/linux/chrome-remote-desktop/deb stable Release
Hit:12 http://build.openvpn.net/debian/openvpn/stable bionic InRelease
Hit:13 http://ppa.launchpad.net/ansible/ansible/ubuntu bionic InRelease
Hit:14 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:15 https://packages.microsoft.com/repos/ms-teams stable InRelease
Hit:17 http://ppa.launchpad.net/peek-developers/stable/ubuntu bionic InRelease
Hit:18 http://ppa.launchpad.net/system76-dev/stable/ubuntu bionic InRelease
Err:12 http://build.openvpn.net/debian/openvpn/stable bionic InRelease
The following signatures were invalid: EXPKEYSIG 8E6DA8B4E158C569 Samuli Seppänen (OpenVPN Technologies, Inc) <samuli@openvpn.net>
Fetched 6600 B in 2s (4059 B/s)
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://build.openvpn.net/debian/openvpn/stable bionic InRelease: The fo
llowing signatures were invalid: EXPKEYSIG 8E6DA8B4E158C569 Samuli Seppänen (OpenVPN Technologies, Inc) <samuli@openvpn.net>
W: Failed to fetch http://build.openvpn.net/debian/openvpn/stable/dists/bionic/InRelease The following signatures were invalid: EXPKEYSIG 8E6DA8B4E158C569 Samuli Seppänen (OpenVPN Technologies, Inc) <samuli@ope
nvpn.net>
W: Some index files failed to download. They have been ignored, or old ones used instead.
Marking 'make' (and its dependencies) to be fetched
package: <Package: name:'make' architecture='amd64' id:458>
Marking 'libtool' (and its dependencies) to be fetched
package: <Package: name:'libtool' architecture='amd64' id:368>
Marking 'autoconf' (and its dependencies) to be fetched
package: <Package: name:'autoconf' architecture='amd64' id:359>
Marking 'automake' (and its dependencies) to be fetched
package: <Package: name:'automake' architecture='amd64' id:363>
Marking 'autopoint' (and its dependencies) to be fetched
package: <Package: name:'autopoint' architecture='amd64' id:389>
Installing build dependencies: autoconf automake autopoint m4
Reading package lists... Done
Because I wasn’t sure this result is helpful, I went back to the folder I used when I originally reported, then got this.
$ env -i - PATH=/snap/bin:/usr/bin:/bin:/sbin:/usr/local/bin USER=$USER /snap/bin/snapcraft --enable-developer-debug --destructive-mode
Locale not set! Snapcraft will temporarily use C.UTF-8
Starting snapcraft 4.3 from /snap/snapcraft/5472/lib/python3.6/site-packages/snapcraft/cli.
configure_requests_ca: using '/etc/ssl/certs/ca-certificates.crt' for certificate verification
snapcraft is running in a docker or podman (OCI) container
Parts dir /home/nfoouser/lab1/create-snap/parts
Stage dir /home/nfoouser/lab1/create-snap/stage
Prime dir /home/nfoouser/lab1/create-snap/prime
ignoring or passing through unknown parts=OrderedDict([('my-part', OrderedDict([('plugin', 'nil')]))])
snapcraft is running as a snap True, SNAP_NAME set to 'snapcraft'
Running legacy snapcraft with: ['/snap/snapcraft/5472/legacy_snapcraft/usr/bin/python3', '/snap/snapcraft/5472/legacy_snapcraft/bin/snapcraft', '--enable-developer-debug', '--destructive-mode']
Error: no such option: --enable-developer-debug
nfoouser@foouser-kudu1:~/lab1/create-snap$
Unfortunately I ran out of time with this Ubuntu setting with other issues prenset as well, so I’m about to cleanly re-install Ubuntu so that I won’t likely get to work on this issue unless it re-appears. Feel free to close.