Which Ubuntu version does Xtream UI need?
| Ubuntu | Original R22F installer | Community builds | Guide |
|---|---|---|---|
| 18.04 LTS | Yes (target release) | Not needed | R22F steps below |
| 20.04 LTS | No | Unofficial GitHub builds | Ubuntu 20.04 section |
| 22.04 LTS | No (no libcurl3, no python-paramiko) | Unofficial GitHub builds | Ubuntu 22.04 section |
| 24.04 LTS | No (no Python 2 at all) | Unofficial community installer | Xtream UI on Ubuntu 24.04 |
How to install Xtream UI R22F on Ubuntu 18.04
Xtream UI remains one of the most popular free choices for managing IPTV services. If you are just starting out and don't have a huge budget for premium panels, this is a great place to start. While it might seem complicated at first, installing it is actually quite straightforward if you follow the steps below.
1Getting Your Server Ready
Before we type a single command, you need to make sure your environment is correct. Xtream UI is very specific about what it needs.
- Operating System: These R22F steps need Ubuntu 18.04 LTS. They fail on Ubuntu 20.04, 22.04 and 24.04 because the installer depends on Python 2 era packages. For newer releases read the Ubuntu 20.04, Ubuntu 22.04 or Ubuntu 24.04 sections.
- Tools: You will need PuTTY (to run commands) and WinSCP (to transfer files) installed on your computer.
2Enabling Root Access
Most server providers today give you a custom username (like ubuntu or azureuser) instead of the root user for security reasons. However, Xtream UI needs full root access to install correctly.
If you aren't logged in as root, login with your default user and run:
Now, let's enable direct root login so you don't have issues later. Open the SSH config file:
Look for the line that says PermitRootLogin prohibit-password or similar. Change it to:
Press CTRL+X, then Y, then Enter to save. Finally, restart the SSH service and set a root password:
3Running the Installation Script
We will use a mirror script that automates downloading all the necessary files. Since the original Xtream Codes servers are down, these mirrors act as the source.
Copy and paste this entire command into PuTTY:Once the script starts, you will see a menu. Here is what to do:
- Type MAIN and press Enter (this installs the Admin panel).
- When asked to configure MySQL, choose Y (Yes).
- It will ask for a MySQL password. Type any password you like (e.g.,
12345) and save this password safely.
When it finishes, it will show you your panel URL, usually http://your-ip:25500.
4Updating to Version R22F
The default installer usually installs version R22E. To get the latest features and bug fixes (Version R22F), you need to run an update command immediately after installation.
After the files are copied, run this final cleanup command to set permissions and restart services:
5Essential Fixes (Don't Skip This!)
There is a known bug where the GeoLite2.mmdb file (used for identifying user countries) gets corrupted or deleted, causing streams to stop working. Run this fix to download a fresh copy and lock it so it cannot be deleted:
admin / Pass: admin.
Can I install Xtream UI on Ubuntu 20.04?
Not with the commands above. Ubuntu 20.04 has no python command by default (only python3), so sudo python install.py and the R22F update step no longer run as written. Community repositories on GitHub describe Xtream UI builds for Ubuntu 20.04 and 22.04. They are unofficial: read the script, run it on a spare VPS first and keep a database backup. Ubuntu 20.04 itself left standard support in 2025, so a new install on it buys little time.
Can I install Xtream UI on Ubuntu 22.04?
Only through a community build. On Ubuntu 22.04 the R22F installer stops at libcurl3 and python-paramiko, which the release no longer ships, and Python 2 is only available from the universe repository. If you already depend on a 22.04 server, compare the effort of patching an unmaintained panel with moving to software that supports the release natively.
What about Ubuntu 24.04?
Ubuntu 24.04 has no Python 2 package at all. The only route is an unofficial community installer; the safety checks and error table are in our dedicated guide: how to install Xtream UI on Ubuntu 24.04. Running XUI.ONE instead? See install XUI.ONE on Ubuntu 24.04.
How do I move from Xtream UI to a supported panel?
Export the database with mysqldump, install the new panel on a fresh Ubuntu 24.04 server and import the dump. The Xtream-Masters OTT panel migrates Xtream UI, XUI and NXT databases by remote connection or backup file; see migrate Xtream UI to Xtream-Masters. Fighting high load on an existing panel? Read the Xtream UI high CPU fix.
