First of all thanks for this beautiful post. I followed all the instructions mentioned here and managed to install Ubuntu Touch OS (stable) almost effortlessly on my Xiaomi Mi A2. Here are a few things I need to put here for any to whom this would be helpful.
Error while flashing TWRP recovery:
./fastboot boot twrp-3.5.2_9-0-jasmine_sprout.img
FAILED (command write failed (No error)) finished. total time: 0.029s
After this, you will be asked(in the top left corner or somewhere in small letters) on your phone to press any button to shut down, which will simply reboot your phone.
I faced this error while I was trying to flash the TWRP recovery on my Laptop. I have a laptop that has an AMD Ryzen processor which for some reason is known to have similar issues. Although I must add that it is not uncommon to have the same error on Intel-based laptops.
SOLUTION
- Try different USB ports and preferably USB 2.0
- If you are on windows try updating your drivers. I use Linux but updating the driver has known to solve the issue.
- Use a different PC or laptop. This is the one which is you should try without wasting any more time on finding the fix for that. You will be wasting your time and will get frustrated over the issue over which have no control. I faced the same issue and lots of ways to make it work eventually I tried on a different Linux PC and it was a breeze thereafter.
I tried on a windows PC as well but it was not recognizing my device in fast boot. I tried installing a few drivers but eventually, it was way too much hassle for simple stuff
BONUS TIP:
This is a tip that might work or might not like it worked partially for me. If a similar error like the above occurs while looking for fast boot devices or even during TWRP recovery, try the following.
- Put your phone in fastboot but do not connect via USB right now.
- On your PC/Laptop write the command which you would have done while the phone was connected. The command will say, Waiting for any device
- Now plug your phone via USB and "hopefully" it will work. If this doesn't work, go for the tested method above.
Finally thanks again for this post and I didn't need to follow any other sources to flash the Ubuntu Touch.