Error discovering URI: Resource not found

Hi guys,
I’m beginner of snap, and I’m trying to create my first snap with this project:


after download to local disk, modify the snapcraft.yaml as:

name: hello-xiaoguo
version: 1.0.18
vendor: Snappy Developers <snappy-devel@lists.ubuntu.com>
icon: hello.png
binaries:
  echo:
    exec: bin/echo
  env:
    exec: bin/env
  evil:
    exec: bin/evil
  showdev:
    exec: bin/showdev
  usehw:
    exec: bin/usehw
  sh:
    exec: bin/sh    
    
summary: Hello xiaoguo
description: This is a simple hello world example

parts:
 hello:
  plugin: copy
  files:
    ./bin/echo: bin/echo
    ./bin/env: bin/env
    ./bin/evil: bin/evil
    ./bin/showdev: bin/showdev
    ./bin/usehw: bin/usehw
    ./bin/sh: bin/sh

run snapcraft after modification, it shows:

root@1:~/ntfs/test2/hello/hello-world# snapcraft 
Skipping pull hello  (already ran)
Skipping build hello  (already ran)
Skipping stage hello  (already ran)
Snapping hello 
Snapping /

** (snappy:1901): ERROR **: Error discovering URI: Resource not found.

I don’t know why.
Who can tell me what’s wrong with it or which article should I read for solution?

Thank you very much

BTW: my os is ubuntu 14.04

IIRC Ubuntu 14.04 isn’t really officially supported, you should really use an >16.04 machine instead.

That snapcraft.yaml you’re using for inspiration is very old, and things have changed quite a bit since then. I’d recommend starting here. Snapcraft - Snaps are universal Linux packages and going through that guide which is much newer (and accurate) :slight_smile:

1 Like