I did actually both - downloading with curl and firefox from a different
machine (my workstation) and transferring it, but also downloading with
curl on the 'problem' machine - wanted to narrow down the situation ...

So I did some further investigations:

First I removed the already (manually) installed "hello-world" first:
ubuntu@s1lp12:~$ sudo snap remove hello-world

Done
ubuntu@s1lp12:~$

Then installed with debug on and it worked surprisingly:
ubuntu@s1lp12:~$ sudo snap install hello-world

Name         Version  Rev  Developer  Notes
hello-world  6.3      27   canonical  -
ubuntu@s1lp12:~$
Maybe the hello-world snap was cached locally or so.

Hence to exclude this case I installed another package "ab".
Okay, typed "ap" first:
ubuntu@s1lp12:~$ sudo snap install ap

error: cannot perform the following tasks:
- Download snap "ap" from channel "stable" (snap not found)
ubuntu@s1lp12:~$

Then did a snap find:
ubuntu@s1lp12:~$ sudo snap find snap
Name              Version               Developer        Notes  Summary
ab                1.0                   snappy-test      -      Test snap with 
shortest name
audovia           3.2.2                 songbuilder      -      Database 
application for making music using JFugue MusicStrings
canonical-dragon  0.7.1                 canonical        -      The gadget snap 
for the dragonboard
canonical-i386    3.2.i386              canonical        -      The gadget snap 
for generic i386 systems
canonical-pc      3.2                   canonical        -      AMD64 generic 
package
demo-amd64        1.2                   woodrow          -      AMD64 generic 
package
hello-jfh         2.10                  jfh              -      GNU Hello, the 
"hello world" snap for s390x
hello-world       6.3                   canonical        -      The 
'hello-world' of snaps
http              4.66920160910         chipaca          -      HTTPie in a snap
pc                16.04-0.2             canonical        -      AMD64 generic 
package
roseapple-pi      1.1                   woodrow          -      Roseapple-pi 
support package
snappy-debug      0.23                  canonical        -      Debug tools for 
ubuntu-core
test-snapd-tools  1.0                   canonical        -      Tools for 
testing the snapd application
u1test20160920    0.1                   u1test201607192  -      Summary of the 
most simple snap
ubuntu-core       16.04+20160531.11-55  canonical        -      The ubuntu-core 
OS snap
xkcd-webserver    16.04-6               canonical        -      Show random 
XKCD compic via a build-in webserver
ubuntu@s1lp12:~$

And was also able to install "ab": 
ubuntu@s1lp12:~$ sudo snap install ab

Name  Version  Rev  Developer    Notes
ab    1.0      4    snappy-test  -
ubuntu@s1lp12:~$

... and even more packages ...

Now I disabled debug mode again (logged off and on again) and I was
still able to install snaps, like for example the 'xkcd-webserver' snap
?!

Hmmmmm   :-/

Okay, tried again on another system (on the same metal, also s390x):

So no snpas installed:
ubuntu@HWE0004:~$ snap list
No snaps are installed yet. Try 'snap install hello-world'.

.. and cannot install any - again the timeout:
ubuntu@HWE0004:~$ sudo snap install hello-world

error: cannot perform the following tasks:
- Download snap "ubuntu-core" (124) from channel "stable" (Get 
https://068ed04f23.site.internapcdn.net/download-snap/b8X2psL1ryVrPt5WEmpYiqfr5emixTd7_124.snap?t=2016-08-06T15:51:49Z&h=891521db7671d969d3283ca7fe2b28ce836ee2cd:
 dial tcp 77.242.195.169:443: i/o timeout)
ubuntu@HWE0004:~$

... just to be sure again:
ubuntu@HWE0004:~$ sudo snap install morse-converter-py

error: cannot perform the following tasks:
- Download snap "ubuntu-core" (124) from channel "stable" (Get 
https://068ed04f23.site.internapcdn.net/download-snap/b8X2psL1ryVrPt5WEmpYiqfr5emixTd7_124.snap?t=2016-08-06T15:50:31Z&h=c04f497811966572b10f4fd6a1512417aaafd061:
 dial tcp 77.242.195.170:443: i/o timeout)
ubuntu@HWE0004:~$

Enabled debug again on this system:
ubuntu@HWE0004:~$ sudo vi /etc/environment 
SNAPD_DEBUG_HTTP=7
ubuntu@HWE0004:~$ sudo systemctl restart snapd.service

Still nothing installed:
ubuntu@HWE0004:~$ snap list
No snaps are installed yet. Try 'snap install hello-world'.

And snap installation work again !
ubuntu@HWE0004:~$ sudo snap install hello-world
[sudo] password for ubuntu: 
50.81 MB / 50.81 MB [======================================] 100.00 % 1.88 MB/s 

hello-world (stable) 6.3 from 'canonical' installed
ubuntu@HWE0004:~$ snap list
Name         Version               Rev  Developer  Notes
hello-world  6.3                   27   canonical  -
ubuntu-core  16.04+20160531.11-55  124  canonical  -
ubuntu@HWE0004:~$

After disabling the debug mode again (to be sure I logged off and on
again after changing /etc/environment) I was again still able to install
further snaps, like:

ubuntu@HWE0004:~$ sudo snap install morse-converter-py

morse-converter-py (stable) 1-3 from 'brunonova' installed
ubuntu@HWE0004:~$ sudo snap install snappy-debug      

snappy-debug (stable) 0.23 from 'canonical' installed
ubuntu@HWE0004:~$ sudo snap install ab          

ab (stable) 1.0 from 'snappy-test' installed
ubuntu@HWE0004:~$

So the debug mode seem to change something in the systems ?! ... that
interesting - and I don't think that is just coincidence, because both
systems behave in the same way ...

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1609754

Title:
  Cannot install suggested 'hello-world' example

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1609754/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to