Once you have Ubuntu installed on a Nexus 7, how do you get back to stock Android?
Directions taken from OMG! Ubuntu!. I’m assuming you backed up your data.


Download the corresponding Android image from Google.
Extract the downloaded ZIP.
Connect your Nexus 7 to the computer with the USB cable.
Open a Terminal window and type: adb reboot-bootloader, this will reboot the tablet into the Android bootloader.
In the terminal, use the cd command to enter the folder created after you extracted the previously downloaded ZIP, for example, Desktop/&lt;name of extracted folder&gt;
Once there, run the shell script: sudo ./flash-all.sh and wait for it to complete.