-
Notifications
You must be signed in to change notification settings - Fork 294
error: snapctl requires SNAP_CONTEXT environment variable #1294
Comments
@mantri, would you please let us know which release of Snap has you used and the steps for reproducing this error? |
download latest release from releases page (v0.16.1-beta) unpack, run
and try to run any command with snapctl from the getting started guide. using ubuntu 16.04 |
@marianoguerra, I was not able to reproduce your issue on ubuntu14.04. We'll see on ubuntu 16.04. |
Looks like ubuntu core snapd packaging added a snapctl command:
This command does not appear to be documented, nor does it include a man page. snapctl command was introduced to Ubuntu snapd package for version 2.13 on 2016-08-29. This is unfortunately clobbering the snapctl command you downloaded. cc: @mjbrender we may need to rename our binaries... |
yep, found out the same before seeing the last comment, I never installed snapd so it seems to come by default, I had your snap after this one in the path so it was picking it up instead of yours. at least a note in the getting started section about setting path correctly and being careful with copying this binaries in /usr/bin |
Reopening because your comment on catching this in getting started section is valid. We also like hints in the error message also which would help here. We will close this when we resolve both. Thanks for catching this. |
Issue is documented in #1284 - thanks again for bringing this up @marianoguerra. Also, so good to see you in here! #1344 will handle the resulting binary names. |
following the getting started guide from the readme when I try running snapctl I get that error
googling there's no information about that env variable and what value it should have
The text was updated successfully, but these errors were encountered: