Snap install issues upon hard kill with Ctrl + c

Pawel Stolowski pawel.stolowski at canonical.com
Wed Jan 25 09:09:56 UTC 2017


Hi,

The ctrl+c behavior (bug #1596077 mentioned by Kyle) on snap install was 
fixed in December and released shortly afterwards, at least in Ubuntu.
The current version of snapd (2.20.1) in ubuntu should work - hitting 
ctrl+c now aborts the installation as expected:

$ sudo snap install mongo33
mongo33 2.84 MB / 93.59 MB 
[====>------------------------------------------------------------------------------------------------------------------------------------------------------------] 
3.04% 4.73 MB/s 19serror: cannot perform the following tasks:
- Download snap "mongo33" (2) from channel "stable" (net/http: request 
canceled)

Cheers,
Pawel


On 25.01.2017 01:12, Kyle Fazzari wrote:
>
> On 01/24/2017 03:59 PM, Luther Goh Lu Feng wrote:
>> I encountered an issue when I did a ctrl + c as snap was installing my helloworld snap. Essentially, I am unable to resume an install, or do any other snap installs. Is there any known way to resolve this should I encounter it again in future?
>>
>> This occured on Debian. I had to do an uninstall + reinstall of snapd. But even that failed. It only succeeded after I removed /var/lib/snap after uninstall, before the reinstallation step.
>>
>> -- Luther
>>
>>
>> ==================
>>
>> [foo at beaglebone ~/snappy/dockerbuild/snap2] Tue 24 Jan 2017 12:44:33 PM
>> # snap install ./hello_2.10_armhf.snap --dangerous
>> ubuntu-core 6.11 MB / 64.41 MB [=======>-----------------------------------------------------------------------]   9.48% 434.74 KB/s 2m17s^C
>> [foo at beaglebone ~/snappy/dockerbuild/snap2] Tue 24 Jan 2017 12:45:14 PM
>> # snap list
>> No snaps are installed yet. Try "snap install hello-world".
>> [foo at beaglebone ~/snappy/dockerbuild/snap2] Tue 24 Jan 2017 12:45:16 PM
>> # snap install ./hello_2.10_armhf.snap --dangerous
>> error: cannot install snap file: Get https://search.apps.ubuntu.com/api/v1/snaps/details/ubuntu-core?channel=stable&confinement=strict: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
>> [foo at beaglebone ~/snappy/dockerbuild/snap2] Tue 24 Jan 2017 12:45:31 PM
>> # snap install ./hello_2.10_armhf.snap --dangerous
>> error: cannot install snap file: snap "ubuntu-core" has changes in progress
>>
> tl;dr this is a known bug:
>
>      https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1596077
>
> A decent explanation of the issue is here if you're curious:
>
>
> https://askubuntu.com/questions/790969/how-do-i-remove-an-incomplete-or-broken-snap-installation-of-nextcloud-on-a-rasp/790975
>
>
>





More information about the Snapcraft mailing list