Apr 22, 2026
Did you know you can run a full Linux distribution on your Android phone without rooting it? Thanks to Termux and proot-distro, you can set up Ubuntu, Debian, or other Linux distros right on your Android device and access a complete Linux terminal environment.
This guide walks you through installing a Linux distro on Android using Termux — completely free and without root access.
Termux is a free and open-source terminal emulator for Android that provides a Linux-like environment. It comes with its own package manager and lets you install hundreds of Linux packages directly on your Android device — no root required.
Using a tool called proot-distro, you can go a step further and install full Linux distributions like Ubuntu, Debian, Alpine, Arch Linux, and more inside Termux.
Important: Do not install Termux from the Google Play Store. The Play Store version is outdated and no longer maintained. Always use the F-Droid version.
Once Termux is installed, open it and run the following commands to update all packages:
pkg update && pkg upgrade Press Y and hit Enter when prompted. This may take a few minutes.
proot-distro is a Termux package that manages Linux distribution installations using proot (a user-space implementation of chroot). Install it with:
pkg install proot-distro To see all supported Linux distributions, run:
proot-distro list You will see a list that includes popular distros like Ubuntu, Debian, Alpine, Arch Linux, Fedora, and more.
Let's install Ubuntu as an example. Run:
proot-distro install ubuntu The installation downloads and sets up the Ubuntu root filesystem. This may take a few minutes depending on your internet speed.
To install Debian instead, use:
proot-distro install debian Once installation is complete, log into Ubuntu with:
proot-distro login ubuntu You will now be inside a full Ubuntu shell. The prompt changes to show you are inside the Linux environment.
Inside Ubuntu, update the package lists and install any software you need:
apt update && apt upgrade -y For example, to install Python:
apt install python3 -y Or to install the nano text editor:
apt install nano -y | Command | Description |
|---|---|
proot-distro list | List available distros |
proot-distro install <distro> | Install a distro |
proot-distro login <distro> | Log into the distro |
proot-distro remove <distro> | Uninstall a distro |
proot-distro backup <distro> | Backup a distro |
proot-distro restore <distro> backup.tar.gz | Restore a backup |
termux-setup-storage in Termux to access your Android storage from within the Linux environment.While proot-distro is very powerful, there are a few limitations to be aware of:
That's it! You now have a full Linux distro running on your Android device. Termux with proot-distro is a great way to learn Linux, run scripts, or set up a lightweight development environment right from your phone.