$ sudo apt-get install gddrescue xz-utils
$ unxz ubuntu-mate-16.04-desktop-armhf-raspberry-pi.img.xz
$ sudo ddrescue -D --force ubuntu-mate-16.04-desktop-armhf-raspberry-pi.img /dev/sdx