device-mapper: remove ioctl on loop0p5 failed: Device or resource busy

Bug #1496484 reported by Leo Arias
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Snapcraft
Invalid
Undecided
Unassigned
goget-ubuntu-touch (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Today I tried to get an image with ubuntu-device-flash, and it failed 2 times in a row. It worked on the third try.

$ sudo ubuntu-device-flash core 15.04 --channel edge --developer-mode -o ubuntu-snappy-1504-edge-amd64-generic.img
[sudo] password for elopio:
Determining oem configuration
Starting download of generic-amd64
41.70 KB / 41.70 KB [================================================================================================================================================================] 100.00 % 126.70 KB/s
Done
Starting download of icon for package
38.97 KB / 38.97 KB [================================================================================================================================================================] 100.00 % 118.05 KB/s
Done
Fetching information from server...
Downloading and setting up...
error while executing external command kpartx -ds ubuntu-snappy-1504-edge-amd64-generic.img: device-mapper: remove ioctl on loop0p5 failed: Device or resource busy
loop deleted : /dev/loop0

$ apt-cache policy ubuntu-device-flash
ubuntu-device-flash:
  Instalita: 0.30-0ubuntu1
  Kandidato: 0.30-0ubuntu1
  Version table:
 *** 0.30-0ubuntu1 0
        500 http://cr.archive.ubuntu.com/ubuntu/ wily/universe amd64 Packages
        100 /var/lib/dpkg/status
     0.29-0ubuntu3 0
        500 http://ppa.launchpad.net/snappy-dev/tools/ubuntu/ wily/main amd64 Packages

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in goget-ubuntu-touch (Ubuntu):
status: New → Confirmed
Revision history for this message
Leo Arias (elopio) wrote :

Also affects snapcraft, which gets in this situation after running snapcraft run.

Revision history for this message
Leo Arias (elopio) wrote :

To retry I do:

sudo losetup -d /dev/loop0
sudo dmsetup remove_all
sudo kpartx -d /dev/loop0

Revision history for this message
Leo Arias (elopio) wrote :
Changed in snapcraft:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.