<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Le 02/12/2016 à 17:03, Bret A. Barker a
écrit :<br>
</div>
<blockquote cite="mid:20161202160314.GV1232@abitrandom.net"
type="cite">
<pre wrap="">Assuming you were hitting this error with a snapd prior to 2.18, then I think Madper is correct. Prior to 2.18 the order of the parameters for "got %s but expected %" was backward, see:
<a class="moz-txt-link-freetext" href="https://github.com/snapcore/snapd/blob/release/2.17/store/store.go#L1155">https://github.com/snapcore/snapd/blob/release/2.17/store/store.go#L1155</a>
And fixed in:
<a class="moz-txt-link-freetext" href="https://github.com/snapcore/snapd/blob/release/2.18/store/store.go#L1378">https://github.com/snapcore/snapd/blob/release/2.18/store/store.go#L1378</a>
-bret</pre>
</blockquote>
<br>
However, as you can see in <a class="moz-txt-link-freetext"
href="https://bugs.launchpad.net/bugs/1643893">https://bugs.launchpad.net/bugs/1643893</a>,
I can still reproduce pretty easily here this kind of error (nework
dropping and snapd disconnecting). While curl or wget can cope with
the download as expected.<br>
Cheers,<br>
Didier<br>
<a class="moz-txt-link-freetext"
href="https://bugs.launchpad.net/bugs/1643893"></a>
<blockquote cite="mid:20161202160314.GV1232@abitrandom.net"
type="cite">
<pre wrap="">
On Fri, Dec 02, 2016 at 11:34:49PM +0800, Madper Xie wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi Pegenaute,
In fact I'm meeting this issue every day before I setup a proxy...
May I know if you can reproduce it? And if so, did you get different
sha3-384 every time?
I think it's more like a network issue. The downloading interrupted somehow
so you got an incomplete snap pkg file. Which lead to a wrong sha result.
BR,
Madper
On Fri, Dec 2, 2016 at 10:42 PM, James Tait <a class="moz-txt-link-rfc2396E" href="mailto:james.tait@canonical.com"><james.tait@canonical.com></a>
wrote:
</pre>
<blockquote type="cite">
<pre wrap="">On 2 December 2016 at 13:32, David Barth <a class="moz-txt-link-rfc2396E" href="mailto:david.barth@canonical.com"><david.barth@canonical.com></a>
wrote:
</pre>
<blockquote type="cite">
<pre wrap="">On Fri, Dec 2, 2016 at 1:04 PM, Pegenaute Bresme, Xavier <
<a class="moz-txt-link-abbreviated" href="mailto:xpegenautebr@iam.cat">xpegenautebr@iam.cat</a>> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi all,
I just installed the last version [1] and when I execute these lines the
output is as follows.
I guess the package list is not properly updated/synchronized with the
package repository. Am I wrong?, how could I fix it ?
--------------------------------------------------------------
root@localhost:~# snap refresh
All snaps up to date.
root@localhost:~# snap install snapweb
error: cannot perform the following tasks:
- Download snap "snapweb" (25) from channel "stable" (sha3-384 mismatch
downloading snapweb: got
8b83c8eb7f7aa306bc342fd1b424fa95ccf379c068c4735085bc81ee6b51
bb02a23b8c3c2a34f842619d7650b3152787 but expected
d0e1cd6d578c8eaab13e10dac4acbd7e8f6337da45b291fa7ae0358a2939
3059732b29bb61a65d18e693b8e6e8a53b62)
</pre>
</blockquote>
<pre wrap="">
What is surprising is the "expected" signature.
Snap is downloading the correct armhf build for 0.21.2, ie #25, and the
SHA3 it obtained corresponds to the published version.
Moreover, that expected hash doesn’t seem to exist in the index, at
</pre>
</blockquote>
<pre wrap="">least not for that package. Where has snapd got that value from?
--
James Tait, BSc. | <a class="moz-txt-link-freetext" href="https://launchpad.net/~jamestait/">https://launchpad.net/~jamestait/</a>
Software Engineer, Canonical Online Services
Ubuntu - Linux for human beings | <a class="moz-txt-link-abbreviated" href="http://www.ubuntu.com">www.ubuntu.com</a>
--
Snapcraft mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Snapcraft@lists.snapcraft.io">Snapcraft@lists.snapcraft.io</a>
Modify settings or unsubscribe at: <a class="moz-txt-link-freetext" href="https://lists.ubuntu.com/">https://lists.ubuntu.com/</a>
mailman/listinfo/snapcraft
</pre>
</blockquote>
</blockquote>
<pre wrap="">
</pre>
<blockquote type="cite">
<pre wrap="">--
Snapcraft mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Snapcraft@lists.snapcraft.io">Snapcraft@lists.snapcraft.io</a>
Modify settings or unsubscribe at: <a class="moz-txt-link-freetext" href="https://lists.ubuntu.com/mailman/listinfo/snapcraft">https://lists.ubuntu.com/mailman/listinfo/snapcraft</a>
</pre>
</blockquote>
<pre wrap="">
</pre>
</blockquote>
<p><br>
</p>
</body>
</html>