Skip to content Skip to footer

How to install Ubuntu on a Nexus 4 Device

If you have a Nexus device you are probably someone that loves Android, and generally if you love Android you also love Open Source. Tweaking and changing things in the OS is something Google allows you to do, until a certain point, for those who want to experiment a little more Ubuntu Phone OS might be the operation system to go with.

Ubuntu Phone is the Ubuntu version optimized for mobile smartphones, it is open source and allows for even more customization then Android. Its either that or you just want to try something new, but Install Ubuntu on a Nexus 4 can be a little complicated, that is why we have put together a guide on how to do so, make sure to follow each step and not skip any. Important: For this guide Ubuntu OS on your desktop is required!

  1. Make sure to back up your device, here is a guide on how to do so effectively . Installing Ubuntu will completely whipe your device’s storage deleting all of your files, please make a back up!
  2. First we need to unlock the bootloader, if you have already done this on your Nexus 4 device you can skip these steps until step 8
  3. Reboot your device into Bootloader mode and put in the following commands “adb reboot bootloader”
  4. Connect your Nexus device to your PC or Mac through USB
  5. Open the Terminal (CMD) and type in the following command: fastboot devices
  6. to initiate the unlocking process, type in the following command: fastboot oem unlock
  7. A pop-up windows showing a warning will show, make sure to click “Yes”
  8. You have successfully unlocked the device if it shows “unlocked” in front of Lock State
  9. disconnect your nexus device from the computer (reverse step 4)
  10. Open up terminal on your computer and run the following commands (in this order)
  11. sudo add-apt-repository ppa:phablet-team/tools
    sudo apt-get update
    sudo apt-get install phablet-tools android-tools-adb android-tools-fastboot
  12. The commands in step 10 will install all the required software on your desktop PC
  13. Enable USB debugging on your Nexus device
  14. Connect your device to your computer through USB
  15. Run the following command: phablet-flash ubuntu-system –no-backup 
  16. This one will start the installation process and you should wait patiently until the installation is done, do not interrupt the terminal or cancel the process 

Make sure to check out our other guide on how to install Android Kit Kat on your Nexus 4!