How to Install Kodi on Ubuntu 22.04 and 20.04
If you’re tired of clunky media players that keep crashing after a driver tweak, this guide will get Kodi up and running in minutes. I’ll walk you through the cleanest way to install the latest stable version on both Ubuntu 22.04 LTS and 20.04 LTS.
1. Grab the Official Kodi PPA
sudo add-apt-repository ppa:team-xbmc/ppa
Why this matters? The official PPA keeps your copy of Kodi ahead of what’s in Ubuntu’s default repos, so you avoid stale binaries that miss critical bug fixes. I’ve seen people get stuck on 17.x versions that refuse to launch after a kernel upgrade.
2. Add the Repository Key
sudo apt-key adv --keyserver keyserver.ubuntu.com \
--recv-keys 9B3C4A29E1F5D4FA
Skipping this step will give you an “apt update” error about an unsigned repository. Trust me, your terminal is not going to forgive that.
3. Update the Package Cache
sudo apt update
Running this after adding a new repo ensures the package list reflects Kodi’s latest build. It also pulls in any new dependencies that might have been added since your last upgrade.
4. Install Kodi (and Optional Extras)
sudo apt install kodi
If you want the full media experience, add:
sudo apt install kodi-qt5
The Qt5 interface gives better graphics and smoother playback on modern laptops. Without it, Kodi will default to a greyscale UI that looks like an old-school DOS app.
5. Launch Kodi and Verify Everything Works
kodi
On first run, Kodi creates its config directory under ~/.config/kodi. If you see the familiar home screen, congratulations—installation succeeded.
Common Pitfalls & Quick Fixes
- “Kodi crashes after a driver update.”
I’ve seen this happen when users install the newest NVIDIA drivers. The fix is simple: reinstall the xserver-xorg-video-nvidia package or downgrade to the last stable driver that worked.
- Audio stutters on HDMI output.
Running sudo apt install libpulse0 and then restarting Kodi usually resolves this. If you’re still stuck, check /etc/pulse/client.conf for any rogue settings.
Optional: Keep Kodi Fresh with Snap
If you prefer the containerized route:
sudo snap install kodi --classic
Snaps auto-update, so you won’t have to touch this again unless you want a rollback. I’ve used it on an older 18.04 system and found it less prone to dependency clashes.
That’s all there is to it. Install the PPA, update, install, and enjoy a slick media hub that stays current without fussing over manual patches. Happy watching—and remember to keep those drivers up‑to‑date!