Snapping grafana on


I’m trying to package the grafana snap and success to make it locally.
However, when I use to make it autobuild, the build error shows the following message:

The following packages were automatically installed and are no longer required:
curl golang-1.6-go golang-1.6-src golang-go golang-src
Use ‘sudo apt autoremove’ to remove them.
The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 9973 kB of archives.
After this operation, 50.3 MB of additional disk space will be used.
Err:1 xenial/main amd64 nodejs amd64 6.11.2-1nodesource1~xenial1
Could not resolve host:
E: Failed to fetch Could not resolve host:

I wonder if the build environment has the limitation to disallow to access the external link or not.

Any suggestion?

Woodrow uses the default Ubuntu 16.04 repositories, I think, how did you get it to point to Can you link your snapcraft.yaml please? :slight_smile:

I trigger the script from build sect. of a part, and my snapcraft.yaml is, thanks.

Ah right, yeah you’re basically cheating :stuck_out_tongue: if you want a package that’s not in the default Ubuntu 16.04 repositories you need to make a separate part for it.

Fortunately, there’s a nodejs plugin to make this easy for you!


Thanks your suggestions, after using a nodejs plugin, it’s successfully built on

I think it’s time to post the new topic how do I become Snapcrafters as the “grafana” name is reserved for Ubuntu store…

Read this thread. Use the fork-and-rename-me repo to make a new GitHub repo for grafana with the ‘correct’ layout and follow the checklist on the README.MD for that :slight_smile:

ok,I posted here, Put grafana snap to Snapcrafters.

I can’t understand the meaning “using the preferred upstream name” as the “grafana” name is reserved…