Categories
linux random

Fix Kodi Crashes on Ubuntu 22.04

After upgrading my mediacenter to the latest Ubuntu LTS version, Kodi on Ubuntu 22.04 crashed continuously. Turned out these frequent Kodi crashes resulted from the default Python 3.10.4 on Ubuntu 22.04 (see this Kodi bug). In the end of August 2022, Python 3.10.5 was not available for Ubuntu 22.04, which would have fixed the issue.

The most elegant fix for this issue, does not require binary patching of Kodi nor changing the default Python release of Ubuntu. The fix that worked for me:

sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo sed -i 's/jammy/focal/g' /etc/apt/sources.list.d/deadsnakes-ubuntu-ppa-jammy.list
sudo apt-get update && sudo apt-get upgrade

Explanation of the code block above: deadsnakes-ubuntu-ppa provides up-to-date Python versions for Ubuntu. The focal Repo of deadsnakes PPA contains the latest Ubuntu 3.10 releases.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.