<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">Something is wrong with your system. Did you ever clone the code and run `sudo python3 setup.py install` (don't do that btw).<br><br></div><div class="gmail_quote">fwiw, I just created a clean lxc container and installed snapcraft there<br><br>sergiusens@lindon:~$ lxc launch images:ubuntu/vivid/amd64 snapcraft-vivid<br></div><div class="gmail_quote">[ add ppa, update, install ...]<br>sergiusens@lindon:~$ lxc exec snapcraft-vivid -- apt-cache policy snapcraft<br>snapcraft:<br> Installed: 1.0~vivid~ppa2<br> Candidate: 1.0~vivid~ppa2<br> Version table:<br> *** 1.0~vivid~ppa2 0<br> 500 <a href="http://ppa.launchpad.net/snappy-dev/tools/ubuntu/">http://ppa.launchpad.net/snappy-dev/tools/ubuntu/</a> vivid/main amd64 Packages<br> 100 /var/lib/dpkg/status<br></div><div class="gmail_quote">sergiusens@lindon:~$ lxc exec snapcraft-vivid -- snapcraft version<br>snapcraft (1.0).<br>Run "snapcraft help" to get started.<br><br></div><div class="gmail_quote"><br>On Tue, Jan 12, 2016 at 11:01 PM, XiaoGuo Liu <span dir="ltr"><<a href="mailto:xiaoguo.liu@canonical.com" target="_blank">xiaoguo.liu@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Sergio,</div><div><br></div><div>liuxg@liuxg:~$ sudo apt-get install snapcraft --reinstall</div><div>[sudo] password for liuxg: </div><span class=""><div>Reading package lists... Done</div><div>Building dependency tree </div><div>Reading state information... Done</div></span><div>0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 1 not upgraded.</div><div>Need to get 0 B/39.3 kB of archives.</div><div>After this operation, 0 B of additional disk space will be used.</div><div>(Reading database ... 444440 files and directories currently installed.)</div><div>Preparing to unpack .../snapcraft_1.0~vivid~ppa2_all.deb ...</div><div>Unpacking snapcraft (1.0~vivid~ppa2) over (1.0~vivid~ppa2) ...</div><div>Setting up snapcraft (1.0~vivid~ppa2) ...</div><span class=""><div>liuxg@liuxg:~$ snapcraft version</div><div>snapcraft (0.5).</div><div>Run "snapcraft help" to get started.</div></span><div>liuxg@liuxg:~$ sudo apt-get remove snapcraft</div><span class=""><div>Reading package lists... Done</div><div>Building dependency tree </div><div>Reading state information... Done</div></span><div>The following packages were automatically installed and are no longer required:</div><div> libjs-excanvas mercurial mercurial-common python3-jsonschema</div><div>Use 'apt-get autoremove' to remove them.</div><div>The following packages will be REMOVED:</div><div> snapcraft snapcraft-examples</div><div>0 upgraded, 0 newly installed, 2 to remove and 1 not upgraded.</div><div>After this operation, 769 kB disk space will be freed.</div><div>Do you want to continue? [Y/n] y</div><div>(Reading database ... 444439 files and directories currently installed.)</div><div>Removing snapcraft-examples (1.0~vivid~ppa2) ...</div><div>Removing snapcraft (1.0~vivid~ppa2) ...</div><div>liuxg@liuxg:~$ sudo apt install snapcraft</div><span class=""><div>Reading package lists... Done</div><div>Building dependency tree </div><div>Reading state information... Done</div></span><div>The following NEW packages will be installed:</div><div> snapcraft</div><div>0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.</div><div>Need to get 0 B/39.3 kB of archives.</div><div>After this operation, 234 kB of additional disk space will be used.</div><div>Selecting previously unselected package snapcraft.</div><div>(Reading database ... 444292 files and directories currently installed.)</div><div>Preparing to unpack .../snapcraft_1.0~vivid~ppa2_all.deb ...</div><div>Unpacking snapcraft (1.0~vivid~ppa2) ...</div><div>Setting up snapcraft (1.0~vivid~ppa2) ...</div><span class=""><div><div>liuxg@liuxg:~$ snapcraft version</div><div>snapcraft (0.5).</div><div>Run "snapcraft help" to get started.</div></div><div><br></div></span><div>I have done at your suggestion. Still I get the 0.5 version. I am on 15.04 desktop.</div><span class=""><div><br></div><div>Thanks & best regards,</div><div>XiaoGuo</div><div><br></div></span></div><div class=""><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 13, 2016 at 9:58 AM, XiaoGuo Liu <span dir="ltr"><<a href="mailto:xiaoguo.liu@canonical.com" target="_blank">xiaoguo.liu@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Sergio,</div><div><br></div><div>Below is the output of the version:</div><div><br></div><div>liuxg@liuxg:~$ apt-cache policy snapcraft</div><div>snapcraft:</div><div> Installed: 1.0~vivid~ppa2</div><div> Candidate: 1.0~vivid~ppa2</div><div> Version table:</div><div> *** 1.0~vivid~ppa2 0</div><div> 500 <a href="http://ppa.launchpad.net/snappy-dev/tools/ubuntu/" target="_blank">http://ppa.launchpad.net/snappy-dev/tools/ubuntu/</a> vivid/main amd64 Packages</div><div> 100 /var/lib/dpkg/status</div><span><div><br></div><div>Thanks & best regards,</div><div>XiaoGuo</div></span></div><div class="gmail_extra"><div><div><br><div class="gmail_quote">On Wed, Jan 13, 2016 at 9:55 AM, Sergio Schvezov <span dir="ltr"><<a href="mailto:sergio.schvezov@canonical.com" target="_blank">sergio.schvezov@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span>On Tue, Jan 12, 2016 at 10:43 PM, XiaoGuo Liu <span dir="ltr"><<a href="mailto:xiaoguo.liu@canonical.com" target="_blank">xiaoguo.liu@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi <span style="font-size:19.2px">Sergio,</span><div><span style="font-size:19.2px"><br></span></div><div><span style="font-size:19.2px">I have followed your steps to install the snapcraft on my Ubuntu 15.04 desktop:</span></div><div><span style="font-size:19.2px"><br></span></div><div><span style="font-size:19.2px"> sudo add-apt-repository ppa:snappy-dev/tools</span><br style="font-size:19.2px"><span style="font-size:19.2px"> sudo apt-get update</span><br style="font-size:19.2px"><span style="font-size:19.2px"> sudo apt-get install snapcraft</span><span style="font-size:19.2px"><br></span></div><div><span style="font-size:19.2px"><br></span></div><div><span style="font-size:19.2px">It showed me the version 0.5, which was the same as before. Is there anything I missed?</span></div><div><span style="font-size:19.2px"><br></span></div><div><div><span style="font-size:19.2px">liuxg@liuxg:~$ sudo apt-get install snapcraft</span></div><div><span style="font-size:19.2px">Reading package lists... Done</span></div><div><span style="font-size:19.2px">Building dependency tree </span></div><div><span style="font-size:19.2px">Reading state information... Done</span></div><div><span style="font-size:19.2px">snapcraft is already the newest version.</span></div><div><span style="font-size:19.2px">0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.</span></div></div></div></blockquote><div><br></div></span><div>This is an indication.<br><br></div><div>Have you installed a devel version of snapcraft? What is the output of<br><br></div><div> apt-cache policy snapcraft<br><br></div><div>Remove and install or use --reinstall perhaps.<br><br></div></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span>-- <br><div><div dir="ltr">XiaoGuo, Liu (刘晓国)<div>Mobile: <a href="tel:%2B86-13911181302" value="+8613911181302" target="_blank">+86-13911181302</a></div></div></div>
</span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr">XiaoGuo, Liu (刘晓国)<div>Mobile: +86-13911181302</div></div></div>
</div>
</div></div></blockquote></div><br></div></div>