Does the third command really work as intended?
sudo cat ubuntu-14.04-desktop-amd64.dmg >> /dev/sda1
I believe this will attempt to write data after the of the the block device, which almost by defintion will fail.However, I often do the following, which works pretty well:
sudo cat ubuntu-14.04-desktop-amd64.dmg > /dev/sda1