Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Install Ubuntu on Nexus One & HTC EVO: Full Guide

· 7 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

This guide explains how to install Ubuntu Linux on a HTC Nexus One or HTC EVO 4G (the original EVO, not later models). This replaces the Android operating system with Ubuntu, turning your phone into a pocket Linux computer. It works on both devices because they share the same Qualcomm Snapdragon QSD8250 processor and similar hardware. You will need a computer with a Linux distribution (or Windows with fastboot drivers), a micro-USB cable, and a microSD card. This process wipes all data on the phone, so back up anything important first.

What You'll Need

  • An unlocked HTC Nexus One or HTC EVO 4G (SIM not required for install, but bootloader must be unlocked)
  • A computer running Linux (Ubuntu recommended) or Windows with fastboot drivers installed
  • A micro-USB cable that can transfer data (not just charge)
  • A microSD card (at least 1GB, but 4GB or more is better for the Ubuntu root filesystem)
  • A card reader to write the image to the microSD card
  • Ubuntu for Nexus One / EVO image files (download from the official Ubuntu for phones archive or a trusted mirror)
  • Fastboot and adb tools installed on your computer (install via sudo apt install android-tools-fastboot android-tools-adb on Ubuntu)

Step-by-Step

  1. Back up your phone data. This process erases everything on the internal storage. Copy photos, contacts, and any files you want to keep to your computer or cloud.
  2. Unlock the bootloader. On the Nexus One: turn off the phone, then hold Volume Down and press Power to enter bootloader mode. Connect the phone to your computer via USB. Run fastboot oem unlock and confirm on the phone screen. On the HTC EVO: the process is similar, but you may need to use HTC's official unlock tool from their developer site (htcdev.com) because the EVO's bootloader is locked by default. Follow HTC's instructions to unlock it, which requires creating an account and submitting a token.
  3. Download the Ubuntu image. Go to the official Ubuntu for phones download page (or the Ubuntu wiki page for Nexus One/EVO). Download the ubuntu-*.img file for your device (e.g., ubuntu-12.04-preinstalled-armel.img for Nexus One). For the EVO, you may need a specific build; check the XDA Developers forum for a verified link, but only use official or trusted sources.
  4. Write the image to the microSD card. Insert the microSD card into your computer's card reader. Find the device name with lsblk or dmesg (e.g., /dev/sdb). Unmount any mounted partitions with umount /dev/sdb*. Then write the image with: sudo dd if=ubuntu-*.img of=/dev/sdb bs=1M. This will take several minutes. When done, run sync and remove the card.
  5. Boot into fastboot mode on the phone. With the phone off, hold Volume Down and press Power. You should see a menu with options like FASTBOOT, RECOVERY, and CLEAR STORAGE. Use Volume keys to navigate and Power to select FASTBOOT.
  6. Flash the boot image (if included). Some Ubuntu builds require a custom kernel/boot image. If your download includes a boot.img file, flash it with: fastboot flash boot boot.img. If not, skip this step; the stock bootloader will still work because the image on the microSD contains the kernel.
  7. Insert the microSD card into the phone. With the phone still in fastboot mode, remove the back cover and insert the microSD card with the Ubuntu image.
  8. Boot into recovery mode. From the fastboot menu, select RECOVERY. This will boot a minimal recovery environment. The exact steps vary by build, but typically you will see a menu with options like "Install from sdcard" or "Apply update from sdcard". Use the volume keys to navigate and the power button to select.
  9. Install Ubuntu from the microSD. Choose the option to install from sdcard, then select the image file you wrote (it may appear as a .img file or a .zip if the build uses a different format). Confirm the installation. The recovery will copy the root filesystem to the phone's internal storage. This can take 10-20 minutes.
  10. Reboot. After installation completes, select "Reboot system now" from the recovery menu. The phone will restart and boot into Ubuntu. The first boot may take several minutes.

