Installing MusicBot on Ubuntu is simple, and we have steps for several LTS versions.
While this guide leaves out non-LTS versions of Ubuntu, the steps here are a good place to start for interim versions.
If you’re unsure which version you have, you can find out by using the following command: lsb_release -s -d
It should output something similar to the following: Ubuntu 20.04.2 LTS
We can ignore the Patch version. As long as your Major and Minor versions match, the steps here should work.
Install steps.
On Ubuntu 18.04 and lower the system packaged Python is too old for MusicBot.
So we install packages for MusicBot as well as those needed to compile Python from source.
When install is finished you need to Configure MusicBot.
After configuring you can use the command ./run.sh to start the bot.
Ubuntu 20.04 & 22.04
Install steps.
For Ubuntu 20.04 and 22.04, the Python 3 packages should be 3.8 or newer which makes install pretty simple.
Once finished, you need to Configure MusicBot.
After configuring you can use the command ./run.sh to start the bot.
Ubuntu 24.04 and higher
Install steps.
On Ubuntu 24.04 and up, Python is system-managed. This means we need to install a Venv.
So an additional package and some steps to set up Venv are required.
After these steps, MusicBot will be installed within ./MusicBotVenv/MusicBot/ and will need to be configured. Follow the Configuration guide before starting the MusicBot.
Note: As long as the MusicBot cloned directory is inside the Venv directory, the run.sh and update.sh scripts should find and load the Venv automatically.
If you need to manually update python libraries for MusicBot, you will need to activate the venv before you can do so.