⚠️ Compatibility Warning
Ubuntu 22.04 is significantly newer than the software code of Xtream UI. This installation requires installing legacy Python 2 packages that have been removed from the official Ubuntu 22.04 repositories. Proceed with caution.
1Step 1: Enable Universe Repository
Before we can install anything, we need to make sure your Ubuntu 22.04 server can access community-maintained free software. Login as root and run:
2Step 2: Install Python 2
Ubuntu 22.04 does not come with Python 2, but Xtream UI requires it. We must install it manually along with the python-is-python2 package to make the command python point to Python 2 instead of Python 3.
3Step 3: Install Essential Libraries
Xtream UI relies on specific libraries like libcurl3 and libxslt1. Run this command to install them:
Note: If you get an error about "Package 'libcurl3' has no installation candidate", you may need to add the Ubuntu 18.04 (Bionic) repositories to your sources list temporarily, install it, and then remove them.
4Step 4: Run the Mirror Installer
With the environment prepared, you can now run the installation script. This script connects to a mirror since the official servers are down.
Installation Tips:
- Select MAIN for the first server.
- Select Yes to install MySQL/MariaDB.
- Important: Ubuntu 22.04 uses MariaDB by default. Make sure to note down your root password.
5Step 5: Force Update to R22F
The base installation is often buggy on newer OS versions. You must update to the latest patched version (R22F) immediately.
First, download and apply the update:
Then, fix permissions and restart services:
6Step 6: The GeoLite2 Fix
Without this fix, your panel won't be able to detect countries, and streams might fail to start.
