<div dir="ltr">Hi Ciao,<div><br></div><div>Thanks! I just upgraded it to edge channel, and now it works as expected. </div><div><br></div><div><div>liu-xiao-guo@localhost:~$ snap set core service.ssh.disable=true</div><div>liu-xiao-guo@localhost:~$ sudo snap set core service.ssh.disable=true</div><div>liu-xiao-guo@localhost:~$ snap set core service.ssh.disable=true</div><div>liu-xiao-guo@localhost:~$ snap set core service.ssh.disable=false</div><div>liu-xiao-guo@localhost:~$ snap interfaces |grep core</div><div>:core-support core</div></div><div><br></div><div>I think the problem could be that the stable channel does not support it.</div><div><br></div><div>Best regards,</div><div>XiaoGuo</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 14, 2017 at 5:45 PM, Oliver Grawert <span dir="ltr"><<a href="mailto:ogra@ubuntu.com" target="_blank">ogra@ubuntu.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">hi,<br>
<span class="">Am Dienstag, den 14.02.2017, 10:53 +0800 schrieb XiaoGuo Liu:<br>
> Hi,<br>
><br>
> Today, I just followed the instructions at:<br>
><br>
> <a href="https://github.com/CanonicalLtd/ubuntu-core-docs/blob/master/en/refer" rel="noreferrer" target="_blank">https://github.com/<wbr>CanonicalLtd/ubuntu-core-docs/<wbr>blob/master/en/refer</a><br>
> ence/<a href="http://core-configuration.md" rel="noreferrer" target="_blank">core-configuration.md</a><br>
><br>
> to disable ssh. However, I got the error like:<br>
><br>
> liu-xiao-guo@localhost:~$ sudo snap set core service.ssh.disable=true<br>
> error: cannot perform the following tasks:<br>
> - Run configure hook of "core" snap<br>
> (/snap/core/1177/meta/hooks/<wbr>configure: 62:<br>
> /snap/core/1177/meta/hooks/<wbr>configure: systemctl: Permission denied)<br>
><br>
> Is this a bug? It was tested on Raspberry Pi2 device, and my core<br>
> system info is like:<br>
<br>
</span>hmm, works fine on my pi2 install ...<br>
<br>
ogra@localhost:~$ snap set core service.ssh.disable=true<br>
ogra@localhost:~$ snap set core service.ssh.disable=false<br>
ogra@localhost:~$ <br>
<br>
line 62 calls: "systemctl disable ssh.service"<br>
do you get the same error if you call the above (with sudo) manually ?<br>
<br>
could your SD card be full or have errors (and thus be mounted<br>
readonly) ?<br>
<br>
also check if the core-support interface is properly connected (it<br>
should auto-connect, this would definitely be a bug):<br>
<br>
ogra@localhost:~$ snap interfaces |grep core<br>
:core-support <wbr>core<br>
ogra@localhost:~$ <br>
<br>
ciao<br>
oli<br>--<br>
Snapcraft mailing list<br>
<a href="mailto:Snapcraft@lists.snapcraft.io">Snapcraft@lists.snapcraft.io</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/snapcraft" rel="noreferrer" target="_blank">https://lists.ubuntu.com/<wbr>mailman/listinfo/snapcraft</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">XiaoGuo, Liu </div></div></div></div>
</div>