snap install will go get store version instead of sideload

Bug #1593435 reported by kevin gunn
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Snappy
Invalid
Undecided
Unassigned

Bug Description

So in this instance, I was testing the mir snap, this had been working fine with an image stitched from Jun 14, Jun 15 stitched image it appeared.

i copied over my snap to my vm and attempted to install like so

sudo ./devtools.snap install mir-server_0.23.1_amd64.snap

it unexpectedly began to download from store
i quickly cancelled, and attempted again with relative path like so

sudo ./devtools.snap install ./mir-server_0.23.1_amd64.snap

I stitched a new image today and it continues to pull from the store even tho my desired snap i want sideloaded is present on the vm

Revision history for this message
Eric Sandall (eric-wz6bkyhu4uqp) wrote :

I'm seeing a similar, I believe, issue.

$ snap --version
snap 2.25
snapd 2.25
series 16
linuxmint 18.1
kernel 4.4.0-75-generic

I have the core_2312.snap already downloaded and stored on /var/lib/snapd/snaps/ (an NFS mount shared amongst multiple computers).

$ snap info core
name: core
summary: "snapd runtime environment"
publisher: canonical
contact: <email address hidden>
description: |
  The core runtime environment for snapd
type: core
channels:
  latest/stable: 16-2 (2312) 83MB -
  latest/candidate: 16-2.26.8 (2329) 84MB -
  latest/beta: 16-2.26.8 (2329) 84MB -
  latest/edge: 16-2.26.8+git261.f737a92 (2349) 85MB -

File already downloaded
$ sha256sum core_2312.snap
d29538b2294b6f681294e264d5c3b0f9668b1ff16eb9607c1bcd8b89e86a3695 core_2312.snap

Just downloaded from https://public.apps.ubuntu.com/anon/download-snap/99T7MUlRhtI3U0QFgl5mXXESAiSwt776_2312.snap (Snap store, latest "stable")
$ sha256sum 99T7MUlRhtI3U0QFgl5mXXESAiSwt776_2312.snap
d29538b2294b6f681294e264d5c3b0f9668b1ff16eb9607c1bcd8b89e86a3695 99T7MUlRhtI3U0QFgl5mXXESAiSwt776_2312.snap

When I try `sudo snap install core`, snap tries to re-download the file, even though I already have it. I have a very limited Internet connection, so I download files elsewhere and bring them home to share among my various computers.

Revision history for this message
John Lenton (chipaca) wrote :

I don't know what "devtools.snap" is in the original reporter, so I don't know what it's doing.

Eric, when you 'snap download' the snap you get instructions on how to install without having to re-download. Granted it's taken us so long to get back to you it might not've been there when you tried.

We can't realistically make 'snap install core' look at arbitrary files the user has that might be the 'core' they're asking for. The user can explicitly ask for that, in the natural way.

Changed in snappy:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.