Common Mistakes

  • Writing the image to the wrong device. Double-check that of=/dev/sdb (or whatever) is your microSD card, not your hard drive. You can permanently erase your computer's OS if you choose the wrong device.
  • Not unlocking the bootloader first. If you skip step 2, fastboot commands will fail with "FAILED (remote: not allowed)". Unlock it before proceeding.
  • Using a microSD card that's too small. The Ubuntu image is around 1GB, but the root filesystem needs more space. Use at least a 4GB card to avoid errors.
  • Forgetting to sync after dd. If you remove the card without sync, the image may be corrupted. Always run sync after writing.
  • Mixing up Nexus One and EVO images. These devices have different hardware (e.g., EVO has WiMAX, Nexus One has different radio). Using the wrong image can cause boot loops or hardware failure.

Tips

  • Keep a backup of your Android ROM (a nandroid backup via custom recovery) before installing Ubuntu, so you can restore Android later if needed.
  • Use a USB 2.0 port on your computer for fastboot; USB 3.0 can sometimes cause issues with older phones.
  • If the phone gets stuck on the boot animation for more than 10 minutes, pull the battery and try again. It may take a few attempts on first boot.
  • After Ubuntu is installed, you can use the phone with a Bluetooth keyboard and mouse for a desktop-like experience.
  • Check the Ubuntu wiki page for your device for specific notes on Wi-Fi, sound, and other hardware that may not work perfectly.

Troubleshooting

Phone won't enter fastboot mode. Make sure you hold Volume Down and Power for at least 5 seconds. If the screen stays black, try Volume Up + Power (on some EVO units it's different). If nothing works, charge the phone for 30 minutes and try again.

Fastboot says "device not found". On Linux, run sudo fastboot devices to see if the phone is detected. If not, install the udev rules for Android devices (usually in the android-tools package). On Windows, install the Google USB driver from the Android SDK. Try a different USB cable or port.

Installation fails with "E: Can't open /sdcard/...". This means the recovery can't see the microSD card. Remove the card, re-insert it, and make sure it's properly seated. If the card is exFAT or NTFS formatted, the recovery may not read it; the dd process writes a raw image, so it should be fine, but try a different card if possible.

Phone boots to a black screen after reboot. This usually means the kernel didn't flash correctly. Go back to fastboot mode and flash the boot.img again (if you have one). If you don't have a boot.img, try re-downloading the Ubuntu image and redoing the dd step.

Ubuntu boots but touchscreen doesn't work. This is a known limitation on some early builds. Try connecting a USB mouse via an OTG cable. Some builds require a specific kernel module; check the Ubuntu wiki for your device.

I want to go back to Android. Download the official stock ROM for your device (from HTC or Google), boot into fastboot, and run fastboot flash recovery stock-recovery.img then fastboot flash boot boot.img and fastboot flash system system.img (you'll need to extract the ROM files). Alternatively, if you made a nandroid backup, restore it via custom recovery.

Frequently Asked Questions

Will this work on the HTC EVO 4G LTE or HTC EVO 3D?

No. This guide is only for the original HTC EVO 4G (model PC36100) and the Nexus One (HTC Passion). Later models have different processors and are not compatible with these images.

Can I install Ubuntu alongside Android (dual boot)?

Not easily. This method replaces Android entirely. Some developers have created dual-boot scripts, but they are unreliable and not officially supported. Stick to a full install unless you're an advanced user.

Will all hardware work (camera, GPS, cellular)?

No. Ubuntu for these phones is a developer preview. Wi-Fi and basic touchscreen usually work, but camera, GPS, and cellular data often do not. The phone is essentially a Linux handheld, not a phone.

Is this the same as Ubuntu Touch?

No. Ubuntu Touch is a newer, separate mobile OS. This guide uses the older "Ubuntu for Android" or "Ubuntu for phones" preview that was designed for these specific devices around 2012. Ubuntu Touch is not available for these phones.

Do I need to root my phone first?

Unlocking the bootloader is required, but rooting (installing a custom recovery like ClockworkMod) is not strictly necessary. The stock recovery may not support the install commands, so you might need to flash a custom recovery (like TWRP) first. This guide assumes you use the stock recovery; if it fails, flash a custom recovery via fastboot.

Will this void my warranty?

Yes. Unlocking the bootloader and installing a non-official OS voids the warranty. This is a hobbyist project, not a supported operation.