A workaround for this bug:
$ sudo dd if=/dev/zero of=/dev/sdb bs=1M count=1 $ sudo blockdev --rereadpt /dev/sdb
After zeroing out the first megabyte erasing of the usb disk works.
It is related to: https://bugs.launchpad.net/ubuntu/+source/usb-creator/+bug/458334
A workaround for this bug:
$ sudo dd if=/dev/zero of=/dev/sdb bs=1M count=1
$ sudo blockdev --rereadpt /dev/sdb
After zeroing out the first megabyte erasing of the usb disk works.
It is related to: https:/ /bugs.launchpad .net/ubuntu/ +source/ usb-creator/ +bug/458334