Install Ubuntu on Nexus 7: Full Guide
In this article
You can install Ubuntu Linux on a Google Nexus 7 (2012 or 2013) tablet, replacing or dual-booting Android. This gives you a full desktop Linux environment on the device. The process requires unlocking the bootloader, flashing a custom recovery, and installing Ubuntu via a multirom setup (for dual-boot) or as the sole OS. This guide covers the dual-boot method, which is safer and reversible. You need a computer, a USB cable, and about an hour of time.
What You'll Need
- Google Nexus 7 tablet (Wi-Fi model; the 2012 and 2013 versions both work, but the 2013 model is more reliable)
- A Windows, Mac, or Linux computer with internet access
- USB cable compatible with the Nexus 7
- Backup of any important data on the tablet (the process wipes it)
- Downloaded files: Ubuntu Touch or Ubuntu for Nexus 7 image, MultiROM recovery, and Android platform tools (ADB and Fastboot)
Step-by-Step
- Back up your tablet. Connect the Nexus 7 to your computer, copy any photos, documents, or app data you want to keep. The bootloader unlock will erase everything.
- Enable Developer Options. On the tablet, go to Settings > About tablet and tap “Build number” seven times until “You are now a developer” appears. Then go to Settings > Developer options and enable “USB debugging” and “OEM unlocking” (if available on your version).
- Install ADB and Fastboot on your computer. Download the official Android platform tools from Google’s developer site (or install via your package manager on Linux). Extract them to a folder you can access from the command line.
- Connect the tablet to your computer. Use the USB cable. On the tablet, accept the “Allow USB debugging” prompt if it appears.
- Test the connection. Open a terminal/command prompt in the folder with ADB and run:
adb devices. You should see your device listed as “device”. If not, reinstall the USB drivers (Windows) or check the cable. - Unlock the bootloader. Run:
adb reboot bootloader. The tablet will restart into fastboot mode. Then run:fastboot oem unlock(orfastboot flashing unlockon newer versions). Confirm on the tablet screen. This wipes all data. Once done, runfastboot rebootto return to Android. - Download MultiROM and Ubuntu image. Go to the official MultiROM page for Nexus 7 (or use the TWRP recovery that includes MultiROM). Download the Ubuntu Touch image for Nexus 7 from the official Ubuntu or UBports site. Also download the MultiROM zip and the recovery image.
- Flash TWRP with MultiROM. Boot to fastboot again (
adb reboot bootloader). Then run:fastboot flash recovery twrp-multirom.img(replace with the actual filename). After flashing, use the volume keys to select “Recovery mode” and press power. - Install MultiROM in recovery. In TWRP, tap “Install” and select the MultiROM zip file you downloaded. Swipe to confirm. This adds MultiROM support to the recovery.
- Reboot and set up MultiROM. Reboot back to Android. Open the MultiROM app (it should be installed automatically) and grant root access if prompted. The app lets you add ROMs.
- Add Ubuntu as a secondary ROM. In the MultiROM app, tap “Add ROM” and select “Ubuntu Touch”. Choose the downloaded Ubuntu image file. The app will install it as a secondary OS, leaving Android intact.
- Reboot into Ubuntu. Reboot the tablet. During boot, a MultiROM menu appears. Select “Ubuntu” and press power to boot. The first boot may take several minutes.
- Configure Ubuntu. Follow the on-screen setup (language, Wi-Fi, etc.). You now have a dual-boot system: Android and Ubuntu.
Common Mistakes
- Wrong image file: Using an image meant for a different Nexus model (2012 vs 2013) will fail. Always download the correct one for your specific device.
- Skipping the bootloader unlock: If you don’t unlock the bootloader, flashing will fail with a “remote: not allowed” error.
- USB connection issues: Using a charge-only cable or a faulty port can cause ADB to not detect the device. Try another cable and port.
- Not backing up: The unlock wipes everything. If you skip backup, you lose all data.
- Flashing the wrong recovery: Using a standard TWRP without MultiROM will not allow you to install Ubuntu as a secondary ROM.
Tips
- Keep Android as your primary OS for daily use; Ubuntu on the Nexus 7 is experimental and may lack some drivers or features.
- Use the 2013 model if possible—it has better hardware support and more community documentation.
- Charge the tablet fully before starting. The process can take a while, and a dead battery mid-flash can brick the device.
- If you want to remove Ubuntu later, use the MultiROM app to delete the ROM, or reflash the stock Android image via fastboot.
- Check the XDA Developers forum for your specific model for the latest MultiROM and Ubuntu builds—community support is the best resource.
Troubleshooting
If the tablet won’t boot into Ubuntu: Reboot and select Android in the MultiROM menu. Then open the MultiROM app and verify the Ubuntu ROM is listed. If not, re-add it.
If ADB doesn’t detect the device: On Windows, install the Google USB driver. On Linux, add a udev rule for the Nexus 7. Try a different USB port and cable.
If the bootloader unlock fails: Make sure “OEM unlocking” is enabled in Developer Options (if your Android version has it). If not, you may need to enable it first.
If Ubuntu boots but has no Wi-Fi or touch issues: This is common on the 2012 model. Check the XDA forums for a newer kernel or a patch. You may need to use a USB OTG adapter with a keyboard/mouse for setup.
If you get a “failed to mount” error during flashing: Wipe the cache and dalvik cache in TWRP, then retry. If it persists, re-download the image and verify the checksum.
If all else fails, restore stock: Download the factory image from Google’s developers site, boot to fastboot, and run fastboot flash boot boot.img, fastboot flash system system.img, etc. This will erase everything and restore Android.
Frequently Asked Questions
Will this work on the Nexus 7 2012 model?
Yes, but with limitations. The 2012 model has weaker hardware and less community support; Wi-Fi and touch may be buggy. The 2013 model is recommended.
Can I still use Android after installing Ubuntu?
Yes, if you use the MultiROM method described here. Android remains as the primary ROM, and you choose which to boot at startup.
Will I lose my Android data?
Yes, during the bootloader unlock step, all data is wiped. Back up first. After that, installing Ubuntu as a secondary ROM does not affect Android.
Is this the same as Ubuntu Touch?
Ubuntu Touch is the mobile version of Ubuntu designed for phones and tablets. The image you install is Ubuntu Touch, not the desktop version. It has a touch-friendly interface.
Do I need to root the tablet first?
No, the bootloader unlock and custom recovery give you the access you need. Rooting is not required separately.
Can I go back to stock Android?
Yes. Download the factory image from Google’s developers site and flash it via fastboot. This will remove Ubuntu and MultiROM and restore the original Android.