Trouble installing Ubuntu Touch on LG Nexus 5



  • Hello. A couple months ago, I tried installing UT on a recently acquired Nexus 5, but I encountered some problems which prevented the installation from succeeding. I am now in the process of downloading a phone img from Google to reflash the device back to its defaults, but in the meantime I wanted to describe the problems I encountered and see if there were any obvious things I was doing wrong. I probably should have made this thread three months ago, but that's my mistake.

    Anyway, I went through the installation process as usual on Windows 7, attempting to use the GUI installer.

    • enable android debugging
    • enable the bootloader
    • connect the device to my PC and run the GUI installer
      The GUI installer did not recognize the phone immediately, but I was able to select "Nexus 5" from the dropdown menu and apply the settings I wanted for installation (default, format memory, no custom instructions). When I attempted to proceed to the next step, the installer would try to connect to the device, but not succeed.

    This frustrated me, and some cursory research told me I might have better luck on Linux. I created a simple Linux VM in VMWare Workstation, then downloaded the GUI installer on that machine and connected the device to it. This time it detected the device correctly when I connected it with a USB cable and told VMWare to always connect that device to the VM instead of my PC by default

    I was able to progress a bit with the installation here, but I was still not successful.

    • all settings as above, except the installer recognizes the device automatically
    • some files are transferred onto the Nexus 5, and it restarts to the UBPorts Recovery Mode screen
    • it reboots once more into the default "Google" loading screen
    • the device disconnects from the VM and my PC
    • the default loading screen does not ever change

    At this point, I think there are some core files that were removed, which prevents the device from booting normally. The UT installation has a foot in the door, but is still missing files due to the disconnection.

    My course of action from here is basically starting from square one and not getting as frustrated as I did last time. I still intend to install the device using a VM because that seemed to be the simplest solution, and it avoids the instability of using the Windows installer.

    • reset Nexus 5 to factory defaults
    • download newest installers and drivers
    • be more careful about installing and not making any errors

    tl;dr
    I know this post was long-winded, but all I really want to know is whether or not I made a significant error, and how to avoid repeating it if I did. Thanks in advance for any insights you can share.



  • This post is deleted!


  • This post is deleted!


  • Couple of quick things windows works best with 15 sec adb https://forum.xda-developers.com/showthread.php?t=2588979 and try a few different usb cables. Someone tried 5 before the install worked without changing anything else. If your phone was encrypted factory reset it(which you have). Good luck back later.



  • I made it work with a bootable usb of 18.04, not a VM. It might make a difference...

    i also remember while struggling in windows that I gave a try to the manual install. so if I had a lot of luck the install through linux failed in the middle for me as well, but I had the correct files pushed on the memory from before and it worked:/

    i don't know if you refer to my previous post were I suggest using bootable usb, but I'll edit it anyway after I know more about the story if its induces mistakes!



  • You might want to check out "Nexus Root Toolkit". It's a Windows program that wraps up various solutions. For example, it will walk you through installing the proper drivers, adb, fastboot just so. Also, it can restore stock roms which is nice if you're getting worried about owning a brick. It is a little out-of-date (still wants an older version of TWRP for one of its steps, not a big deal), but I found it worked well for my Nexus 7 2013.

    Note that the UT installer didn't recognize my device either. I always had to select it by hand.

    I also installed Ubuntu 18 in a VM using VirtualBox. Then, also Ubuntu 16 the same way. What ultimately worked for me was ubuntu-device-flash (only available in 16 afaik, it's the old way I think), though my case was strange and I'm not recommending that for you.

    It was definitely a bit tricky to get my usb ports working in the VM. I had to go into the vm setting and add them (and they changed a few times as I re-installed windows drivers). My impression is that you still need to get the usb drives for windows right as the VM piggybacks on those. Even so, I was still unplugging and re-plugging the device at times to get the usb connection to wake up.

    The manual install is doable, probably a little easier on Ubuntu as it needs wget and a couple other things that are not native to Windows (but I was able to install them without much trouble). Doing it manual can help you zero-in on the problem as I found certain steps would fail. The UT installer doesn't seem to check for errors much, so it's hard to tell where it went wrong (imho). You can also use "adb shell" while in recovery to poke around on your device to see how things look (it's like a pathetic little linux install in there). If you're comfortable with that, not essential.

    I had 3 cables, one of which was definitely bad. "adb devices" did not work at all for that cable. So, I doubt your cable is bad as it seems to work mostly.

    I think your best bet would be to use Nexus Root Toolkit to do it's "Full driver installation guide..." (button near top). It has like 4 steps as it makes sure every little piece is right. I suspect I had initially some issue with not being in MTP mode or having some old windows drivers still installed (it made me delete devices, etc.)

    Anyway, good luck!



  • This post is deleted!


  • @Coluix It sounds to me as if you are almost there! A new cable may help. It does take longer than you might expect for the installation to complete.

    You are not alone. It has taken me some frustrating time to migrate from one Nexus 5 on Ubports to a "new" one bu,t with help from this forum, I am at last there ...

    Good luck!


Log in to reply