<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://kodi.wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Kelmo</id>
	<title>Official Kodi Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://kodi.wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Kelmo"/>
	<link rel="alternate" type="text/html" href="https://kodi.wiki/view/Special:Contributions/Kelmo"/>
	<updated>2026-10-20T03:18:54Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://kodi.wiki/index.php?title=HOW-TO:Install_Kodi_for_Linux&amp;diff=264484</id>
		<title>HOW-TO:Install Kodi for Linux</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=HOW-TO:Install_Kodi_for_Linux&amp;diff=264484"/>
		<updated>2026-09-18T12:39:42Z</updated>

		<summary type="html">&lt;p&gt;Kelmo: On second thought; leave advanced install/masking for those who know it already&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Mininav|[[Linux]] {{L2| [[Installing]] }} }}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing Kodi on Ubuntu-based distributions with Team Kodi PPA ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please note that currently the Team Kodi PPA is not maintained due to the previous sole maintainer stepping away from the responsibility. &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
For now the only options are building from source, using Flatpak or a distro such as Debian which includes Kodi in their distribution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Warning|Ubuntu releases 16.04 LTS (&amp;quot;Xenial&amp;quot;) or later, respectively, include their own Kodi builds in their official package repositories, customized to satisfy their interpretations of what is acceptable under their open-source mandates. If you have installed your distribution&#039;s Kodi packages, please purge them using the command &amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot; inline&amp;gt;sudo apt purge kodi\*&amp;lt;/syntaxhighlight&amp;gt; before trying to install team-xbmc PPA packages.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Warning|Releases from Team Kodi PPA are NOT compatible with Debian GNU / Linux and distributions built on top of Debian&#039;s binary package repositories! Please refer to &#039;&#039;&#039;Debian&#039;&#039;&#039; section of this page for installation instructions on such distributions!}}&lt;br /&gt;
&lt;br /&gt;
See [[SFTP]] or [http://help.ubuntu.com/community/UsingTheTerminal Click here to find out how to use the terminal.]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Adding Team Kodi PPA repository ===&lt;br /&gt;
&lt;br /&gt;
Use the command line terminal in Ubuntu, and enter the following commands. Follow the prompts as you would any other software installation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt install software-properties-common&lt;br /&gt;
sudo add-apt-repository -y ppa:team-xbmc/ppa&lt;br /&gt;
sudo apt install kodi &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{#lst:Official_Ubuntu_PPA|repos}}&lt;br /&gt;
&lt;br /&gt;
Note that this PPA only provides builds for Ubuntu i386 and Ubuntu amd64 but &#039;&#039;not for Ubuntu armhf&#039;&#039;, which can run on a Raspberry Pi.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Installing binary add-ons (PVR, audio decoders, audio encoders, screensavers, visualizations, audio DSP) ===&lt;br /&gt;
{{See|Ubuntu binary add-ons}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Installing a development build ===&lt;br /&gt;
{{See also|Development builds}}&lt;br /&gt;
To install a beta/unstable version of {{Kodi}} you must first add the unstable repository, then install XBMC. Use &amp;lt;code&amp;gt;ppa:team-xbmc/xbmc-nightly&amp;lt;/code&amp;gt; for nightly builds and &amp;lt;code&amp;gt;ppa:team-xbmc/unstable&amp;lt;/code&amp;gt; for [[Development_builds|beta]] builds.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt install software-properties-common&lt;br /&gt;
sudo add-apt-repository -y ppa:team-xbmc/xbmc-nightly&lt;br /&gt;
sudo apt install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that if you have any addons (such as PVR clients), these must be updated as well (they will not be updated automatically):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt install kodi-pvr-mythtv&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Upgrading ===&lt;br /&gt;
&amp;lt;section begin=&amp;quot;Ubuntu upgrade&amp;quot; /&amp;gt;&lt;br /&gt;
To update Kodi when a new version is released, just do a general system/package or use the following commands in the terminal (or via [[SFTP]]):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt upgrade --with-new-pkgs&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;section end=&amp;quot;Ubuntu upgrade&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Downgrading to a stable version from a development version ===&lt;br /&gt;
If you install a nightly build or an unstable release and want to return to a stable release, follow these instructions:&lt;br /&gt;
&lt;br /&gt;
Remove the unstable or nightly PPA:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
apt-cache policy | grep -Eo &#039;team-xbmc/(unstable|nightly)&#039; | sudo xargs -r add-apt-repository -ryP&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then restore the stable version with the following commands:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo add-apt-repository ppa:team-xbmc/ppa&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get remove kodi kodi-x11&lt;br /&gt;
sudo apt-get install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Downgrading between newer and older stable versions ===&lt;br /&gt;
If you want to return to the next most recent stable release, follow these instructions:&lt;br /&gt;
&lt;br /&gt;
Remove the current stable packages and PPA:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt purge kodi\*&lt;br /&gt;
sudo add-apt-repository -r ppa:team-xbmc/ppa&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then install the &amp;quot;oldstable&amp;quot; version with the following commands:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo add-apt-repository -y ppa:team-xbmc/kodi-old&lt;br /&gt;
sudo apt install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Reverting to an earlier nightly ===&lt;br /&gt;
ALthough launchpad doesn&#039;t list older nightlies in their PPA, they are usually still available for download directly from the website. Visit the [https://launchpad.net/~team-xbmc/+archive/ubuntu/xbmc-nightly/+packages?field.name_filter=&amp;amp;field.status_filter=superseded&amp;amp;field.series_filter= xbmc-nightly repository index], where you will then have to download the appropriate .deb files and manually install them using &amp;lt;code&amp;gt;sudo dpkg -i [path to downloaded file]&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Uninstalling ===&lt;br /&gt;
If you need to uninstall Kodi and purge its global configuration files (for instance, in the attempt to troubleshoot a persistent crash or other errors), do so by using the first of the following commands. If that fails to solve the issue, you will likely need to remove your user settings folder with all of your settings and library data to return to a state equivalent to what existed before Kodi was first installed on the system. This will not delete any videos or music, but just the settings and library data itself, but it is still recommended to keep a backup of them in case it&#039;s discovered that they weren&#039;t at issue and you are able to effect another solution. An example of how to accomplish a backup and then deletion of your user settings is provided on the last two lines, the highlighted one being responsible for making the backup which can thereafter be found in your home folder with the filename kodi-backup_&#039;&#039;timestamp&#039;&#039;.tar.xz.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot; highlight=&amp;quot;2-3&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt purge kodi\*&lt;br /&gt;
tar cf - &amp;quot;${HOME}/.kodi/&amp;quot; | xz -z9e - &amp;gt;&amp;quot;${HOME}/kodi-backup_$(date +%m%d%y-%H%M).tar.xz&amp;quot;&lt;br /&gt;
rm -Ri &amp;quot;${HOME}/.{kodi,xbmc}/&amp;quot; &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Flatpak ==&lt;br /&gt;
&lt;br /&gt;
If you do not know whether your distro supports Flatpak, see https://flatpak.org/setup/ for install instructions.&lt;br /&gt;
&lt;br /&gt;
Then go to https://flathub.org/apps/tv.kodi.Kodi and hit the install button, or run the commands at the bottom of that page in a terminal.&lt;br /&gt;
&lt;br /&gt;
Updates arrive through the normal Flatpak mechanism:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Data location ===&lt;br /&gt;
&lt;br /&gt;
The Flatpak keeps all Kodi data, including your profile, add-ons and databases, under&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;~/.var/app/tv.kodi.Kodi&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Back up that directory before switching channels or trying out something new. The stable and beta builds share it.&lt;br /&gt;
&lt;br /&gt;
=== Beta channel ===&lt;br /&gt;
&lt;br /&gt;
Kodi betas are published on the Flathub beta remote. Add it once:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak remote-add --if-not-exists flathub-beta https://dl.flathub.org/beta-repo/flathub-beta.flatpakrepo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then install the beta:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak install flathub-beta tv.kodi.Kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The beta installs as branch &amp;lt;code&amp;gt;beta&amp;lt;/code&amp;gt; alongside the stable version. A second entry labeled &amp;lt;code&amp;gt;Kodi (Beta)&amp;lt;/code&amp;gt; appears on your system. Both share the data location above, so make a backup first if you value your data. &amp;lt;code&amp;gt;flatpak update&amp;lt;/code&amp;gt; keeps both channels current.&lt;br /&gt;
&lt;br /&gt;
To go back to stable only:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak uninstall tv.kodi.Kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Blu-ray menus (BD-J) ===&lt;br /&gt;
&lt;br /&gt;
Most commercial Blu-ray discs use Java (BD-J) menus. Support is an optional extension so that the main app stays small. It is currently available on the beta channel:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak install flathub-beta tv.kodi.Kodi.bdj&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Kodi does not open disc menus by default. Enable them under &#039;&#039;&#039;Settings → Player → Discs → Blu-ray playback mode → Show Blu-ray menu&#039;&#039;&#039;. The first Java menu can take ten to twenty seconds to appear while the runtime starts.&lt;br /&gt;
&lt;br /&gt;
=== Encrypted Blu-ray discs (AACS) ===&lt;br /&gt;
&lt;br /&gt;
Kodi ships libaacs but no keys. To install your key database, save a copy to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;~/.var/app/tv.kodi.Kodi/config/aacs/KEYDB.cfg&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The filename must be uppercase. Discs that were already decrypted when backed up don&#039;t need this.&lt;br /&gt;
&lt;br /&gt;
=== Log file ===&lt;br /&gt;
&lt;br /&gt;
For bug reports, the log is at &amp;lt;code&amp;gt;~/.var/app/tv.kodi.Kodi/data/kodi.log&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Reporting issues ===&lt;br /&gt;
&lt;br /&gt;
Problems specific to the Flatpak, such as missing permissions or add-ons that fail to load, go to https://github.com/flathub/tv.kodi.Kodi/issues. Include the log file above. General Kodi bugs belong on the [https://forum.kodi.tv/ Kodi forum] as usual.&lt;br /&gt;
&lt;br /&gt;
== Embedded/Appliance type install==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LibreELEC ===&lt;br /&gt;
{{main|LibreELEC}}&lt;br /&gt;
{{#lst:LibreELEC|intro}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Third Party Repositories ==&lt;br /&gt;
&amp;lt;!-- Please only list repos that use an internal ffmpeg library --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The instructions in this section are for unofficial Linux binaries that are un/semi supported by Team Kodi. Most of those binaries use system ffmpeg or even worse totally untested libav, which is not recommended for {{kodi}} as we support ffmpeg only.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Debian ===&lt;br /&gt;
Debian GNU/Linux ships its own &#039;&#039;&#039;Kodi from Debian&#039;&#039;&#039; flavor with following changes:&lt;br /&gt;
&lt;br /&gt;
* Only system libraries are used (no embedded third-party libraries except of libdvdread and libdvdnav)&lt;br /&gt;
* Old web interface (Chorus) is shipped to ensure Debian Free Software Guides (DFSG) compatibility&lt;br /&gt;
&lt;br /&gt;
as well as a subset of Kodi binary addons packaged in [https://qa.debian.org/developer.php?email=vasek.gello@gmail.com main repository of Debian].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Warning|&#039;&#039;&#039;Team Kodi offers no official support to &amp;quot;Kodi from Debian&amp;quot;!&#039;&#039;&#039; Please refer to links below for support!}}&lt;br /&gt;
&lt;br /&gt;
The support for Kodi from Debian is provided via the following channels:&lt;br /&gt;
# [https://forum.kodi.tv/showthread.php?tid=363611 Kodi from Debian - Support Thread] on Kodi forums&lt;br /&gt;
# [https://github.com/xbmc/xbmc/issues Github issues]&lt;br /&gt;
# [https://bugs.debian.org Debian Bug Tracker]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Checking installed and available Kodi packages ====&lt;br /&gt;
&lt;br /&gt;
You can check what versions of Kodi and its binary add-ons are installed with the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
dpkg -l | grep kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To check what versions of Kodi are available, use this command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
apt-cache policy kodi*&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Installing Kodi on Debian Unstable or Testing ====&lt;br /&gt;
&lt;br /&gt;
Installation of Kodi from Debian on Debian unstable (&amp;quot;sid&amp;quot;) and testing is straightforward:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To install Kodi binary add-ons (like &#039;&#039;&#039;PVR IPTV Simple&#039;&#039;&#039;, for example):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
sudo apt install kodi-pvr-iptvsimple&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE&#039;&#039;&#039;: Make sure user running Kodi belongs to the following groups&lt;br /&gt;
(for example, for user &#039;&#039;&#039;kodi&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
$ groups kodi&lt;br /&gt;
kodi: cdrom,audio,render,video,plugdev,users,dialout,dip,input&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This needs to be done to ensure Video Acceleration API (VA-API) is properly initialized during Kodi start-up and videos playing get acceleration using VAAPI and not VDPAU on Intel or AMD cards. To add user to groups, use the command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
usermod -a -G cdrom,audio,render,video,plugdev,users,dialout,dip,input kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Installing Kodi on Debian 10 &amp;quot;buster&amp;quot; ====&lt;br /&gt;
&lt;br /&gt;
By default, Debian buster users get Kodi 17.6 &amp;quot;Krypton&amp;quot;. However, it is possible to get Kodi 19.x &amp;quot;Matrix&amp;quot; from buster-backports.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To get Kodi 17.6 and the corresponding add-ons, use the method described in &#039;&#039;&#039;Debian Unstable or Testing&#039;&#039;&#039; section above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To get Kodi 19.x and the corresponding add-ons from Debian Backports:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
# Add Debian Backports repository for Debian 10 &amp;quot;buster&amp;quot;&lt;br /&gt;
if ! apt-cache policy 2&amp;gt;/dev/null | grep -q &amp;quot;http://.*buster-backports&amp;quot;; then&lt;br /&gt;
  echo &amp;quot;deb http://deb.debian.org/debian/ buster-backports main contrib&amp;quot; | sudo tee /etc/apt/sources.list.d/buster-backports.list&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# Update APT lists&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
# Install Kodi from backports:&lt;br /&gt;
sudo apt-get install {kodi,kodi-bin,kodi-data,kodi-repository-kodi,libspdlog1}/buster-backports&lt;br /&gt;
&lt;br /&gt;
# (OPTIONAL) Install Kodi binary add-ons (for example, &#039;PVR IPTV Simple&#039;):&lt;br /&gt;
sudo apt-get install kodi-pvr-iptvsimple/buster-backports&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Installing Kodi on Debian 9 &amp;quot;stretch&amp;quot; ====&lt;br /&gt;
&lt;br /&gt;
By default, Debian stretch users get Kodi 17.1 &amp;quot;Krypton&amp;quot;. No higher version is packaged in backports.&lt;br /&gt;
&lt;br /&gt;
To get Kodi 17.1 and the corresponding add-ons, use the method described in &#039;&#039;&#039;Debian Unstable or Testing&#039;&#039;&#039; section above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Raspberry Pi OS ===&lt;br /&gt;
{{see also|HOW-TO:Install Kodi on Raspberry Pi}}&lt;br /&gt;
Installing on Raspberry Pi OS is done with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
sudo apt-get install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Upgrading on Raspberry Pi OS is done with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get upgrade&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installation from source ==&lt;br /&gt;
If distribution packages are not available, or you need a newer version, or specific features enabled, then you will most likely need to compile from source. See our &#039;&#039;&#039;[[Compiling Kodi]]&#039;&#039;&#039; guide.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Updated|20}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Installation|Linux]]&lt;/div&gt;</summary>
		<author><name>Kelmo</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=HOW-TO:Install_Kodi_for_Linux&amp;diff=264481</id>
		<title>HOW-TO:Install Kodi for Linux</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=HOW-TO:Install_Kodi_for_Linux&amp;diff=264481"/>
		<updated>2026-09-18T12:24:09Z</updated>

		<summary type="html">&lt;p&gt;Kelmo: Remove //beta suffix when specifying flathub-beta anyway&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Mininav|[[Linux]] {{L2| [[Installing]] }} }}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing Kodi on Ubuntu-based distributions with Team Kodi PPA ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please note that currently the Team Kodi PPA is not maintained due to the previous sole maintainer stepping away from the responsibility. &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
For now the only options are building from source, using Flatpak or a distro such as Debian which includes Kodi in their distribution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Warning|Ubuntu releases 16.04 LTS (&amp;quot;Xenial&amp;quot;) or later, respectively, include their own Kodi builds in their official package repositories, customized to satisfy their interpretations of what is acceptable under their open-source mandates. If you have installed your distribution&#039;s Kodi packages, please purge them using the command &amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot; inline&amp;gt;sudo apt purge kodi\*&amp;lt;/syntaxhighlight&amp;gt; before trying to install team-xbmc PPA packages.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Warning|Releases from Team Kodi PPA are NOT compatible with Debian GNU / Linux and distributions built on top of Debian&#039;s binary package repositories! Please refer to &#039;&#039;&#039;Debian&#039;&#039;&#039; section of this page for installation instructions on such distributions!}}&lt;br /&gt;
&lt;br /&gt;
See [[SFTP]] or [http://help.ubuntu.com/community/UsingTheTerminal Click here to find out how to use the terminal.]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Adding Team Kodi PPA repository ===&lt;br /&gt;
&lt;br /&gt;
Use the command line terminal in Ubuntu, and enter the following commands. Follow the prompts as you would any other software installation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt install software-properties-common&lt;br /&gt;
sudo add-apt-repository -y ppa:team-xbmc/ppa&lt;br /&gt;
sudo apt install kodi &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{#lst:Official_Ubuntu_PPA|repos}}&lt;br /&gt;
&lt;br /&gt;
Note that this PPA only provides builds for Ubuntu i386 and Ubuntu amd64 but &#039;&#039;not for Ubuntu armhf&#039;&#039;, which can run on a Raspberry Pi.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Installing binary add-ons (PVR, audio decoders, audio encoders, screensavers, visualizations, audio DSP) ===&lt;br /&gt;
{{See|Ubuntu binary add-ons}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Installing a development build ===&lt;br /&gt;
{{See also|Development builds}}&lt;br /&gt;
To install a beta/unstable version of {{Kodi}} you must first add the unstable repository, then install XBMC. Use &amp;lt;code&amp;gt;ppa:team-xbmc/xbmc-nightly&amp;lt;/code&amp;gt; for nightly builds and &amp;lt;code&amp;gt;ppa:team-xbmc/unstable&amp;lt;/code&amp;gt; for [[Development_builds|beta]] builds.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt install software-properties-common&lt;br /&gt;
sudo add-apt-repository -y ppa:team-xbmc/xbmc-nightly&lt;br /&gt;
sudo apt install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that if you have any addons (such as PVR clients), these must be updated as well (they will not be updated automatically):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt install kodi-pvr-mythtv&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Upgrading ===&lt;br /&gt;
&amp;lt;section begin=&amp;quot;Ubuntu upgrade&amp;quot; /&amp;gt;&lt;br /&gt;
To update Kodi when a new version is released, just do a general system/package or use the following commands in the terminal (or via [[SFTP]]):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt upgrade --with-new-pkgs&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;section end=&amp;quot;Ubuntu upgrade&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Downgrading to a stable version from a development version ===&lt;br /&gt;
If you install a nightly build or an unstable release and want to return to a stable release, follow these instructions:&lt;br /&gt;
&lt;br /&gt;
Remove the unstable or nightly PPA:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
apt-cache policy | grep -Eo &#039;team-xbmc/(unstable|nightly)&#039; | sudo xargs -r add-apt-repository -ryP&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then restore the stable version with the following commands:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo add-apt-repository ppa:team-xbmc/ppa&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get remove kodi kodi-x11&lt;br /&gt;
sudo apt-get install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Downgrading between newer and older stable versions ===&lt;br /&gt;
If you want to return to the next most recent stable release, follow these instructions:&lt;br /&gt;
&lt;br /&gt;
Remove the current stable packages and PPA:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt purge kodi\*&lt;br /&gt;
sudo add-apt-repository -r ppa:team-xbmc/ppa&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then install the &amp;quot;oldstable&amp;quot; version with the following commands:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo add-apt-repository -y ppa:team-xbmc/kodi-old&lt;br /&gt;
sudo apt install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Reverting to an earlier nightly ===&lt;br /&gt;
ALthough launchpad doesn&#039;t list older nightlies in their PPA, they are usually still available for download directly from the website. Visit the [https://launchpad.net/~team-xbmc/+archive/ubuntu/xbmc-nightly/+packages?field.name_filter=&amp;amp;field.status_filter=superseded&amp;amp;field.series_filter= xbmc-nightly repository index], where you will then have to download the appropriate .deb files and manually install them using &amp;lt;code&amp;gt;sudo dpkg -i [path to downloaded file]&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Uninstalling ===&lt;br /&gt;
If you need to uninstall Kodi and purge its global configuration files (for instance, in the attempt to troubleshoot a persistent crash or other errors), do so by using the first of the following commands. If that fails to solve the issue, you will likely need to remove your user settings folder with all of your settings and library data to return to a state equivalent to what existed before Kodi was first installed on the system. This will not delete any videos or music, but just the settings and library data itself, but it is still recommended to keep a backup of them in case it&#039;s discovered that they weren&#039;t at issue and you are able to effect another solution. An example of how to accomplish a backup and then deletion of your user settings is provided on the last two lines, the highlighted one being responsible for making the backup which can thereafter be found in your home folder with the filename kodi-backup_&#039;&#039;timestamp&#039;&#039;.tar.xz.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot; highlight=&amp;quot;2-3&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt purge kodi\*&lt;br /&gt;
tar cf - &amp;quot;${HOME}/.kodi/&amp;quot; | xz -z9e - &amp;gt;&amp;quot;${HOME}/kodi-backup_$(date +%m%d%y-%H%M).tar.xz&amp;quot;&lt;br /&gt;
rm -Ri &amp;quot;${HOME}/.{kodi,xbmc}/&amp;quot; &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Flatpak ==&lt;br /&gt;
&lt;br /&gt;
If you do not know whether your distro supports Flatpak, see https://flatpak.org/setup/ for install instructions.&lt;br /&gt;
&lt;br /&gt;
Then go to https://flathub.org/apps/tv.kodi.Kodi and hit the install button, or run the commands at the bottom of that page in a terminal.&lt;br /&gt;
&lt;br /&gt;
Updates arrive through the normal Flatpak mechanism:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Data location ===&lt;br /&gt;
&lt;br /&gt;
The Flatpak keeps all Kodi data, including your profile, add-ons and databases, under&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;~/.var/app/tv.kodi.Kodi&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Back up that directory before switching channels or trying out something new. The stable and beta builds share it.&lt;br /&gt;
&lt;br /&gt;
=== Beta channel ===&lt;br /&gt;
&lt;br /&gt;
Kodi betas are published on the Flathub beta remote. Add it once:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak remote-add --if-not-exists flathub-beta https://dl.flathub.org/beta-repo/flathub-beta.flatpakrepo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then install the beta:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak install flathub-beta tv.kodi.Kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The beta installs as branch &amp;lt;code&amp;gt;beta&amp;lt;/code&amp;gt; alongside the stable version. A second entry labeled &amp;lt;code&amp;gt;Kodi (Beta)&amp;lt;/code&amp;gt; appears on your system. Both share the data location above, so make a backup first if you value your data. &amp;lt;code&amp;gt;flatpak update&amp;lt;/code&amp;gt; keeps both channels current.&lt;br /&gt;
&lt;br /&gt;
To go back to stable only:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak uninstall tv.kodi.Kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== (Beta) Advanced install ====&lt;br /&gt;
&lt;br /&gt;
Kodi&#039;s binary add-ons (PVR clients, game cores, screensavers, visualizations and so on) ship as Flatpak extensions and are downloaded together with the app by default. You can control which of them are installed by masking the add-on categories you do not want before installing. Masked extensions are never installed or updated automatically.&lt;br /&gt;
&lt;br /&gt;
This example keeps only the inputstream and vfs add-ons, which are needed for common streaming and network sources:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
for c in audiodecoder audioencoder game imagedecoder peripheral pvr screensaver visualization; do&lt;br /&gt;
  flatpak mask &amp;quot;tv.kodi.Kodi.Addon.$c.*&amp;quot;&lt;br /&gt;
done&lt;br /&gt;
flatpak install flathub-beta tv.kodi.Kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add &amp;lt;code&amp;gt;--user&amp;lt;/code&amp;gt; to both commands if you use a per-user installation. To mask a single add-on instead of a whole category, use its full name, for example &amp;lt;code&amp;gt;tv.kodi.Kodi.Addon.pvr.iptvsimple&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Masks also apply to an existing installation. Add-ons already installed stay until removed with &amp;lt;code&amp;gt;flatpak uninstall&amp;lt;/code&amp;gt;, and will not come back on update. To lift a mask, run &amp;lt;code&amp;gt;flatpak mask --remove&amp;lt;/code&amp;gt; with the same pattern; the add-ons it covered are downloaded again on the next &amp;lt;code&amp;gt;flatpak update&amp;lt;/code&amp;gt;. Run &amp;lt;code&amp;gt;flatpak mask&amp;lt;/code&amp;gt; with no arguments to list current masks.&lt;br /&gt;
&lt;br /&gt;
=== Blu-ray menus (BD-J) ===&lt;br /&gt;
&lt;br /&gt;
Most commercial Blu-ray discs use Java (BD-J) menus. Support is an optional extension so that the main app stays small. It is currently available on the beta channel:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak install flathub-beta tv.kodi.Kodi.bdj&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Kodi does not open disc menus by default. Enable them under &#039;&#039;&#039;Settings → Player → Discs → Blu-ray playback mode → Show Blu-ray menu&#039;&#039;&#039;. The first Java menu can take ten to twenty seconds to appear while the runtime starts.&lt;br /&gt;
&lt;br /&gt;
=== Encrypted Blu-ray discs (AACS) ===&lt;br /&gt;
&lt;br /&gt;
Kodi ships libaacs but no keys. To install your key database, save a copy to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;~/.var/app/tv.kodi.Kodi/config/aacs/KEYDB.cfg&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The filename must be uppercase. Discs that were already decrypted when backed up don&#039;t need this.&lt;br /&gt;
&lt;br /&gt;
=== Log file ===&lt;br /&gt;
&lt;br /&gt;
For bug reports, the log is at &amp;lt;code&amp;gt;~/.var/app/tv.kodi.Kodi/data/kodi.log&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Reporting issues ===&lt;br /&gt;
&lt;br /&gt;
Problems specific to the Flatpak, such as missing permissions or add-ons that fail to load, go to https://github.com/flathub/tv.kodi.Kodi/issues. Include the log file above. General Kodi bugs belong on the [https://forum.kodi.tv/ Kodi forum] as usual.&lt;br /&gt;
&lt;br /&gt;
== Embedded/Appliance type install==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LibreELEC ===&lt;br /&gt;
{{main|LibreELEC}}&lt;br /&gt;
{{#lst:LibreELEC|intro}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Third Party Repositories ==&lt;br /&gt;
&amp;lt;!-- Please only list repos that use an internal ffmpeg library --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The instructions in this section are for unofficial Linux binaries that are un/semi supported by Team Kodi. Most of those binaries use system ffmpeg or even worse totally untested libav, which is not recommended for {{kodi}} as we support ffmpeg only.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Debian ===&lt;br /&gt;
Debian GNU/Linux ships its own &#039;&#039;&#039;Kodi from Debian&#039;&#039;&#039; flavor with following changes:&lt;br /&gt;
&lt;br /&gt;
* Only system libraries are used (no embedded third-party libraries except of libdvdread and libdvdnav)&lt;br /&gt;
* Old web interface (Chorus) is shipped to ensure Debian Free Software Guides (DFSG) compatibility&lt;br /&gt;
&lt;br /&gt;
as well as a subset of Kodi binary addons packaged in [https://qa.debian.org/developer.php?email=vasek.gello@gmail.com main repository of Debian].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Warning|&#039;&#039;&#039;Team Kodi offers no official support to &amp;quot;Kodi from Debian&amp;quot;!&#039;&#039;&#039; Please refer to links below for support!}}&lt;br /&gt;
&lt;br /&gt;
The support for Kodi from Debian is provided via the following channels:&lt;br /&gt;
# [https://forum.kodi.tv/showthread.php?tid=363611 Kodi from Debian - Support Thread] on Kodi forums&lt;br /&gt;
# [https://github.com/xbmc/xbmc/issues Github issues]&lt;br /&gt;
# [https://bugs.debian.org Debian Bug Tracker]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Checking installed and available Kodi packages ====&lt;br /&gt;
&lt;br /&gt;
You can check what versions of Kodi and its binary add-ons are installed with the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
dpkg -l | grep kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To check what versions of Kodi are available, use this command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
apt-cache policy kodi*&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Installing Kodi on Debian Unstable or Testing ====&lt;br /&gt;
&lt;br /&gt;
Installation of Kodi from Debian on Debian unstable (&amp;quot;sid&amp;quot;) and testing is straightforward:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To install Kodi binary add-ons (like &#039;&#039;&#039;PVR IPTV Simple&#039;&#039;&#039;, for example):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
sudo apt install kodi-pvr-iptvsimple&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE&#039;&#039;&#039;: Make sure user running Kodi belongs to the following groups&lt;br /&gt;
(for example, for user &#039;&#039;&#039;kodi&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
$ groups kodi&lt;br /&gt;
kodi: cdrom,audio,render,video,plugdev,users,dialout,dip,input&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This needs to be done to ensure Video Acceleration API (VA-API) is properly initialized during Kodi start-up and videos playing get acceleration using VAAPI and not VDPAU on Intel or AMD cards. To add user to groups, use the command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
usermod -a -G cdrom,audio,render,video,plugdev,users,dialout,dip,input kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Installing Kodi on Debian 10 &amp;quot;buster&amp;quot; ====&lt;br /&gt;
&lt;br /&gt;
By default, Debian buster users get Kodi 17.6 &amp;quot;Krypton&amp;quot;. However, it is possible to get Kodi 19.x &amp;quot;Matrix&amp;quot; from buster-backports.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To get Kodi 17.6 and the corresponding add-ons, use the method described in &#039;&#039;&#039;Debian Unstable or Testing&#039;&#039;&#039; section above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To get Kodi 19.x and the corresponding add-ons from Debian Backports:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
# Add Debian Backports repository for Debian 10 &amp;quot;buster&amp;quot;&lt;br /&gt;
if ! apt-cache policy 2&amp;gt;/dev/null | grep -q &amp;quot;http://.*buster-backports&amp;quot;; then&lt;br /&gt;
  echo &amp;quot;deb http://deb.debian.org/debian/ buster-backports main contrib&amp;quot; | sudo tee /etc/apt/sources.list.d/buster-backports.list&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# Update APT lists&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
# Install Kodi from backports:&lt;br /&gt;
sudo apt-get install {kodi,kodi-bin,kodi-data,kodi-repository-kodi,libspdlog1}/buster-backports&lt;br /&gt;
&lt;br /&gt;
# (OPTIONAL) Install Kodi binary add-ons (for example, &#039;PVR IPTV Simple&#039;):&lt;br /&gt;
sudo apt-get install kodi-pvr-iptvsimple/buster-backports&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Installing Kodi on Debian 9 &amp;quot;stretch&amp;quot; ====&lt;br /&gt;
&lt;br /&gt;
By default, Debian stretch users get Kodi 17.1 &amp;quot;Krypton&amp;quot;. No higher version is packaged in backports.&lt;br /&gt;
&lt;br /&gt;
To get Kodi 17.1 and the corresponding add-ons, use the method described in &#039;&#039;&#039;Debian Unstable or Testing&#039;&#039;&#039; section above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Raspberry Pi OS ===&lt;br /&gt;
{{see also|HOW-TO:Install Kodi on Raspberry Pi}}&lt;br /&gt;
Installing on Raspberry Pi OS is done with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
sudo apt-get install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Upgrading on Raspberry Pi OS is done with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get upgrade&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installation from source ==&lt;br /&gt;
If distribution packages are not available, or you need a newer version, or specific features enabled, then you will most likely need to compile from source. See our &#039;&#039;&#039;[[Compiling Kodi]]&#039;&#039;&#039; guide.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Updated|20}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Installation|Linux]]&lt;/div&gt;</summary>
		<author><name>Kelmo</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=HOW-TO:Install_Kodi_for_Linux&amp;diff=264478</id>
		<title>HOW-TO:Install Kodi for Linux</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=HOW-TO:Install_Kodi_for_Linux&amp;diff=264478"/>
		<updated>2026-09-18T12:20:33Z</updated>

		<summary type="html">&lt;p&gt;Kelmo: add -beta&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Mininav|[[Linux]] {{L2| [[Installing]] }} }}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing Kodi on Ubuntu-based distributions with Team Kodi PPA ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please note that currently the Team Kodi PPA is not maintained due to the previous sole maintainer stepping away from the responsibility. &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
For now the only options are building from source, using Flatpak or a distro such as Debian which includes Kodi in their distribution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Warning|Ubuntu releases 16.04 LTS (&amp;quot;Xenial&amp;quot;) or later, respectively, include their own Kodi builds in their official package repositories, customized to satisfy their interpretations of what is acceptable under their open-source mandates. If you have installed your distribution&#039;s Kodi packages, please purge them using the command &amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot; inline&amp;gt;sudo apt purge kodi\*&amp;lt;/syntaxhighlight&amp;gt; before trying to install team-xbmc PPA packages.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Warning|Releases from Team Kodi PPA are NOT compatible with Debian GNU / Linux and distributions built on top of Debian&#039;s binary package repositories! Please refer to &#039;&#039;&#039;Debian&#039;&#039;&#039; section of this page for installation instructions on such distributions!}}&lt;br /&gt;
&lt;br /&gt;
See [[SFTP]] or [http://help.ubuntu.com/community/UsingTheTerminal Click here to find out how to use the terminal.]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Adding Team Kodi PPA repository ===&lt;br /&gt;
&lt;br /&gt;
Use the command line terminal in Ubuntu, and enter the following commands. Follow the prompts as you would any other software installation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt install software-properties-common&lt;br /&gt;
sudo add-apt-repository -y ppa:team-xbmc/ppa&lt;br /&gt;
sudo apt install kodi &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{#lst:Official_Ubuntu_PPA|repos}}&lt;br /&gt;
&lt;br /&gt;
Note that this PPA only provides builds for Ubuntu i386 and Ubuntu amd64 but &#039;&#039;not for Ubuntu armhf&#039;&#039;, which can run on a Raspberry Pi.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Installing binary add-ons (PVR, audio decoders, audio encoders, screensavers, visualizations, audio DSP) ===&lt;br /&gt;
{{See|Ubuntu binary add-ons}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Installing a development build ===&lt;br /&gt;
{{See also|Development builds}}&lt;br /&gt;
To install a beta/unstable version of {{Kodi}} you must first add the unstable repository, then install XBMC. Use &amp;lt;code&amp;gt;ppa:team-xbmc/xbmc-nightly&amp;lt;/code&amp;gt; for nightly builds and &amp;lt;code&amp;gt;ppa:team-xbmc/unstable&amp;lt;/code&amp;gt; for [[Development_builds|beta]] builds.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt install software-properties-common&lt;br /&gt;
sudo add-apt-repository -y ppa:team-xbmc/xbmc-nightly&lt;br /&gt;
sudo apt install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that if you have any addons (such as PVR clients), these must be updated as well (they will not be updated automatically):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt install kodi-pvr-mythtv&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Upgrading ===&lt;br /&gt;
&amp;lt;section begin=&amp;quot;Ubuntu upgrade&amp;quot; /&amp;gt;&lt;br /&gt;
To update Kodi when a new version is released, just do a general system/package or use the following commands in the terminal (or via [[SFTP]]):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt upgrade --with-new-pkgs&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;section end=&amp;quot;Ubuntu upgrade&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Downgrading to a stable version from a development version ===&lt;br /&gt;
If you install a nightly build or an unstable release and want to return to a stable release, follow these instructions:&lt;br /&gt;
&lt;br /&gt;
Remove the unstable or nightly PPA:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
apt-cache policy | grep -Eo &#039;team-xbmc/(unstable|nightly)&#039; | sudo xargs -r add-apt-repository -ryP&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then restore the stable version with the following commands:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo add-apt-repository ppa:team-xbmc/ppa&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get remove kodi kodi-x11&lt;br /&gt;
sudo apt-get install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Downgrading between newer and older stable versions ===&lt;br /&gt;
If you want to return to the next most recent stable release, follow these instructions:&lt;br /&gt;
&lt;br /&gt;
Remove the current stable packages and PPA:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt purge kodi\*&lt;br /&gt;
sudo add-apt-repository -r ppa:team-xbmc/ppa&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then install the &amp;quot;oldstable&amp;quot; version with the following commands:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo add-apt-repository -y ppa:team-xbmc/kodi-old&lt;br /&gt;
sudo apt install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Reverting to an earlier nightly ===&lt;br /&gt;
ALthough launchpad doesn&#039;t list older nightlies in their PPA, they are usually still available for download directly from the website. Visit the [https://launchpad.net/~team-xbmc/+archive/ubuntu/xbmc-nightly/+packages?field.name_filter=&amp;amp;field.status_filter=superseded&amp;amp;field.series_filter= xbmc-nightly repository index], where you will then have to download the appropriate .deb files and manually install them using &amp;lt;code&amp;gt;sudo dpkg -i [path to downloaded file]&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Uninstalling ===&lt;br /&gt;
If you need to uninstall Kodi and purge its global configuration files (for instance, in the attempt to troubleshoot a persistent crash or other errors), do so by using the first of the following commands. If that fails to solve the issue, you will likely need to remove your user settings folder with all of your settings and library data to return to a state equivalent to what existed before Kodi was first installed on the system. This will not delete any videos or music, but just the settings and library data itself, but it is still recommended to keep a backup of them in case it&#039;s discovered that they weren&#039;t at issue and you are able to effect another solution. An example of how to accomplish a backup and then deletion of your user settings is provided on the last two lines, the highlighted one being responsible for making the backup which can thereafter be found in your home folder with the filename kodi-backup_&#039;&#039;timestamp&#039;&#039;.tar.xz.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot; highlight=&amp;quot;2-3&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt purge kodi\*&lt;br /&gt;
tar cf - &amp;quot;${HOME}/.kodi/&amp;quot; | xz -z9e - &amp;gt;&amp;quot;${HOME}/kodi-backup_$(date +%m%d%y-%H%M).tar.xz&amp;quot;&lt;br /&gt;
rm -Ri &amp;quot;${HOME}/.{kodi,xbmc}/&amp;quot; &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Flatpak ==&lt;br /&gt;
&lt;br /&gt;
If you do not know whether your distro supports Flatpak, see https://flatpak.org/setup/ for install instructions.&lt;br /&gt;
&lt;br /&gt;
Then go to https://flathub.org/apps/tv.kodi.Kodi and hit the install button, or run the commands at the bottom of that page in a terminal.&lt;br /&gt;
&lt;br /&gt;
Updates arrive through the normal Flatpak mechanism:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Data location ===&lt;br /&gt;
&lt;br /&gt;
The Flatpak keeps all Kodi data, including your profile, add-ons and databases, under&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;~/.var/app/tv.kodi.Kodi&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Back up that directory before switching channels or trying out something new. The stable and beta builds share it.&lt;br /&gt;
&lt;br /&gt;
=== Beta channel ===&lt;br /&gt;
&lt;br /&gt;
Kodi betas are published on the Flathub beta remote. Add it once:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak remote-add --if-not-exists flathub-beta https://dl.flathub.org/beta-repo/flathub-beta.flatpakrepo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then install the beta:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak install flathub-beta tv.kodi.Kodi//beta&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The beta installs as branch &amp;lt;code&amp;gt;beta&amp;lt;/code&amp;gt; alongside the stable version. A second entry labeled &amp;lt;code&amp;gt;Kodi (Beta)&amp;lt;/code&amp;gt; appears on your system. Both share the data location above, so make a backup first if you value your data. &amp;lt;code&amp;gt;flatpak update&amp;lt;/code&amp;gt; keeps both channels current.&lt;br /&gt;
&lt;br /&gt;
To go back to stable only:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak uninstall tv.kodi.Kodi//beta&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== (Beta) Advanced install ====&lt;br /&gt;
&lt;br /&gt;
Kodi&#039;s binary add-ons (PVR clients, game cores, screensavers, visualizations and so on) ship as Flatpak extensions and are downloaded together with the app by default. You can control which of them are installed by masking the add-on categories you do not want before installing. Masked extensions are never installed or updated automatically.&lt;br /&gt;
&lt;br /&gt;
This example keeps only the inputstream and vfs add-ons, which are needed for common streaming and network sources:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
for c in audiodecoder audioencoder game imagedecoder peripheral pvr screensaver visualization; do&lt;br /&gt;
  flatpak mask &amp;quot;tv.kodi.Kodi.Addon.$c.*&amp;quot;&lt;br /&gt;
done&lt;br /&gt;
flatpak install flathub-beta tv.kodi.Kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add &amp;lt;code&amp;gt;--user&amp;lt;/code&amp;gt; to both commands if you use a per-user installation. To mask a single add-on instead of a whole category, use its full name, for example &amp;lt;code&amp;gt;tv.kodi.Kodi.Addon.pvr.iptvsimple&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Masks also apply to an existing installation. Add-ons already installed stay until removed with &amp;lt;code&amp;gt;flatpak uninstall&amp;lt;/code&amp;gt;, and will not come back on update. To lift a mask, run &amp;lt;code&amp;gt;flatpak mask --remove&amp;lt;/code&amp;gt; with the same pattern; the add-ons it covered are downloaded again on the next &amp;lt;code&amp;gt;flatpak update&amp;lt;/code&amp;gt;. Run &amp;lt;code&amp;gt;flatpak mask&amp;lt;/code&amp;gt; with no arguments to list current masks.&lt;br /&gt;
&lt;br /&gt;
=== Blu-ray menus (BD-J) ===&lt;br /&gt;
&lt;br /&gt;
Most commercial Blu-ray discs use Java (BD-J) menus. Support is an optional extension so that the main app stays small. It is currently available on the beta channel:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak install flathub-beta tv.kodi.Kodi.bdj//beta&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Kodi does not open disc menus by default. Enable them under &#039;&#039;&#039;Settings → Player → Discs → Blu-ray playback mode → Show Blu-ray menu&#039;&#039;&#039;. The first Java menu can take ten to twenty seconds to appear while the runtime starts.&lt;br /&gt;
&lt;br /&gt;
=== Encrypted Blu-ray discs (AACS) ===&lt;br /&gt;
&lt;br /&gt;
Kodi ships libaacs but no keys. To install your key database, save a copy to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;~/.var/app/tv.kodi.Kodi/config/aacs/KEYDB.cfg&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The filename must be uppercase. Discs that were already decrypted when backed up don&#039;t need this.&lt;br /&gt;
&lt;br /&gt;
=== Log file ===&lt;br /&gt;
&lt;br /&gt;
For bug reports, the log is at &amp;lt;code&amp;gt;~/.var/app/tv.kodi.Kodi/data/kodi.log&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Reporting issues ===&lt;br /&gt;
&lt;br /&gt;
Problems specific to the Flatpak, such as missing permissions or add-ons that fail to load, go to https://github.com/flathub/tv.kodi.Kodi/issues. Include the log file above. General Kodi bugs belong on the [https://forum.kodi.tv/ Kodi forum] as usual.&lt;br /&gt;
&lt;br /&gt;
== Embedded/Appliance type install==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LibreELEC ===&lt;br /&gt;
{{main|LibreELEC}}&lt;br /&gt;
{{#lst:LibreELEC|intro}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Third Party Repositories ==&lt;br /&gt;
&amp;lt;!-- Please only list repos that use an internal ffmpeg library --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The instructions in this section are for unofficial Linux binaries that are un/semi supported by Team Kodi. Most of those binaries use system ffmpeg or even worse totally untested libav, which is not recommended for {{kodi}} as we support ffmpeg only.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Debian ===&lt;br /&gt;
Debian GNU/Linux ships its own &#039;&#039;&#039;Kodi from Debian&#039;&#039;&#039; flavor with following changes:&lt;br /&gt;
&lt;br /&gt;
* Only system libraries are used (no embedded third-party libraries except of libdvdread and libdvdnav)&lt;br /&gt;
* Old web interface (Chorus) is shipped to ensure Debian Free Software Guides (DFSG) compatibility&lt;br /&gt;
&lt;br /&gt;
as well as a subset of Kodi binary addons packaged in [https://qa.debian.org/developer.php?email=vasek.gello@gmail.com main repository of Debian].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Warning|&#039;&#039;&#039;Team Kodi offers no official support to &amp;quot;Kodi from Debian&amp;quot;!&#039;&#039;&#039; Please refer to links below for support!}}&lt;br /&gt;
&lt;br /&gt;
The support for Kodi from Debian is provided via the following channels:&lt;br /&gt;
# [https://forum.kodi.tv/showthread.php?tid=363611 Kodi from Debian - Support Thread] on Kodi forums&lt;br /&gt;
# [https://github.com/xbmc/xbmc/issues Github issues]&lt;br /&gt;
# [https://bugs.debian.org Debian Bug Tracker]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Checking installed and available Kodi packages ====&lt;br /&gt;
&lt;br /&gt;
You can check what versions of Kodi and its binary add-ons are installed with the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
dpkg -l | grep kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To check what versions of Kodi are available, use this command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
apt-cache policy kodi*&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Installing Kodi on Debian Unstable or Testing ====&lt;br /&gt;
&lt;br /&gt;
Installation of Kodi from Debian on Debian unstable (&amp;quot;sid&amp;quot;) and testing is straightforward:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To install Kodi binary add-ons (like &#039;&#039;&#039;PVR IPTV Simple&#039;&#039;&#039;, for example):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
sudo apt install kodi-pvr-iptvsimple&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE&#039;&#039;&#039;: Make sure user running Kodi belongs to the following groups&lt;br /&gt;
(for example, for user &#039;&#039;&#039;kodi&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
$ groups kodi&lt;br /&gt;
kodi: cdrom,audio,render,video,plugdev,users,dialout,dip,input&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This needs to be done to ensure Video Acceleration API (VA-API) is properly initialized during Kodi start-up and videos playing get acceleration using VAAPI and not VDPAU on Intel or AMD cards. To add user to groups, use the command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
usermod -a -G cdrom,audio,render,video,plugdev,users,dialout,dip,input kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Installing Kodi on Debian 10 &amp;quot;buster&amp;quot; ====&lt;br /&gt;
&lt;br /&gt;
By default, Debian buster users get Kodi 17.6 &amp;quot;Krypton&amp;quot;. However, it is possible to get Kodi 19.x &amp;quot;Matrix&amp;quot; from buster-backports.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To get Kodi 17.6 and the corresponding add-ons, use the method described in &#039;&#039;&#039;Debian Unstable or Testing&#039;&#039;&#039; section above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To get Kodi 19.x and the corresponding add-ons from Debian Backports:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
# Add Debian Backports repository for Debian 10 &amp;quot;buster&amp;quot;&lt;br /&gt;
if ! apt-cache policy 2&amp;gt;/dev/null | grep -q &amp;quot;http://.*buster-backports&amp;quot;; then&lt;br /&gt;
  echo &amp;quot;deb http://deb.debian.org/debian/ buster-backports main contrib&amp;quot; | sudo tee /etc/apt/sources.list.d/buster-backports.list&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# Update APT lists&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
# Install Kodi from backports:&lt;br /&gt;
sudo apt-get install {kodi,kodi-bin,kodi-data,kodi-repository-kodi,libspdlog1}/buster-backports&lt;br /&gt;
&lt;br /&gt;
# (OPTIONAL) Install Kodi binary add-ons (for example, &#039;PVR IPTV Simple&#039;):&lt;br /&gt;
sudo apt-get install kodi-pvr-iptvsimple/buster-backports&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Installing Kodi on Debian 9 &amp;quot;stretch&amp;quot; ====&lt;br /&gt;
&lt;br /&gt;
By default, Debian stretch users get Kodi 17.1 &amp;quot;Krypton&amp;quot;. No higher version is packaged in backports.&lt;br /&gt;
&lt;br /&gt;
To get Kodi 17.1 and the corresponding add-ons, use the method described in &#039;&#039;&#039;Debian Unstable or Testing&#039;&#039;&#039; section above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Raspberry Pi OS ===&lt;br /&gt;
{{see also|HOW-TO:Install Kodi on Raspberry Pi}}&lt;br /&gt;
Installing on Raspberry Pi OS is done with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
sudo apt-get install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Upgrading on Raspberry Pi OS is done with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get upgrade&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installation from source ==&lt;br /&gt;
If distribution packages are not available, or you need a newer version, or specific features enabled, then you will most likely need to compile from source. See our &#039;&#039;&#039;[[Compiling Kodi]]&#039;&#039;&#039; guide.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Updated|20}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Installation|Linux]]&lt;/div&gt;</summary>
		<author><name>Kelmo</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=HOW-TO:Install_Kodi_for_Linux&amp;diff=264475</id>
		<title>HOW-TO:Install Kodi for Linux</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=HOW-TO:Install_Kodi_for_Linux&amp;diff=264475"/>
		<updated>2026-09-18T12:19:38Z</updated>

		<summary type="html">&lt;p&gt;Kelmo: Add advanced install instructions for masking flatpak exetensions&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Mininav|[[Linux]] {{L2| [[Installing]] }} }}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing Kodi on Ubuntu-based distributions with Team Kodi PPA ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please note that currently the Team Kodi PPA is not maintained due to the previous sole maintainer stepping away from the responsibility. &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
For now the only options are building from source, using Flatpak or a distro such as Debian which includes Kodi in their distribution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Warning|Ubuntu releases 16.04 LTS (&amp;quot;Xenial&amp;quot;) or later, respectively, include their own Kodi builds in their official package repositories, customized to satisfy their interpretations of what is acceptable under their open-source mandates. If you have installed your distribution&#039;s Kodi packages, please purge them using the command &amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot; inline&amp;gt;sudo apt purge kodi\*&amp;lt;/syntaxhighlight&amp;gt; before trying to install team-xbmc PPA packages.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Warning|Releases from Team Kodi PPA are NOT compatible with Debian GNU / Linux and distributions built on top of Debian&#039;s binary package repositories! Please refer to &#039;&#039;&#039;Debian&#039;&#039;&#039; section of this page for installation instructions on such distributions!}}&lt;br /&gt;
&lt;br /&gt;
See [[SFTP]] or [http://help.ubuntu.com/community/UsingTheTerminal Click here to find out how to use the terminal.]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Adding Team Kodi PPA repository ===&lt;br /&gt;
&lt;br /&gt;
Use the command line terminal in Ubuntu, and enter the following commands. Follow the prompts as you would any other software installation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt install software-properties-common&lt;br /&gt;
sudo add-apt-repository -y ppa:team-xbmc/ppa&lt;br /&gt;
sudo apt install kodi &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{#lst:Official_Ubuntu_PPA|repos}}&lt;br /&gt;
&lt;br /&gt;
Note that this PPA only provides builds for Ubuntu i386 and Ubuntu amd64 but &#039;&#039;not for Ubuntu armhf&#039;&#039;, which can run on a Raspberry Pi.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Installing binary add-ons (PVR, audio decoders, audio encoders, screensavers, visualizations, audio DSP) ===&lt;br /&gt;
{{See|Ubuntu binary add-ons}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Installing a development build ===&lt;br /&gt;
{{See also|Development builds}}&lt;br /&gt;
To install a beta/unstable version of {{Kodi}} you must first add the unstable repository, then install XBMC. Use &amp;lt;code&amp;gt;ppa:team-xbmc/xbmc-nightly&amp;lt;/code&amp;gt; for nightly builds and &amp;lt;code&amp;gt;ppa:team-xbmc/unstable&amp;lt;/code&amp;gt; for [[Development_builds|beta]] builds.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt install software-properties-common&lt;br /&gt;
sudo add-apt-repository -y ppa:team-xbmc/xbmc-nightly&lt;br /&gt;
sudo apt install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that if you have any addons (such as PVR clients), these must be updated as well (they will not be updated automatically):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt install kodi-pvr-mythtv&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Upgrading ===&lt;br /&gt;
&amp;lt;section begin=&amp;quot;Ubuntu upgrade&amp;quot; /&amp;gt;&lt;br /&gt;
To update Kodi when a new version is released, just do a general system/package or use the following commands in the terminal (or via [[SFTP]]):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt upgrade --with-new-pkgs&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;section end=&amp;quot;Ubuntu upgrade&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Downgrading to a stable version from a development version ===&lt;br /&gt;
If you install a nightly build or an unstable release and want to return to a stable release, follow these instructions:&lt;br /&gt;
&lt;br /&gt;
Remove the unstable or nightly PPA:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
apt-cache policy | grep -Eo &#039;team-xbmc/(unstable|nightly)&#039; | sudo xargs -r add-apt-repository -ryP&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then restore the stable version with the following commands:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo add-apt-repository ppa:team-xbmc/ppa&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get remove kodi kodi-x11&lt;br /&gt;
sudo apt-get install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Downgrading between newer and older stable versions ===&lt;br /&gt;
If you want to return to the next most recent stable release, follow these instructions:&lt;br /&gt;
&lt;br /&gt;
Remove the current stable packages and PPA:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt purge kodi\*&lt;br /&gt;
sudo add-apt-repository -r ppa:team-xbmc/ppa&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then install the &amp;quot;oldstable&amp;quot; version with the following commands:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo add-apt-repository -y ppa:team-xbmc/kodi-old&lt;br /&gt;
sudo apt install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Reverting to an earlier nightly ===&lt;br /&gt;
ALthough launchpad doesn&#039;t list older nightlies in their PPA, they are usually still available for download directly from the website. Visit the [https://launchpad.net/~team-xbmc/+archive/ubuntu/xbmc-nightly/+packages?field.name_filter=&amp;amp;field.status_filter=superseded&amp;amp;field.series_filter= xbmc-nightly repository index], where you will then have to download the appropriate .deb files and manually install them using &amp;lt;code&amp;gt;sudo dpkg -i [path to downloaded file]&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Uninstalling ===&lt;br /&gt;
If you need to uninstall Kodi and purge its global configuration files (for instance, in the attempt to troubleshoot a persistent crash or other errors), do so by using the first of the following commands. If that fails to solve the issue, you will likely need to remove your user settings folder with all of your settings and library data to return to a state equivalent to what existed before Kodi was first installed on the system. This will not delete any videos or music, but just the settings and library data itself, but it is still recommended to keep a backup of them in case it&#039;s discovered that they weren&#039;t at issue and you are able to effect another solution. An example of how to accomplish a backup and then deletion of your user settings is provided on the last two lines, the highlighted one being responsible for making the backup which can thereafter be found in your home folder with the filename kodi-backup_&#039;&#039;timestamp&#039;&#039;.tar.xz.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot; highlight=&amp;quot;2-3&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt purge kodi\*&lt;br /&gt;
tar cf - &amp;quot;${HOME}/.kodi/&amp;quot; | xz -z9e - &amp;gt;&amp;quot;${HOME}/kodi-backup_$(date +%m%d%y-%H%M).tar.xz&amp;quot;&lt;br /&gt;
rm -Ri &amp;quot;${HOME}/.{kodi,xbmc}/&amp;quot; &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Flatpak ==&lt;br /&gt;
&lt;br /&gt;
If you do not know whether your distro supports Flatpak, see https://flatpak.org/setup/ for install instructions.&lt;br /&gt;
&lt;br /&gt;
Then go to https://flathub.org/apps/tv.kodi.Kodi and hit the install button, or run the commands at the bottom of that page in a terminal.&lt;br /&gt;
&lt;br /&gt;
Updates arrive through the normal Flatpak mechanism:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Data location ===&lt;br /&gt;
&lt;br /&gt;
The Flatpak keeps all Kodi data, including your profile, add-ons and databases, under&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;~/.var/app/tv.kodi.Kodi&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Back up that directory before switching channels or trying out something new. The stable and beta builds share it.&lt;br /&gt;
&lt;br /&gt;
=== Beta channel ===&lt;br /&gt;
&lt;br /&gt;
Kodi betas are published on the Flathub beta remote. Add it once:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak remote-add --if-not-exists flathub-beta https://dl.flathub.org/beta-repo/flathub-beta.flatpakrepo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then install the beta:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak install flathub-beta tv.kodi.Kodi//beta&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The beta installs as branch &amp;lt;code&amp;gt;beta&amp;lt;/code&amp;gt; alongside the stable version. A second entry labeled &amp;lt;code&amp;gt;Kodi (Beta)&amp;lt;/code&amp;gt; appears on your system. Both share the data location above, so make a backup first if you value your data. &amp;lt;code&amp;gt;flatpak update&amp;lt;/code&amp;gt; keeps both channels current.&lt;br /&gt;
&lt;br /&gt;
To go back to stable only:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak uninstall tv.kodi.Kodi//beta&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== (Beta) Advanced install ====&lt;br /&gt;
&lt;br /&gt;
Kodi&#039;s binary add-ons (PVR clients, game cores, screensavers, visualizations and so on) ship as Flatpak extensions and are downloaded together with the app by default. You can control which of them are installed by masking the add-on categories you do not want before installing. Masked extensions are never installed or updated automatically.&lt;br /&gt;
&lt;br /&gt;
This example keeps only the inputstream and vfs add-ons, which are needed for common streaming and network sources:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
for c in audiodecoder audioencoder game imagedecoder peripheral pvr screensaver visualization; do&lt;br /&gt;
  flatpak mask &amp;quot;tv.kodi.Kodi.Addon.$c.*&amp;quot;&lt;br /&gt;
done&lt;br /&gt;
flatpak install flathub tv.kodi.Kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add &amp;lt;code&amp;gt;--user&amp;lt;/code&amp;gt; to both commands if you use a per-user installation. To mask a single add-on instead of a whole category, use its full name, for example &amp;lt;code&amp;gt;tv.kodi.Kodi.Addon.pvr.iptvsimple&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Masks also apply to an existing installation. Add-ons already installed stay until removed with &amp;lt;code&amp;gt;flatpak uninstall&amp;lt;/code&amp;gt;, and will not come back on update. To lift a mask, run &amp;lt;code&amp;gt;flatpak mask --remove&amp;lt;/code&amp;gt; with the same pattern; the add-ons it covered are downloaded again on the next &amp;lt;code&amp;gt;flatpak update&amp;lt;/code&amp;gt;. Run &amp;lt;code&amp;gt;flatpak mask&amp;lt;/code&amp;gt; with no arguments to list current masks.&lt;br /&gt;
&lt;br /&gt;
=== Blu-ray menus (BD-J) ===&lt;br /&gt;
&lt;br /&gt;
Most commercial Blu-ray discs use Java (BD-J) menus. Support is an optional extension so that the main app stays small. It is currently available on the beta channel:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak install flathub-beta tv.kodi.Kodi.bdj//beta&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Kodi does not open disc menus by default. Enable them under &#039;&#039;&#039;Settings → Player → Discs → Blu-ray playback mode → Show Blu-ray menu&#039;&#039;&#039;. The first Java menu can take ten to twenty seconds to appear while the runtime starts.&lt;br /&gt;
&lt;br /&gt;
=== Encrypted Blu-ray discs (AACS) ===&lt;br /&gt;
&lt;br /&gt;
Kodi ships libaacs but no keys. To install your key database, save a copy to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;~/.var/app/tv.kodi.Kodi/config/aacs/KEYDB.cfg&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The filename must be uppercase. Discs that were already decrypted when backed up don&#039;t need this.&lt;br /&gt;
&lt;br /&gt;
=== Log file ===&lt;br /&gt;
&lt;br /&gt;
For bug reports, the log is at &amp;lt;code&amp;gt;~/.var/app/tv.kodi.Kodi/data/kodi.log&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Reporting issues ===&lt;br /&gt;
&lt;br /&gt;
Problems specific to the Flatpak, such as missing permissions or add-ons that fail to load, go to https://github.com/flathub/tv.kodi.Kodi/issues. Include the log file above. General Kodi bugs belong on the [https://forum.kodi.tv/ Kodi forum] as usual.&lt;br /&gt;
&lt;br /&gt;
== Embedded/Appliance type install==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LibreELEC ===&lt;br /&gt;
{{main|LibreELEC}}&lt;br /&gt;
{{#lst:LibreELEC|intro}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Third Party Repositories ==&lt;br /&gt;
&amp;lt;!-- Please only list repos that use an internal ffmpeg library --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The instructions in this section are for unofficial Linux binaries that are un/semi supported by Team Kodi. Most of those binaries use system ffmpeg or even worse totally untested libav, which is not recommended for {{kodi}} as we support ffmpeg only.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Debian ===&lt;br /&gt;
Debian GNU/Linux ships its own &#039;&#039;&#039;Kodi from Debian&#039;&#039;&#039; flavor with following changes:&lt;br /&gt;
&lt;br /&gt;
* Only system libraries are used (no embedded third-party libraries except of libdvdread and libdvdnav)&lt;br /&gt;
* Old web interface (Chorus) is shipped to ensure Debian Free Software Guides (DFSG) compatibility&lt;br /&gt;
&lt;br /&gt;
as well as a subset of Kodi binary addons packaged in [https://qa.debian.org/developer.php?email=vasek.gello@gmail.com main repository of Debian].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Warning|&#039;&#039;&#039;Team Kodi offers no official support to &amp;quot;Kodi from Debian&amp;quot;!&#039;&#039;&#039; Please refer to links below for support!}}&lt;br /&gt;
&lt;br /&gt;
The support for Kodi from Debian is provided via the following channels:&lt;br /&gt;
# [https://forum.kodi.tv/showthread.php?tid=363611 Kodi from Debian - Support Thread] on Kodi forums&lt;br /&gt;
# [https://github.com/xbmc/xbmc/issues Github issues]&lt;br /&gt;
# [https://bugs.debian.org Debian Bug Tracker]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Checking installed and available Kodi packages ====&lt;br /&gt;
&lt;br /&gt;
You can check what versions of Kodi and its binary add-ons are installed with the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
dpkg -l | grep kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To check what versions of Kodi are available, use this command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
apt-cache policy kodi*&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Installing Kodi on Debian Unstable or Testing ====&lt;br /&gt;
&lt;br /&gt;
Installation of Kodi from Debian on Debian unstable (&amp;quot;sid&amp;quot;) and testing is straightforward:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To install Kodi binary add-ons (like &#039;&#039;&#039;PVR IPTV Simple&#039;&#039;&#039;, for example):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
sudo apt install kodi-pvr-iptvsimple&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE&#039;&#039;&#039;: Make sure user running Kodi belongs to the following groups&lt;br /&gt;
(for example, for user &#039;&#039;&#039;kodi&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
$ groups kodi&lt;br /&gt;
kodi: cdrom,audio,render,video,plugdev,users,dialout,dip,input&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This needs to be done to ensure Video Acceleration API (VA-API) is properly initialized during Kodi start-up and videos playing get acceleration using VAAPI and not VDPAU on Intel or AMD cards. To add user to groups, use the command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
usermod -a -G cdrom,audio,render,video,plugdev,users,dialout,dip,input kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Installing Kodi on Debian 10 &amp;quot;buster&amp;quot; ====&lt;br /&gt;
&lt;br /&gt;
By default, Debian buster users get Kodi 17.6 &amp;quot;Krypton&amp;quot;. However, it is possible to get Kodi 19.x &amp;quot;Matrix&amp;quot; from buster-backports.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To get Kodi 17.6 and the corresponding add-ons, use the method described in &#039;&#039;&#039;Debian Unstable or Testing&#039;&#039;&#039; section above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To get Kodi 19.x and the corresponding add-ons from Debian Backports:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
# Add Debian Backports repository for Debian 10 &amp;quot;buster&amp;quot;&lt;br /&gt;
if ! apt-cache policy 2&amp;gt;/dev/null | grep -q &amp;quot;http://.*buster-backports&amp;quot;; then&lt;br /&gt;
  echo &amp;quot;deb http://deb.debian.org/debian/ buster-backports main contrib&amp;quot; | sudo tee /etc/apt/sources.list.d/buster-backports.list&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# Update APT lists&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
# Install Kodi from backports:&lt;br /&gt;
sudo apt-get install {kodi,kodi-bin,kodi-data,kodi-repository-kodi,libspdlog1}/buster-backports&lt;br /&gt;
&lt;br /&gt;
# (OPTIONAL) Install Kodi binary add-ons (for example, &#039;PVR IPTV Simple&#039;):&lt;br /&gt;
sudo apt-get install kodi-pvr-iptvsimple/buster-backports&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Installing Kodi on Debian 9 &amp;quot;stretch&amp;quot; ====&lt;br /&gt;
&lt;br /&gt;
By default, Debian stretch users get Kodi 17.1 &amp;quot;Krypton&amp;quot;. No higher version is packaged in backports.&lt;br /&gt;
&lt;br /&gt;
To get Kodi 17.1 and the corresponding add-ons, use the method described in &#039;&#039;&#039;Debian Unstable or Testing&#039;&#039;&#039; section above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Raspberry Pi OS ===&lt;br /&gt;
{{see also|HOW-TO:Install Kodi on Raspberry Pi}}&lt;br /&gt;
Installing on Raspberry Pi OS is done with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
sudo apt-get install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Upgrading on Raspberry Pi OS is done with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get upgrade&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installation from source ==&lt;br /&gt;
If distribution packages are not available, or you need a newer version, or specific features enabled, then you will most likely need to compile from source. See our &#039;&#039;&#039;[[Compiling Kodi]]&#039;&#039;&#039; guide.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Updated|20}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Installation|Linux]]&lt;/div&gt;</summary>
		<author><name>Kelmo</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=HOW-TO:Install_Kodi_for_Linux&amp;diff=264466</id>
		<title>HOW-TO:Install Kodi for Linux</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=HOW-TO:Install_Kodi_for_Linux&amp;diff=264466"/>
		<updated>2026-09-11T10:16:14Z</updated>

		<summary type="html">&lt;p&gt;Kelmo: flatpak: remove sandbox wording from aacs section&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Mininav|[[Linux]] {{L2| [[Installing]] }} }}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing Kodi on Ubuntu-based distributions with Team Kodi PPA ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please note that currently the Team Kodi PPA is not maintained due to the previous sole maintainer stepping away from the responsibility. &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
For now the only options are building from source, using Flatpak or a distro such as Debian which includes Kodi in their distribution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Warning|Ubuntu releases 16.04 LTS (&amp;quot;Xenial&amp;quot;) or later, respectively, include their own Kodi builds in their official package repositories, customized to satisfy their interpretations of what is acceptable under their open-source mandates. If you have installed your distribution&#039;s Kodi packages, please purge them using the command &amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot; inline&amp;gt;sudo apt purge kodi\*&amp;lt;/syntaxhighlight&amp;gt; before trying to install team-xbmc PPA packages.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Warning|Releases from Team Kodi PPA are NOT compatible with Debian GNU / Linux and distributions built on top of Debian&#039;s binary package repositories! Please refer to &#039;&#039;&#039;Debian&#039;&#039;&#039; section of this page for installation instructions on such distributions!}}&lt;br /&gt;
&lt;br /&gt;
See [[SFTP]] or [http://help.ubuntu.com/community/UsingTheTerminal Click here to find out how to use the terminal.]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Adding Team Kodi PPA repository ===&lt;br /&gt;
&lt;br /&gt;
Use the command line terminal in Ubuntu, and enter the following commands. Follow the prompts as you would any other software installation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt install software-properties-common&lt;br /&gt;
sudo add-apt-repository -y ppa:team-xbmc/ppa&lt;br /&gt;
sudo apt install kodi &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{#lst:Official_Ubuntu_PPA|repos}}&lt;br /&gt;
&lt;br /&gt;
Note that this PPA only provides builds for Ubuntu i386 and Ubuntu amd64 but &#039;&#039;not for Ubuntu armhf&#039;&#039;, which can run on a Raspberry Pi.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Installing binary add-ons (PVR, audio decoders, audio encoders, screensavers, visualizations, audio DSP) ===&lt;br /&gt;
{{See|Ubuntu binary add-ons}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Installing a development build ===&lt;br /&gt;
{{See also|Development builds}}&lt;br /&gt;
To install a beta/unstable version of {{Kodi}} you must first add the unstable repository, then install XBMC. Use &amp;lt;code&amp;gt;ppa:team-xbmc/xbmc-nightly&amp;lt;/code&amp;gt; for nightly builds and &amp;lt;code&amp;gt;ppa:team-xbmc/unstable&amp;lt;/code&amp;gt; for [[Development_builds|beta]] builds.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt install software-properties-common&lt;br /&gt;
sudo add-apt-repository -y ppa:team-xbmc/xbmc-nightly&lt;br /&gt;
sudo apt install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that if you have any addons (such as PVR clients), these must be updated as well (they will not be updated automatically):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt install kodi-pvr-mythtv&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Upgrading ===&lt;br /&gt;
&amp;lt;section begin=&amp;quot;Ubuntu upgrade&amp;quot; /&amp;gt;&lt;br /&gt;
To update Kodi when a new version is released, just do a general system/package or use the following commands in the terminal (or via [[SFTP]]):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt upgrade --with-new-pkgs&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;section end=&amp;quot;Ubuntu upgrade&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Downgrading to a stable version from a development version ===&lt;br /&gt;
If you install a nightly build or an unstable release and want to return to a stable release, follow these instructions:&lt;br /&gt;
&lt;br /&gt;
Remove the unstable or nightly PPA:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
apt-cache policy | grep -Eo &#039;team-xbmc/(unstable|nightly)&#039; | sudo xargs -r add-apt-repository -ryP&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then restore the stable version with the following commands:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo add-apt-repository ppa:team-xbmc/ppa&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get remove kodi kodi-x11&lt;br /&gt;
sudo apt-get install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Downgrading between newer and older stable versions ===&lt;br /&gt;
If you want to return to the next most recent stable release, follow these instructions:&lt;br /&gt;
&lt;br /&gt;
Remove the current stable packages and PPA:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt purge kodi\*&lt;br /&gt;
sudo add-apt-repository -r ppa:team-xbmc/ppa&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then install the &amp;quot;oldstable&amp;quot; version with the following commands:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo add-apt-repository -y ppa:team-xbmc/kodi-old&lt;br /&gt;
sudo apt install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Reverting to an earlier nightly ===&lt;br /&gt;
ALthough launchpad doesn&#039;t list older nightlies in their PPA, they are usually still available for download directly from the website. Visit the [https://launchpad.net/~team-xbmc/+archive/ubuntu/xbmc-nightly/+packages?field.name_filter=&amp;amp;field.status_filter=superseded&amp;amp;field.series_filter= xbmc-nightly repository index], where you will then have to download the appropriate .deb files and manually install them using &amp;lt;code&amp;gt;sudo dpkg -i [path to downloaded file]&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Uninstalling ===&lt;br /&gt;
If you need to uninstall Kodi and purge its global configuration files (for instance, in the attempt to troubleshoot a persistent crash or other errors), do so by using the first of the following commands. If that fails to solve the issue, you will likely need to remove your user settings folder with all of your settings and library data to return to a state equivalent to what existed before Kodi was first installed on the system. This will not delete any videos or music, but just the settings and library data itself, but it is still recommended to keep a backup of them in case it&#039;s discovered that they weren&#039;t at issue and you are able to effect another solution. An example of how to accomplish a backup and then deletion of your user settings is provided on the last two lines, the highlighted one being responsible for making the backup which can thereafter be found in your home folder with the filename kodi-backup_&#039;&#039;timestamp&#039;&#039;.tar.xz.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot; highlight=&amp;quot;2-3&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt purge kodi\*&lt;br /&gt;
tar cf - &amp;quot;${HOME}/.kodi/&amp;quot; | xz -z9e - &amp;gt;&amp;quot;${HOME}/kodi-backup_$(date +%m%d%y-%H%M).tar.xz&amp;quot;&lt;br /&gt;
rm -Ri &amp;quot;${HOME}/.{kodi,xbmc}/&amp;quot; &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Flatpak ==&lt;br /&gt;
&lt;br /&gt;
If you do not know whether your distro supports Flatpak, see https://flatpak.org/setup/ for install instructions.&lt;br /&gt;
&lt;br /&gt;
Then go to https://flathub.org/apps/tv.kodi.Kodi and hit the install button, or run the commands at the bottom of that page in a terminal.&lt;br /&gt;
&lt;br /&gt;
Updates arrive through the normal Flatpak mechanism:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Data location ===&lt;br /&gt;
&lt;br /&gt;
The Flatpak keeps all Kodi data, including your profile, add-ons and databases, under&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;~/.var/app/tv.kodi.Kodi&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Back up that directory before switching channels or trying out something new. The stable and beta builds share it.&lt;br /&gt;
&lt;br /&gt;
=== Beta channel ===&lt;br /&gt;
&lt;br /&gt;
Kodi betas are published on the Flathub beta remote. Add it once:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak remote-add --if-not-exists flathub-beta https://dl.flathub.org/beta-repo/flathub-beta.flatpakrepo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then install the beta:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak install flathub-beta tv.kodi.Kodi//beta&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The beta installs as branch &amp;lt;code&amp;gt;beta&amp;lt;/code&amp;gt; alongside the stable version. A second entry labeled &amp;lt;code&amp;gt;Kodi (Beta)&amp;lt;/code&amp;gt; appears on your system. Both share the data location above, so make a backup first if you value your data. &amp;lt;code&amp;gt;flatpak update&amp;lt;/code&amp;gt; keeps both channels current.&lt;br /&gt;
&lt;br /&gt;
To go back to stable only:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak uninstall tv.kodi.Kodi//beta&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Blu-ray menus (BD-J) ===&lt;br /&gt;
&lt;br /&gt;
Most commercial Blu-ray discs use Java (BD-J) menus. Support is an optional extension so that the main app stays small. It is currently available on the beta channel:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak install flathub-beta tv.kodi.Kodi.bdj//beta&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Kodi does not open disc menus by default. Enable them under &#039;&#039;&#039;Settings → Player → Discs → Blu-ray playback mode → Show Blu-ray menu&#039;&#039;&#039;. The first Java menu can take ten to twenty seconds to appear while the runtime starts.&lt;br /&gt;
&lt;br /&gt;
=== Encrypted Blu-ray discs (AACS) ===&lt;br /&gt;
&lt;br /&gt;
Kodi ships libaacs but no keys. To install your key database, save a copy to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;~/.var/app/tv.kodi.Kodi/config/aacs/KEYDB.cfg&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The filename must be uppercase. Discs that were already decrypted when backed up don&#039;t need this.&lt;br /&gt;
&lt;br /&gt;
=== Log file ===&lt;br /&gt;
&lt;br /&gt;
For bug reports, the log is at &amp;lt;code&amp;gt;~/.var/app/tv.kodi.Kodi/data/kodi.log&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Reporting issues ===&lt;br /&gt;
&lt;br /&gt;
Problems specific to the Flatpak, such as missing permissions or add-ons that fail to load, go to https://github.com/flathub/tv.kodi.Kodi/issues. Include the log file above. General Kodi bugs belong on the [https://forum.kodi.tv/ Kodi forum] as usual.&lt;br /&gt;
&lt;br /&gt;
== Embedded/Appliance type install==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LibreELEC ===&lt;br /&gt;
{{main|LibreELEC}}&lt;br /&gt;
{{#lst:LibreELEC|intro}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Third Party Repositories ==&lt;br /&gt;
&amp;lt;!-- Please only list repos that use an internal ffmpeg library --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The instructions in this section are for unofficial Linux binaries that are un/semi supported by Team Kodi. Most of those binaries use system ffmpeg or even worse totally untested libav, which is not recommended for {{kodi}} as we support ffmpeg only.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Debian ===&lt;br /&gt;
Debian GNU/Linux ships its own &#039;&#039;&#039;Kodi from Debian&#039;&#039;&#039; flavor with following changes:&lt;br /&gt;
&lt;br /&gt;
* Only system libraries are used (no embedded third-party libraries except of libdvdread and libdvdnav)&lt;br /&gt;
* Old web interface (Chorus) is shipped to ensure Debian Free Software Guides (DFSG) compatibility&lt;br /&gt;
&lt;br /&gt;
as well as a subset of Kodi binary addons packaged in [https://qa.debian.org/developer.php?email=vasek.gello@gmail.com main repository of Debian].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Warning|&#039;&#039;&#039;Team Kodi offers no official support to &amp;quot;Kodi from Debian&amp;quot;!&#039;&#039;&#039; Please refer to links below for support!}}&lt;br /&gt;
&lt;br /&gt;
The support for Kodi from Debian is provided via the following channels:&lt;br /&gt;
# [https://forum.kodi.tv/showthread.php?tid=363611 Kodi from Debian - Support Thread] on Kodi forums&lt;br /&gt;
# [https://github.com/xbmc/xbmc/issues Github issues]&lt;br /&gt;
# [https://bugs.debian.org Debian Bug Tracker]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Checking installed and available Kodi packages ====&lt;br /&gt;
&lt;br /&gt;
You can check what versions of Kodi and its binary add-ons are installed with the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
dpkg -l | grep kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To check what versions of Kodi are available, use this command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
apt-cache policy kodi*&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Installing Kodi on Debian Unstable or Testing ====&lt;br /&gt;
&lt;br /&gt;
Installation of Kodi from Debian on Debian unstable (&amp;quot;sid&amp;quot;) and testing is straightforward:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To install Kodi binary add-ons (like &#039;&#039;&#039;PVR IPTV Simple&#039;&#039;&#039;, for example):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
sudo apt install kodi-pvr-iptvsimple&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE&#039;&#039;&#039;: Make sure user running Kodi belongs to the following groups&lt;br /&gt;
(for example, for user &#039;&#039;&#039;kodi&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
$ groups kodi&lt;br /&gt;
kodi: cdrom,audio,render,video,plugdev,users,dialout,dip,input&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This needs to be done to ensure Video Acceleration API (VA-API) is properly initialized during Kodi start-up and videos playing get acceleration using VAAPI and not VDPAU on Intel or AMD cards. To add user to groups, use the command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
usermod -a -G cdrom,audio,render,video,plugdev,users,dialout,dip,input kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Installing Kodi on Debian 10 &amp;quot;buster&amp;quot; ====&lt;br /&gt;
&lt;br /&gt;
By default, Debian buster users get Kodi 17.6 &amp;quot;Krypton&amp;quot;. However, it is possible to get Kodi 19.x &amp;quot;Matrix&amp;quot; from buster-backports.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To get Kodi 17.6 and the corresponding add-ons, use the method described in &#039;&#039;&#039;Debian Unstable or Testing&#039;&#039;&#039; section above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To get Kodi 19.x and the corresponding add-ons from Debian Backports:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
# Add Debian Backports repository for Debian 10 &amp;quot;buster&amp;quot;&lt;br /&gt;
if ! apt-cache policy 2&amp;gt;/dev/null | grep -q &amp;quot;http://.*buster-backports&amp;quot;; then&lt;br /&gt;
  echo &amp;quot;deb http://deb.debian.org/debian/ buster-backports main contrib&amp;quot; | sudo tee /etc/apt/sources.list.d/buster-backports.list&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# Update APT lists&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
# Install Kodi from backports:&lt;br /&gt;
sudo apt-get install {kodi,kodi-bin,kodi-data,kodi-repository-kodi,libspdlog1}/buster-backports&lt;br /&gt;
&lt;br /&gt;
# (OPTIONAL) Install Kodi binary add-ons (for example, &#039;PVR IPTV Simple&#039;):&lt;br /&gt;
sudo apt-get install kodi-pvr-iptvsimple/buster-backports&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Installing Kodi on Debian 9 &amp;quot;stretch&amp;quot; ====&lt;br /&gt;
&lt;br /&gt;
By default, Debian stretch users get Kodi 17.1 &amp;quot;Krypton&amp;quot;. No higher version is packaged in backports.&lt;br /&gt;
&lt;br /&gt;
To get Kodi 17.1 and the corresponding add-ons, use the method described in &#039;&#039;&#039;Debian Unstable or Testing&#039;&#039;&#039; section above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Raspberry Pi OS ===&lt;br /&gt;
{{see also|HOW-TO:Install Kodi on Raspberry Pi}}&lt;br /&gt;
Installing on Raspberry Pi OS is done with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
sudo apt-get install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Upgrading on Raspberry Pi OS is done with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get upgrade&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installation from source ==&lt;br /&gt;
If distribution packages are not available, or you need a newer version, or specific features enabled, then you will most likely need to compile from source. See our &#039;&#039;&#039;[[Compiling Kodi]]&#039;&#039;&#039; guide.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Updated|20}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Installation|Linux]]&lt;/div&gt;</summary>
		<author><name>Kelmo</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=HOW-TO:Install_Kodi_for_Linux&amp;diff=264463</id>
		<title>HOW-TO:Install Kodi for Linux</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=HOW-TO:Install_Kodi_for_Linux&amp;diff=264463"/>
		<updated>2026-09-11T10:07:35Z</updated>

		<summary type="html">&lt;p&gt;Kelmo: reword flatpak aacs sandbox&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Mininav|[[Linux]] {{L2| [[Installing]] }} }}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing Kodi on Ubuntu-based distributions with Team Kodi PPA ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please note that currently the Team Kodi PPA is not maintained due to the previous sole maintainer stepping away from the responsibility. &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
For now the only options are building from source, using Flatpak or a distro such as Debian which includes Kodi in their distribution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Warning|Ubuntu releases 16.04 LTS (&amp;quot;Xenial&amp;quot;) or later, respectively, include their own Kodi builds in their official package repositories, customized to satisfy their interpretations of what is acceptable under their open-source mandates. If you have installed your distribution&#039;s Kodi packages, please purge them using the command &amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot; inline&amp;gt;sudo apt purge kodi\*&amp;lt;/syntaxhighlight&amp;gt; before trying to install team-xbmc PPA packages.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Warning|Releases from Team Kodi PPA are NOT compatible with Debian GNU / Linux and distributions built on top of Debian&#039;s binary package repositories! Please refer to &#039;&#039;&#039;Debian&#039;&#039;&#039; section of this page for installation instructions on such distributions!}}&lt;br /&gt;
&lt;br /&gt;
See [[SFTP]] or [http://help.ubuntu.com/community/UsingTheTerminal Click here to find out how to use the terminal.]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Adding Team Kodi PPA repository ===&lt;br /&gt;
&lt;br /&gt;
Use the command line terminal in Ubuntu, and enter the following commands. Follow the prompts as you would any other software installation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt install software-properties-common&lt;br /&gt;
sudo add-apt-repository -y ppa:team-xbmc/ppa&lt;br /&gt;
sudo apt install kodi &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{#lst:Official_Ubuntu_PPA|repos}}&lt;br /&gt;
&lt;br /&gt;
Note that this PPA only provides builds for Ubuntu i386 and Ubuntu amd64 but &#039;&#039;not for Ubuntu armhf&#039;&#039;, which can run on a Raspberry Pi.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Installing binary add-ons (PVR, audio decoders, audio encoders, screensavers, visualizations, audio DSP) ===&lt;br /&gt;
{{See|Ubuntu binary add-ons}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Installing a development build ===&lt;br /&gt;
{{See also|Development builds}}&lt;br /&gt;
To install a beta/unstable version of {{Kodi}} you must first add the unstable repository, then install XBMC. Use &amp;lt;code&amp;gt;ppa:team-xbmc/xbmc-nightly&amp;lt;/code&amp;gt; for nightly builds and &amp;lt;code&amp;gt;ppa:team-xbmc/unstable&amp;lt;/code&amp;gt; for [[Development_builds|beta]] builds.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt install software-properties-common&lt;br /&gt;
sudo add-apt-repository -y ppa:team-xbmc/xbmc-nightly&lt;br /&gt;
sudo apt install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that if you have any addons (such as PVR clients), these must be updated as well (they will not be updated automatically):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt install kodi-pvr-mythtv&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Upgrading ===&lt;br /&gt;
&amp;lt;section begin=&amp;quot;Ubuntu upgrade&amp;quot; /&amp;gt;&lt;br /&gt;
To update Kodi when a new version is released, just do a general system/package or use the following commands in the terminal (or via [[SFTP]]):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt upgrade --with-new-pkgs&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;section end=&amp;quot;Ubuntu upgrade&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Downgrading to a stable version from a development version ===&lt;br /&gt;
If you install a nightly build or an unstable release and want to return to a stable release, follow these instructions:&lt;br /&gt;
&lt;br /&gt;
Remove the unstable or nightly PPA:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
apt-cache policy | grep -Eo &#039;team-xbmc/(unstable|nightly)&#039; | sudo xargs -r add-apt-repository -ryP&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then restore the stable version with the following commands:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo add-apt-repository ppa:team-xbmc/ppa&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get remove kodi kodi-x11&lt;br /&gt;
sudo apt-get install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Downgrading between newer and older stable versions ===&lt;br /&gt;
If you want to return to the next most recent stable release, follow these instructions:&lt;br /&gt;
&lt;br /&gt;
Remove the current stable packages and PPA:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt purge kodi\*&lt;br /&gt;
sudo add-apt-repository -r ppa:team-xbmc/ppa&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then install the &amp;quot;oldstable&amp;quot; version with the following commands:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo add-apt-repository -y ppa:team-xbmc/kodi-old&lt;br /&gt;
sudo apt install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Reverting to an earlier nightly ===&lt;br /&gt;
ALthough launchpad doesn&#039;t list older nightlies in their PPA, they are usually still available for download directly from the website. Visit the [https://launchpad.net/~team-xbmc/+archive/ubuntu/xbmc-nightly/+packages?field.name_filter=&amp;amp;field.status_filter=superseded&amp;amp;field.series_filter= xbmc-nightly repository index], where you will then have to download the appropriate .deb files and manually install them using &amp;lt;code&amp;gt;sudo dpkg -i [path to downloaded file]&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Uninstalling ===&lt;br /&gt;
If you need to uninstall Kodi and purge its global configuration files (for instance, in the attempt to troubleshoot a persistent crash or other errors), do so by using the first of the following commands. If that fails to solve the issue, you will likely need to remove your user settings folder with all of your settings and library data to return to a state equivalent to what existed before Kodi was first installed on the system. This will not delete any videos or music, but just the settings and library data itself, but it is still recommended to keep a backup of them in case it&#039;s discovered that they weren&#039;t at issue and you are able to effect another solution. An example of how to accomplish a backup and then deletion of your user settings is provided on the last two lines, the highlighted one being responsible for making the backup which can thereafter be found in your home folder with the filename kodi-backup_&#039;&#039;timestamp&#039;&#039;.tar.xz.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot; highlight=&amp;quot;2-3&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt purge kodi\*&lt;br /&gt;
tar cf - &amp;quot;${HOME}/.kodi/&amp;quot; | xz -z9e - &amp;gt;&amp;quot;${HOME}/kodi-backup_$(date +%m%d%y-%H%M).tar.xz&amp;quot;&lt;br /&gt;
rm -Ri &amp;quot;${HOME}/.{kodi,xbmc}/&amp;quot; &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Flatpak ==&lt;br /&gt;
&lt;br /&gt;
If you do not know whether your distro supports Flatpak, see https://flatpak.org/setup/ for install instructions.&lt;br /&gt;
&lt;br /&gt;
Then go to https://flathub.org/apps/tv.kodi.Kodi and hit the install button, or run the commands at the bottom of that page in a terminal.&lt;br /&gt;
&lt;br /&gt;
Updates arrive through the normal Flatpak mechanism:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Data location ===&lt;br /&gt;
&lt;br /&gt;
The Flatpak keeps all Kodi data, including your profile, add-ons and databases, under&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;~/.var/app/tv.kodi.Kodi&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Back up that directory before switching channels or trying out something new. The stable and beta builds share it.&lt;br /&gt;
&lt;br /&gt;
=== Beta channel ===&lt;br /&gt;
&lt;br /&gt;
Kodi betas are published on the Flathub beta remote. Add it once:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak remote-add --if-not-exists flathub-beta https://dl.flathub.org/beta-repo/flathub-beta.flatpakrepo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then install the beta:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak install flathub-beta tv.kodi.Kodi//beta&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The beta installs as branch &amp;lt;code&amp;gt;beta&amp;lt;/code&amp;gt; alongside the stable version. A second entry labeled &amp;lt;code&amp;gt;Kodi (Beta)&amp;lt;/code&amp;gt; appears on your system. Both share the data location above, so make a backup first if you value your data. &amp;lt;code&amp;gt;flatpak update&amp;lt;/code&amp;gt; keeps both channels current.&lt;br /&gt;
&lt;br /&gt;
To go back to stable only:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak uninstall tv.kodi.Kodi//beta&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Blu-ray menus (BD-J) ===&lt;br /&gt;
&lt;br /&gt;
Most commercial Blu-ray discs use Java (BD-J) menus. Support is an optional extension so that the main app stays small. It is currently available on the beta channel:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak install flathub-beta tv.kodi.Kodi.bdj//beta&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Kodi does not open disc menus by default. Enable them under &#039;&#039;&#039;Settings → Player → Discs → Blu-ray playback mode → Show Blu-ray menu&#039;&#039;&#039;. The first Java menu can take ten to twenty seconds to appear while the runtime starts.&lt;br /&gt;
&lt;br /&gt;
=== Encrypted Blu-ray discs (AACS) ===&lt;br /&gt;
&lt;br /&gt;
Kodi ships libaacs but no keys. To place your key database inside the sandbox, save a copy to:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;~/.var/app/tv.kodi.Kodi/config/aacs/KEYDB.cfg&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The filename must be uppercase. Discs that were already decrypted when backed up don&#039;t need this.&lt;br /&gt;
&lt;br /&gt;
=== Log file ===&lt;br /&gt;
&lt;br /&gt;
For bug reports, the log is at &amp;lt;code&amp;gt;~/.var/app/tv.kodi.Kodi/data/kodi.log&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Reporting issues ===&lt;br /&gt;
&lt;br /&gt;
Problems specific to the Flatpak, such as missing permissions or add-ons that fail to load, go to https://github.com/flathub/tv.kodi.Kodi/issues. Include the log file above. General Kodi bugs belong on the [https://forum.kodi.tv/ Kodi forum] as usual.&lt;br /&gt;
&lt;br /&gt;
== Embedded/Appliance type install==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LibreELEC ===&lt;br /&gt;
{{main|LibreELEC}}&lt;br /&gt;
{{#lst:LibreELEC|intro}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Third Party Repositories ==&lt;br /&gt;
&amp;lt;!-- Please only list repos that use an internal ffmpeg library --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The instructions in this section are for unofficial Linux binaries that are un/semi supported by Team Kodi. Most of those binaries use system ffmpeg or even worse totally untested libav, which is not recommended for {{kodi}} as we support ffmpeg only.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Debian ===&lt;br /&gt;
Debian GNU/Linux ships its own &#039;&#039;&#039;Kodi from Debian&#039;&#039;&#039; flavor with following changes:&lt;br /&gt;
&lt;br /&gt;
* Only system libraries are used (no embedded third-party libraries except of libdvdread and libdvdnav)&lt;br /&gt;
* Old web interface (Chorus) is shipped to ensure Debian Free Software Guides (DFSG) compatibility&lt;br /&gt;
&lt;br /&gt;
as well as a subset of Kodi binary addons packaged in [https://qa.debian.org/developer.php?email=vasek.gello@gmail.com main repository of Debian].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Warning|&#039;&#039;&#039;Team Kodi offers no official support to &amp;quot;Kodi from Debian&amp;quot;!&#039;&#039;&#039; Please refer to links below for support!}}&lt;br /&gt;
&lt;br /&gt;
The support for Kodi from Debian is provided via the following channels:&lt;br /&gt;
# [https://forum.kodi.tv/showthread.php?tid=363611 Kodi from Debian - Support Thread] on Kodi forums&lt;br /&gt;
# [https://github.com/xbmc/xbmc/issues Github issues]&lt;br /&gt;
# [https://bugs.debian.org Debian Bug Tracker]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Checking installed and available Kodi packages ====&lt;br /&gt;
&lt;br /&gt;
You can check what versions of Kodi and its binary add-ons are installed with the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
dpkg -l | grep kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To check what versions of Kodi are available, use this command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
apt-cache policy kodi*&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Installing Kodi on Debian Unstable or Testing ====&lt;br /&gt;
&lt;br /&gt;
Installation of Kodi from Debian on Debian unstable (&amp;quot;sid&amp;quot;) and testing is straightforward:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To install Kodi binary add-ons (like &#039;&#039;&#039;PVR IPTV Simple&#039;&#039;&#039;, for example):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
sudo apt install kodi-pvr-iptvsimple&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE&#039;&#039;&#039;: Make sure user running Kodi belongs to the following groups&lt;br /&gt;
(for example, for user &#039;&#039;&#039;kodi&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
$ groups kodi&lt;br /&gt;
kodi: cdrom,audio,render,video,plugdev,users,dialout,dip,input&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This needs to be done to ensure Video Acceleration API (VA-API) is properly initialized during Kodi start-up and videos playing get acceleration using VAAPI and not VDPAU on Intel or AMD cards. To add user to groups, use the command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
usermod -a -G cdrom,audio,render,video,plugdev,users,dialout,dip,input kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Installing Kodi on Debian 10 &amp;quot;buster&amp;quot; ====&lt;br /&gt;
&lt;br /&gt;
By default, Debian buster users get Kodi 17.6 &amp;quot;Krypton&amp;quot;. However, it is possible to get Kodi 19.x &amp;quot;Matrix&amp;quot; from buster-backports.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To get Kodi 17.6 and the corresponding add-ons, use the method described in &#039;&#039;&#039;Debian Unstable or Testing&#039;&#039;&#039; section above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To get Kodi 19.x and the corresponding add-ons from Debian Backports:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
# Add Debian Backports repository for Debian 10 &amp;quot;buster&amp;quot;&lt;br /&gt;
if ! apt-cache policy 2&amp;gt;/dev/null | grep -q &amp;quot;http://.*buster-backports&amp;quot;; then&lt;br /&gt;
  echo &amp;quot;deb http://deb.debian.org/debian/ buster-backports main contrib&amp;quot; | sudo tee /etc/apt/sources.list.d/buster-backports.list&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# Update APT lists&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
# Install Kodi from backports:&lt;br /&gt;
sudo apt-get install {kodi,kodi-bin,kodi-data,kodi-repository-kodi,libspdlog1}/buster-backports&lt;br /&gt;
&lt;br /&gt;
# (OPTIONAL) Install Kodi binary add-ons (for example, &#039;PVR IPTV Simple&#039;):&lt;br /&gt;
sudo apt-get install kodi-pvr-iptvsimple/buster-backports&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Installing Kodi on Debian 9 &amp;quot;stretch&amp;quot; ====&lt;br /&gt;
&lt;br /&gt;
By default, Debian stretch users get Kodi 17.1 &amp;quot;Krypton&amp;quot;. No higher version is packaged in backports.&lt;br /&gt;
&lt;br /&gt;
To get Kodi 17.1 and the corresponding add-ons, use the method described in &#039;&#039;&#039;Debian Unstable or Testing&#039;&#039;&#039; section above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Raspberry Pi OS ===&lt;br /&gt;
{{see also|HOW-TO:Install Kodi on Raspberry Pi}}&lt;br /&gt;
Installing on Raspberry Pi OS is done with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
sudo apt-get install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Upgrading on Raspberry Pi OS is done with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get upgrade&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installation from source ==&lt;br /&gt;
If distribution packages are not available, or you need a newer version, or specific features enabled, then you will most likely need to compile from source. See our &#039;&#039;&#039;[[Compiling Kodi]]&#039;&#039;&#039; guide.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Updated|20}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Installation|Linux]]&lt;/div&gt;</summary>
		<author><name>Kelmo</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=HOW-TO:Install_Kodi_for_Linux&amp;diff=264460</id>
		<title>HOW-TO:Install Kodi for Linux</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=HOW-TO:Install_Kodi_for_Linux&amp;diff=264460"/>
		<updated>2026-09-11T09:45:51Z</updated>

		<summary type="html">&lt;p&gt;Kelmo: flatpak section formatting&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Mininav|[[Linux]] {{L2| [[Installing]] }} }}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing Kodi on Ubuntu-based distributions with Team Kodi PPA ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please note that currently the Team Kodi PPA is not maintained due to the previous sole maintainer stepping away from the responsibility. &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
For now the only options are building from source, using Flatpak or a distro such as Debian which includes Kodi in their distribution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Warning|Ubuntu releases 16.04 LTS (&amp;quot;Xenial&amp;quot;) or later, respectively, include their own Kodi builds in their official package repositories, customized to satisfy their interpretations of what is acceptable under their open-source mandates. If you have installed your distribution&#039;s Kodi packages, please purge them using the command &amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot; inline&amp;gt;sudo apt purge kodi\*&amp;lt;/syntaxhighlight&amp;gt; before trying to install team-xbmc PPA packages.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Warning|Releases from Team Kodi PPA are NOT compatible with Debian GNU / Linux and distributions built on top of Debian&#039;s binary package repositories! Please refer to &#039;&#039;&#039;Debian&#039;&#039;&#039; section of this page for installation instructions on such distributions!}}&lt;br /&gt;
&lt;br /&gt;
See [[SFTP]] or [http://help.ubuntu.com/community/UsingTheTerminal Click here to find out how to use the terminal.]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Adding Team Kodi PPA repository ===&lt;br /&gt;
&lt;br /&gt;
Use the command line terminal in Ubuntu, and enter the following commands. Follow the prompts as you would any other software installation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt install software-properties-common&lt;br /&gt;
sudo add-apt-repository -y ppa:team-xbmc/ppa&lt;br /&gt;
sudo apt install kodi &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{#lst:Official_Ubuntu_PPA|repos}}&lt;br /&gt;
&lt;br /&gt;
Note that this PPA only provides builds for Ubuntu i386 and Ubuntu amd64 but &#039;&#039;not for Ubuntu armhf&#039;&#039;, which can run on a Raspberry Pi.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Installing binary add-ons (PVR, audio decoders, audio encoders, screensavers, visualizations, audio DSP) ===&lt;br /&gt;
{{See|Ubuntu binary add-ons}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Installing a development build ===&lt;br /&gt;
{{See also|Development builds}}&lt;br /&gt;
To install a beta/unstable version of {{Kodi}} you must first add the unstable repository, then install XBMC. Use &amp;lt;code&amp;gt;ppa:team-xbmc/xbmc-nightly&amp;lt;/code&amp;gt; for nightly builds and &amp;lt;code&amp;gt;ppa:team-xbmc/unstable&amp;lt;/code&amp;gt; for [[Development_builds|beta]] builds.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt install software-properties-common&lt;br /&gt;
sudo add-apt-repository -y ppa:team-xbmc/xbmc-nightly&lt;br /&gt;
sudo apt install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that if you have any addons (such as PVR clients), these must be updated as well (they will not be updated automatically):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt install kodi-pvr-mythtv&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Upgrading ===&lt;br /&gt;
&amp;lt;section begin=&amp;quot;Ubuntu upgrade&amp;quot; /&amp;gt;&lt;br /&gt;
To update Kodi when a new version is released, just do a general system/package or use the following commands in the terminal (or via [[SFTP]]):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt upgrade --with-new-pkgs&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;section end=&amp;quot;Ubuntu upgrade&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Downgrading to a stable version from a development version ===&lt;br /&gt;
If you install a nightly build or an unstable release and want to return to a stable release, follow these instructions:&lt;br /&gt;
&lt;br /&gt;
Remove the unstable or nightly PPA:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
apt-cache policy | grep -Eo &#039;team-xbmc/(unstable|nightly)&#039; | sudo xargs -r add-apt-repository -ryP&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then restore the stable version with the following commands:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo add-apt-repository ppa:team-xbmc/ppa&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get remove kodi kodi-x11&lt;br /&gt;
sudo apt-get install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Downgrading between newer and older stable versions ===&lt;br /&gt;
If you want to return to the next most recent stable release, follow these instructions:&lt;br /&gt;
&lt;br /&gt;
Remove the current stable packages and PPA:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt purge kodi\*&lt;br /&gt;
sudo add-apt-repository -r ppa:team-xbmc/ppa&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then install the &amp;quot;oldstable&amp;quot; version with the following commands:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo add-apt-repository -y ppa:team-xbmc/kodi-old&lt;br /&gt;
sudo apt install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Reverting to an earlier nightly ===&lt;br /&gt;
ALthough launchpad doesn&#039;t list older nightlies in their PPA, they are usually still available for download directly from the website. Visit the [https://launchpad.net/~team-xbmc/+archive/ubuntu/xbmc-nightly/+packages?field.name_filter=&amp;amp;field.status_filter=superseded&amp;amp;field.series_filter= xbmc-nightly repository index], where you will then have to download the appropriate .deb files and manually install them using &amp;lt;code&amp;gt;sudo dpkg -i [path to downloaded file]&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Uninstalling ===&lt;br /&gt;
If you need to uninstall Kodi and purge its global configuration files (for instance, in the attempt to troubleshoot a persistent crash or other errors), do so by using the first of the following commands. If that fails to solve the issue, you will likely need to remove your user settings folder with all of your settings and library data to return to a state equivalent to what existed before Kodi was first installed on the system. This will not delete any videos or music, but just the settings and library data itself, but it is still recommended to keep a backup of them in case it&#039;s discovered that they weren&#039;t at issue and you are able to effect another solution. An example of how to accomplish a backup and then deletion of your user settings is provided on the last two lines, the highlighted one being responsible for making the backup which can thereafter be found in your home folder with the filename kodi-backup_&#039;&#039;timestamp&#039;&#039;.tar.xz.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot; highlight=&amp;quot;2-3&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt purge kodi\*&lt;br /&gt;
tar cf - &amp;quot;${HOME}/.kodi/&amp;quot; | xz -z9e - &amp;gt;&amp;quot;${HOME}/kodi-backup_$(date +%m%d%y-%H%M).tar.xz&amp;quot;&lt;br /&gt;
rm -Ri &amp;quot;${HOME}/.{kodi,xbmc}/&amp;quot; &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Flatpak ==&lt;br /&gt;
&lt;br /&gt;
If you do not know whether your distro supports Flatpak, see https://flatpak.org/setup/ for install instructions.&lt;br /&gt;
&lt;br /&gt;
Then go to https://flathub.org/apps/tv.kodi.Kodi and hit the install button, or run the commands at the bottom of that page in a terminal.&lt;br /&gt;
&lt;br /&gt;
Updates arrive through the normal Flatpak mechanism:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Data location ===&lt;br /&gt;
&lt;br /&gt;
The Flatpak keeps all Kodi data, including your profile, add-ons and databases, under&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;~/.var/app/tv.kodi.Kodi&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Back up that directory before switching channels or trying out something new. The stable and beta builds share it.&lt;br /&gt;
&lt;br /&gt;
=== Beta channel ===&lt;br /&gt;
&lt;br /&gt;
Kodi betas are published on the Flathub beta remote. Add it once:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak remote-add --if-not-exists flathub-beta https://dl.flathub.org/beta-repo/flathub-beta.flatpakrepo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then install the beta:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak install flathub-beta tv.kodi.Kodi//beta&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The beta installs as branch &amp;lt;code&amp;gt;beta&amp;lt;/code&amp;gt; alongside the stable version. A second entry labeled &amp;lt;code&amp;gt;Kodi (Beta)&amp;lt;/code&amp;gt; appears on your system. Both share the data location above, so make a backup first if you value your data. &amp;lt;code&amp;gt;flatpak update&amp;lt;/code&amp;gt; keeps both channels current.&lt;br /&gt;
&lt;br /&gt;
To go back to stable only:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak uninstall tv.kodi.Kodi//beta&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Blu-ray menus (BD-J) ===&lt;br /&gt;
&lt;br /&gt;
Most commercial Blu-ray discs use Java (BD-J) menus. Support is an optional extension so that the main app stays small. It is currently available on the beta channel:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak install flathub-beta tv.kodi.Kodi.bdj//beta&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Kodi does not open disc menus by default. Enable them under &#039;&#039;&#039;Settings → Player → Discs → Blu-ray playback mode → Show Blu-ray menu&#039;&#039;&#039;. The first Java menu can take ten to twenty seconds to appear while the runtime starts.&lt;br /&gt;
&lt;br /&gt;
=== Encrypted Blu-ray discs (AACS) ===&lt;br /&gt;
&lt;br /&gt;
Kodi ships libaacs but no keys. Place your key database inside the sandbox at&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;~/.var/app/tv.kodi.Kodi/config/aacs/KEYDB.cfg&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The filename must be uppercase. Discs that were already decrypted when backed up don&#039;t need this.&lt;br /&gt;
&lt;br /&gt;
=== Log file ===&lt;br /&gt;
&lt;br /&gt;
For bug reports, the log is at &amp;lt;code&amp;gt;~/.var/app/tv.kodi.Kodi/data/kodi.log&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Reporting issues ===&lt;br /&gt;
&lt;br /&gt;
Problems specific to the Flatpak, such as missing permissions or add-ons that fail to load, go to https://github.com/flathub/tv.kodi.Kodi/issues. Include the log file above. General Kodi bugs belong on the [https://forum.kodi.tv/ Kodi forum] as usual.&lt;br /&gt;
&lt;br /&gt;
== Embedded/Appliance type install==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LibreELEC ===&lt;br /&gt;
{{main|LibreELEC}}&lt;br /&gt;
{{#lst:LibreELEC|intro}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Third Party Repositories ==&lt;br /&gt;
&amp;lt;!-- Please only list repos that use an internal ffmpeg library --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The instructions in this section are for unofficial Linux binaries that are un/semi supported by Team Kodi. Most of those binaries use system ffmpeg or even worse totally untested libav, which is not recommended for {{kodi}} as we support ffmpeg only.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Debian ===&lt;br /&gt;
Debian GNU/Linux ships its own &#039;&#039;&#039;Kodi from Debian&#039;&#039;&#039; flavor with following changes:&lt;br /&gt;
&lt;br /&gt;
* Only system libraries are used (no embedded third-party libraries except of libdvdread and libdvdnav)&lt;br /&gt;
* Old web interface (Chorus) is shipped to ensure Debian Free Software Guides (DFSG) compatibility&lt;br /&gt;
&lt;br /&gt;
as well as a subset of Kodi binary addons packaged in [https://qa.debian.org/developer.php?email=vasek.gello@gmail.com main repository of Debian].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Warning|&#039;&#039;&#039;Team Kodi offers no official support to &amp;quot;Kodi from Debian&amp;quot;!&#039;&#039;&#039; Please refer to links below for support!}}&lt;br /&gt;
&lt;br /&gt;
The support for Kodi from Debian is provided via the following channels:&lt;br /&gt;
# [https://forum.kodi.tv/showthread.php?tid=363611 Kodi from Debian - Support Thread] on Kodi forums&lt;br /&gt;
# [https://github.com/xbmc/xbmc/issues Github issues]&lt;br /&gt;
# [https://bugs.debian.org Debian Bug Tracker]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Checking installed and available Kodi packages ====&lt;br /&gt;
&lt;br /&gt;
You can check what versions of Kodi and its binary add-ons are installed with the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
dpkg -l | grep kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To check what versions of Kodi are available, use this command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
apt-cache policy kodi*&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Installing Kodi on Debian Unstable or Testing ====&lt;br /&gt;
&lt;br /&gt;
Installation of Kodi from Debian on Debian unstable (&amp;quot;sid&amp;quot;) and testing is straightforward:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To install Kodi binary add-ons (like &#039;&#039;&#039;PVR IPTV Simple&#039;&#039;&#039;, for example):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
sudo apt install kodi-pvr-iptvsimple&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE&#039;&#039;&#039;: Make sure user running Kodi belongs to the following groups&lt;br /&gt;
(for example, for user &#039;&#039;&#039;kodi&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
$ groups kodi&lt;br /&gt;
kodi: cdrom,audio,render,video,plugdev,users,dialout,dip,input&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This needs to be done to ensure Video Acceleration API (VA-API) is properly initialized during Kodi start-up and videos playing get acceleration using VAAPI and not VDPAU on Intel or AMD cards. To add user to groups, use the command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
usermod -a -G cdrom,audio,render,video,plugdev,users,dialout,dip,input kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Installing Kodi on Debian 10 &amp;quot;buster&amp;quot; ====&lt;br /&gt;
&lt;br /&gt;
By default, Debian buster users get Kodi 17.6 &amp;quot;Krypton&amp;quot;. However, it is possible to get Kodi 19.x &amp;quot;Matrix&amp;quot; from buster-backports.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To get Kodi 17.6 and the corresponding add-ons, use the method described in &#039;&#039;&#039;Debian Unstable or Testing&#039;&#039;&#039; section above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To get Kodi 19.x and the corresponding add-ons from Debian Backports:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
# Add Debian Backports repository for Debian 10 &amp;quot;buster&amp;quot;&lt;br /&gt;
if ! apt-cache policy 2&amp;gt;/dev/null | grep -q &amp;quot;http://.*buster-backports&amp;quot;; then&lt;br /&gt;
  echo &amp;quot;deb http://deb.debian.org/debian/ buster-backports main contrib&amp;quot; | sudo tee /etc/apt/sources.list.d/buster-backports.list&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# Update APT lists&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
# Install Kodi from backports:&lt;br /&gt;
sudo apt-get install {kodi,kodi-bin,kodi-data,kodi-repository-kodi,libspdlog1}/buster-backports&lt;br /&gt;
&lt;br /&gt;
# (OPTIONAL) Install Kodi binary add-ons (for example, &#039;PVR IPTV Simple&#039;):&lt;br /&gt;
sudo apt-get install kodi-pvr-iptvsimple/buster-backports&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Installing Kodi on Debian 9 &amp;quot;stretch&amp;quot; ====&lt;br /&gt;
&lt;br /&gt;
By default, Debian stretch users get Kodi 17.1 &amp;quot;Krypton&amp;quot;. No higher version is packaged in backports.&lt;br /&gt;
&lt;br /&gt;
To get Kodi 17.1 and the corresponding add-ons, use the method described in &#039;&#039;&#039;Debian Unstable or Testing&#039;&#039;&#039; section above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Raspberry Pi OS ===&lt;br /&gt;
{{see also|HOW-TO:Install Kodi on Raspberry Pi}}&lt;br /&gt;
Installing on Raspberry Pi OS is done with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
sudo apt-get install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Upgrading on Raspberry Pi OS is done with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get upgrade&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installation from source ==&lt;br /&gt;
If distribution packages are not available, or you need a newer version, or specific features enabled, then you will most likely need to compile from source. See our &#039;&#039;&#039;[[Compiling Kodi]]&#039;&#039;&#039; guide.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Updated|20}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Installation|Linux]]&lt;/div&gt;</summary>
		<author><name>Kelmo</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=HOW-TO:Install_Kodi_for_Linux&amp;diff=264457</id>
		<title>HOW-TO:Install Kodi for Linux</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=HOW-TO:Install_Kodi_for_Linux&amp;diff=264457"/>
		<updated>2026-09-11T09:44:17Z</updated>

		<summary type="html">&lt;p&gt;Kelmo: remove hardware specific blurb from flatpak section&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Mininav|[[Linux]] {{L2| [[Installing]] }} }}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing Kodi on Ubuntu-based distributions with Team Kodi PPA ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please note that currently the Team Kodi PPA is not maintained due to the previous sole maintainer stepping away from the responsibility. &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
For now the only options are building from source, using Flatpak or a distro such as Debian which includes Kodi in their distribution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Warning|Ubuntu releases 16.04 LTS (&amp;quot;Xenial&amp;quot;) or later, respectively, include their own Kodi builds in their official package repositories, customized to satisfy their interpretations of what is acceptable under their open-source mandates. If you have installed your distribution&#039;s Kodi packages, please purge them using the command &amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot; inline&amp;gt;sudo apt purge kodi\*&amp;lt;/syntaxhighlight&amp;gt; before trying to install team-xbmc PPA packages.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Warning|Releases from Team Kodi PPA are NOT compatible with Debian GNU / Linux and distributions built on top of Debian&#039;s binary package repositories! Please refer to &#039;&#039;&#039;Debian&#039;&#039;&#039; section of this page for installation instructions on such distributions!}}&lt;br /&gt;
&lt;br /&gt;
See [[SFTP]] or [http://help.ubuntu.com/community/UsingTheTerminal Click here to find out how to use the terminal.]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Adding Team Kodi PPA repository ===&lt;br /&gt;
&lt;br /&gt;
Use the command line terminal in Ubuntu, and enter the following commands. Follow the prompts as you would any other software installation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt install software-properties-common&lt;br /&gt;
sudo add-apt-repository -y ppa:team-xbmc/ppa&lt;br /&gt;
sudo apt install kodi &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{#lst:Official_Ubuntu_PPA|repos}}&lt;br /&gt;
&lt;br /&gt;
Note that this PPA only provides builds for Ubuntu i386 and Ubuntu amd64 but &#039;&#039;not for Ubuntu armhf&#039;&#039;, which can run on a Raspberry Pi.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Installing binary add-ons (PVR, audio decoders, audio encoders, screensavers, visualizations, audio DSP) ===&lt;br /&gt;
{{See|Ubuntu binary add-ons}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Installing a development build ===&lt;br /&gt;
{{See also|Development builds}}&lt;br /&gt;
To install a beta/unstable version of {{Kodi}} you must first add the unstable repository, then install XBMC. Use &amp;lt;code&amp;gt;ppa:team-xbmc/xbmc-nightly&amp;lt;/code&amp;gt; for nightly builds and &amp;lt;code&amp;gt;ppa:team-xbmc/unstable&amp;lt;/code&amp;gt; for [[Development_builds|beta]] builds.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt install software-properties-common&lt;br /&gt;
sudo add-apt-repository -y ppa:team-xbmc/xbmc-nightly&lt;br /&gt;
sudo apt install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that if you have any addons (such as PVR clients), these must be updated as well (they will not be updated automatically):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt install kodi-pvr-mythtv&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Upgrading ===&lt;br /&gt;
&amp;lt;section begin=&amp;quot;Ubuntu upgrade&amp;quot; /&amp;gt;&lt;br /&gt;
To update Kodi when a new version is released, just do a general system/package or use the following commands in the terminal (or via [[SFTP]]):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt upgrade --with-new-pkgs&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;section end=&amp;quot;Ubuntu upgrade&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Downgrading to a stable version from a development version ===&lt;br /&gt;
If you install a nightly build or an unstable release and want to return to a stable release, follow these instructions:&lt;br /&gt;
&lt;br /&gt;
Remove the unstable or nightly PPA:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
apt-cache policy | grep -Eo &#039;team-xbmc/(unstable|nightly)&#039; | sudo xargs -r add-apt-repository -ryP&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then restore the stable version with the following commands:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo add-apt-repository ppa:team-xbmc/ppa&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get remove kodi kodi-x11&lt;br /&gt;
sudo apt-get install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Downgrading between newer and older stable versions ===&lt;br /&gt;
If you want to return to the next most recent stable release, follow these instructions:&lt;br /&gt;
&lt;br /&gt;
Remove the current stable packages and PPA:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt purge kodi\*&lt;br /&gt;
sudo add-apt-repository -r ppa:team-xbmc/ppa&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then install the &amp;quot;oldstable&amp;quot; version with the following commands:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo add-apt-repository -y ppa:team-xbmc/kodi-old&lt;br /&gt;
sudo apt install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Reverting to an earlier nightly ===&lt;br /&gt;
ALthough launchpad doesn&#039;t list older nightlies in their PPA, they are usually still available for download directly from the website. Visit the [https://launchpad.net/~team-xbmc/+archive/ubuntu/xbmc-nightly/+packages?field.name_filter=&amp;amp;field.status_filter=superseded&amp;amp;field.series_filter= xbmc-nightly repository index], where you will then have to download the appropriate .deb files and manually install them using &amp;lt;code&amp;gt;sudo dpkg -i [path to downloaded file]&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Uninstalling ===&lt;br /&gt;
If you need to uninstall Kodi and purge its global configuration files (for instance, in the attempt to troubleshoot a persistent crash or other errors), do so by using the first of the following commands. If that fails to solve the issue, you will likely need to remove your user settings folder with all of your settings and library data to return to a state equivalent to what existed before Kodi was first installed on the system. This will not delete any videos or music, but just the settings and library data itself, but it is still recommended to keep a backup of them in case it&#039;s discovered that they weren&#039;t at issue and you are able to effect another solution. An example of how to accomplish a backup and then deletion of your user settings is provided on the last two lines, the highlighted one being responsible for making the backup which can thereafter be found in your home folder with the filename kodi-backup_&#039;&#039;timestamp&#039;&#039;.tar.xz.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot; highlight=&amp;quot;2-3&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt purge kodi\*&lt;br /&gt;
tar cf - &amp;quot;${HOME}/.kodi/&amp;quot; | xz -z9e - &amp;gt;&amp;quot;${HOME}/kodi-backup_$(date +%m%d%y-%H%M).tar.xz&amp;quot;&lt;br /&gt;
rm -Ri &amp;quot;${HOME}/.{kodi,xbmc}/&amp;quot; &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Flatpak ==&lt;br /&gt;
&lt;br /&gt;
If you do not know whether your distro supports Flatpak, see https://flatpak.org/setup/ for install instructions.&lt;br /&gt;
&lt;br /&gt;
Then go to https://flathub.org/apps/tv.kodi.Kodi and hit the install button, or run the commands at the bottom of that page in a terminal.&lt;br /&gt;
&lt;br /&gt;
Updates arrive through the normal Flatpak mechanism:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Data location ===&lt;br /&gt;
&lt;br /&gt;
The Flatpak keeps all Kodi data, including your profile, add-ons and databases, under&lt;br /&gt;
&lt;br /&gt;
 ~/.var/app/tv.kodi.Kodi&lt;br /&gt;
&lt;br /&gt;
Back up that directory before switching channels or trying out something new. The stable and beta builds share it.&lt;br /&gt;
&lt;br /&gt;
=== Beta channel ===&lt;br /&gt;
&lt;br /&gt;
Kodi betas are published on the Flathub beta remote. Add it once:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak remote-add --if-not-exists flathub-beta https://dl.flathub.org/beta-repo/flathub-beta.flatpakrepo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then install the beta:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak install flathub-beta tv.kodi.Kodi//beta&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The beta installs as branch &amp;lt;code&amp;gt;beta&amp;lt;/code&amp;gt; alongside the stable version. A second entry labeled &amp;lt;code&amp;gt;Kodi (Beta)&amp;lt;/code&amp;gt; appears on your system. Both share the data location above, so make a backup first if you value your data. &amp;lt;code&amp;gt;flatpak update&amp;lt;/code&amp;gt; keeps both channels current.&lt;br /&gt;
&lt;br /&gt;
To go back to stable only:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak uninstall tv.kodi.Kodi//beta&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Blu-ray menus (BD-J) ===&lt;br /&gt;
&lt;br /&gt;
Most commercial Blu-ray discs use Java (BD-J) menus. Support is an optional extension so that the main app stays small. It is currently available on the beta channel:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak install flathub-beta tv.kodi.Kodi.bdj//beta&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Kodi does not open disc menus by default. Enable them under &#039;&#039;&#039;Settings → Player → Discs → Blu-ray playback mode → Show Blu-ray menu&#039;&#039;&#039;. The first Java menu can take ten to twenty seconds to appear while the runtime starts.&lt;br /&gt;
&lt;br /&gt;
=== Encrypted Blu-ray discs (AACS) ===&lt;br /&gt;
&lt;br /&gt;
Kodi ships libaacs but no keys. Place your key database inside the sandbox at&lt;br /&gt;
&lt;br /&gt;
 ~/.var/app/tv.kodi.Kodi/config/aacs/KEYDB.cfg&lt;br /&gt;
&lt;br /&gt;
The filename must be uppercase. Discs that were already decrypted when backed up don&#039;t need this.&lt;br /&gt;
&lt;br /&gt;
=== Log file ===&lt;br /&gt;
&lt;br /&gt;
For bug reports, the log is at &amp;lt;code&amp;gt;~/.var/app/tv.kodi.Kodi/data/kodi.log&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Reporting issues ===&lt;br /&gt;
&lt;br /&gt;
Problems specific to the Flatpak, such as missing permissions or add-ons that fail to load, go to https://github.com/flathub/tv.kodi.Kodi/issues. Include the log file above. General Kodi bugs belong on the [https://forum.kodi.tv/ Kodi forum] as usual.&lt;br /&gt;
&lt;br /&gt;
== Embedded/Appliance type install==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LibreELEC ===&lt;br /&gt;
{{main|LibreELEC}}&lt;br /&gt;
{{#lst:LibreELEC|intro}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Third Party Repositories ==&lt;br /&gt;
&amp;lt;!-- Please only list repos that use an internal ffmpeg library --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The instructions in this section are for unofficial Linux binaries that are un/semi supported by Team Kodi. Most of those binaries use system ffmpeg or even worse totally untested libav, which is not recommended for {{kodi}} as we support ffmpeg only.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Debian ===&lt;br /&gt;
Debian GNU/Linux ships its own &#039;&#039;&#039;Kodi from Debian&#039;&#039;&#039; flavor with following changes:&lt;br /&gt;
&lt;br /&gt;
* Only system libraries are used (no embedded third-party libraries except of libdvdread and libdvdnav)&lt;br /&gt;
* Old web interface (Chorus) is shipped to ensure Debian Free Software Guides (DFSG) compatibility&lt;br /&gt;
&lt;br /&gt;
as well as a subset of Kodi binary addons packaged in [https://qa.debian.org/developer.php?email=vasek.gello@gmail.com main repository of Debian].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Warning|&#039;&#039;&#039;Team Kodi offers no official support to &amp;quot;Kodi from Debian&amp;quot;!&#039;&#039;&#039; Please refer to links below for support!}}&lt;br /&gt;
&lt;br /&gt;
The support for Kodi from Debian is provided via the following channels:&lt;br /&gt;
# [https://forum.kodi.tv/showthread.php?tid=363611 Kodi from Debian - Support Thread] on Kodi forums&lt;br /&gt;
# [https://github.com/xbmc/xbmc/issues Github issues]&lt;br /&gt;
# [https://bugs.debian.org Debian Bug Tracker]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Checking installed and available Kodi packages ====&lt;br /&gt;
&lt;br /&gt;
You can check what versions of Kodi and its binary add-ons are installed with the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
dpkg -l | grep kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To check what versions of Kodi are available, use this command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
apt-cache policy kodi*&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Installing Kodi on Debian Unstable or Testing ====&lt;br /&gt;
&lt;br /&gt;
Installation of Kodi from Debian on Debian unstable (&amp;quot;sid&amp;quot;) and testing is straightforward:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To install Kodi binary add-ons (like &#039;&#039;&#039;PVR IPTV Simple&#039;&#039;&#039;, for example):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
sudo apt install kodi-pvr-iptvsimple&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE&#039;&#039;&#039;: Make sure user running Kodi belongs to the following groups&lt;br /&gt;
(for example, for user &#039;&#039;&#039;kodi&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
$ groups kodi&lt;br /&gt;
kodi: cdrom,audio,render,video,plugdev,users,dialout,dip,input&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This needs to be done to ensure Video Acceleration API (VA-API) is properly initialized during Kodi start-up and videos playing get acceleration using VAAPI and not VDPAU on Intel or AMD cards. To add user to groups, use the command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
usermod -a -G cdrom,audio,render,video,plugdev,users,dialout,dip,input kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Installing Kodi on Debian 10 &amp;quot;buster&amp;quot; ====&lt;br /&gt;
&lt;br /&gt;
By default, Debian buster users get Kodi 17.6 &amp;quot;Krypton&amp;quot;. However, it is possible to get Kodi 19.x &amp;quot;Matrix&amp;quot; from buster-backports.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To get Kodi 17.6 and the corresponding add-ons, use the method described in &#039;&#039;&#039;Debian Unstable or Testing&#039;&#039;&#039; section above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To get Kodi 19.x and the corresponding add-ons from Debian Backports:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
# Add Debian Backports repository for Debian 10 &amp;quot;buster&amp;quot;&lt;br /&gt;
if ! apt-cache policy 2&amp;gt;/dev/null | grep -q &amp;quot;http://.*buster-backports&amp;quot;; then&lt;br /&gt;
  echo &amp;quot;deb http://deb.debian.org/debian/ buster-backports main contrib&amp;quot; | sudo tee /etc/apt/sources.list.d/buster-backports.list&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# Update APT lists&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
# Install Kodi from backports:&lt;br /&gt;
sudo apt-get install {kodi,kodi-bin,kodi-data,kodi-repository-kodi,libspdlog1}/buster-backports&lt;br /&gt;
&lt;br /&gt;
# (OPTIONAL) Install Kodi binary add-ons (for example, &#039;PVR IPTV Simple&#039;):&lt;br /&gt;
sudo apt-get install kodi-pvr-iptvsimple/buster-backports&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Installing Kodi on Debian 9 &amp;quot;stretch&amp;quot; ====&lt;br /&gt;
&lt;br /&gt;
By default, Debian stretch users get Kodi 17.1 &amp;quot;Krypton&amp;quot;. No higher version is packaged in backports.&lt;br /&gt;
&lt;br /&gt;
To get Kodi 17.1 and the corresponding add-ons, use the method described in &#039;&#039;&#039;Debian Unstable or Testing&#039;&#039;&#039; section above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Raspberry Pi OS ===&lt;br /&gt;
{{see also|HOW-TO:Install Kodi on Raspberry Pi}}&lt;br /&gt;
Installing on Raspberry Pi OS is done with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
sudo apt-get install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Upgrading on Raspberry Pi OS is done with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get upgrade&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installation from source ==&lt;br /&gt;
If distribution packages are not available, or you need a newer version, or specific features enabled, then you will most likely need to compile from source. See our &#039;&#039;&#039;[[Compiling Kodi]]&#039;&#039;&#039; guide.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Updated|20}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Installation|Linux]]&lt;/div&gt;</summary>
		<author><name>Kelmo</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=HOW-TO:Install_Kodi_for_Linux&amp;diff=264454</id>
		<title>HOW-TO:Install Kodi for Linux</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=HOW-TO:Install_Kodi_for_Linux&amp;diff=264454"/>
		<updated>2026-09-11T09:42:56Z</updated>

		<summary type="html">&lt;p&gt;Kelmo: more flatpak updates&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Mininav|[[Linux]] {{L2| [[Installing]] }} }}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing Kodi on Ubuntu-based distributions with Team Kodi PPA ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please note that currently the Team Kodi PPA is not maintained due to the previous sole maintainer stepping away from the responsibility. &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
For now the only options are building from source, using Flatpak or a distro such as Debian which includes Kodi in their distribution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Warning|Ubuntu releases 16.04 LTS (&amp;quot;Xenial&amp;quot;) or later, respectively, include their own Kodi builds in their official package repositories, customized to satisfy their interpretations of what is acceptable under their open-source mandates. If you have installed your distribution&#039;s Kodi packages, please purge them using the command &amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot; inline&amp;gt;sudo apt purge kodi\*&amp;lt;/syntaxhighlight&amp;gt; before trying to install team-xbmc PPA packages.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Warning|Releases from Team Kodi PPA are NOT compatible with Debian GNU / Linux and distributions built on top of Debian&#039;s binary package repositories! Please refer to &#039;&#039;&#039;Debian&#039;&#039;&#039; section of this page for installation instructions on such distributions!}}&lt;br /&gt;
&lt;br /&gt;
See [[SFTP]] or [http://help.ubuntu.com/community/UsingTheTerminal Click here to find out how to use the terminal.]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Adding Team Kodi PPA repository ===&lt;br /&gt;
&lt;br /&gt;
Use the command line terminal in Ubuntu, and enter the following commands. Follow the prompts as you would any other software installation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt install software-properties-common&lt;br /&gt;
sudo add-apt-repository -y ppa:team-xbmc/ppa&lt;br /&gt;
sudo apt install kodi &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{#lst:Official_Ubuntu_PPA|repos}}&lt;br /&gt;
&lt;br /&gt;
Note that this PPA only provides builds for Ubuntu i386 and Ubuntu amd64 but &#039;&#039;not for Ubuntu armhf&#039;&#039;, which can run on a Raspberry Pi.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Installing binary add-ons (PVR, audio decoders, audio encoders, screensavers, visualizations, audio DSP) ===&lt;br /&gt;
{{See|Ubuntu binary add-ons}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Installing a development build ===&lt;br /&gt;
{{See also|Development builds}}&lt;br /&gt;
To install a beta/unstable version of {{Kodi}} you must first add the unstable repository, then install XBMC. Use &amp;lt;code&amp;gt;ppa:team-xbmc/xbmc-nightly&amp;lt;/code&amp;gt; for nightly builds and &amp;lt;code&amp;gt;ppa:team-xbmc/unstable&amp;lt;/code&amp;gt; for [[Development_builds|beta]] builds.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt install software-properties-common&lt;br /&gt;
sudo add-apt-repository -y ppa:team-xbmc/xbmc-nightly&lt;br /&gt;
sudo apt install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that if you have any addons (such as PVR clients), these must be updated as well (they will not be updated automatically):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt install kodi-pvr-mythtv&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Upgrading ===&lt;br /&gt;
&amp;lt;section begin=&amp;quot;Ubuntu upgrade&amp;quot; /&amp;gt;&lt;br /&gt;
To update Kodi when a new version is released, just do a general system/package or use the following commands in the terminal (or via [[SFTP]]):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt upgrade --with-new-pkgs&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;section end=&amp;quot;Ubuntu upgrade&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Downgrading to a stable version from a development version ===&lt;br /&gt;
If you install a nightly build or an unstable release and want to return to a stable release, follow these instructions:&lt;br /&gt;
&lt;br /&gt;
Remove the unstable or nightly PPA:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
apt-cache policy | grep -Eo &#039;team-xbmc/(unstable|nightly)&#039; | sudo xargs -r add-apt-repository -ryP&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then restore the stable version with the following commands:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo add-apt-repository ppa:team-xbmc/ppa&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get remove kodi kodi-x11&lt;br /&gt;
sudo apt-get install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Downgrading between newer and older stable versions ===&lt;br /&gt;
If you want to return to the next most recent stable release, follow these instructions:&lt;br /&gt;
&lt;br /&gt;
Remove the current stable packages and PPA:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt purge kodi\*&lt;br /&gt;
sudo add-apt-repository -r ppa:team-xbmc/ppa&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then install the &amp;quot;oldstable&amp;quot; version with the following commands:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo add-apt-repository -y ppa:team-xbmc/kodi-old&lt;br /&gt;
sudo apt install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Reverting to an earlier nightly ===&lt;br /&gt;
ALthough launchpad doesn&#039;t list older nightlies in their PPA, they are usually still available for download directly from the website. Visit the [https://launchpad.net/~team-xbmc/+archive/ubuntu/xbmc-nightly/+packages?field.name_filter=&amp;amp;field.status_filter=superseded&amp;amp;field.series_filter= xbmc-nightly repository index], where you will then have to download the appropriate .deb files and manually install them using &amp;lt;code&amp;gt;sudo dpkg -i [path to downloaded file]&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Uninstalling ===&lt;br /&gt;
If you need to uninstall Kodi and purge its global configuration files (for instance, in the attempt to troubleshoot a persistent crash or other errors), do so by using the first of the following commands. If that fails to solve the issue, you will likely need to remove your user settings folder with all of your settings and library data to return to a state equivalent to what existed before Kodi was first installed on the system. This will not delete any videos or music, but just the settings and library data itself, but it is still recommended to keep a backup of them in case it&#039;s discovered that they weren&#039;t at issue and you are able to effect another solution. An example of how to accomplish a backup and then deletion of your user settings is provided on the last two lines, the highlighted one being responsible for making the backup which can thereafter be found in your home folder with the filename kodi-backup_&#039;&#039;timestamp&#039;&#039;.tar.xz.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot; highlight=&amp;quot;2-3&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt purge kodi\*&lt;br /&gt;
tar cf - &amp;quot;${HOME}/.kodi/&amp;quot; | xz -z9e - &amp;gt;&amp;quot;${HOME}/kodi-backup_$(date +%m%d%y-%H%M).tar.xz&amp;quot;&lt;br /&gt;
rm -Ri &amp;quot;${HOME}/.{kodi,xbmc}/&amp;quot; &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Flatpak ==&lt;br /&gt;
&lt;br /&gt;
If you do not know whether your distro supports Flatpak, see https://flatpak.org/setup/ for install instructions.&lt;br /&gt;
&lt;br /&gt;
Then go to https://flathub.org/apps/tv.kodi.Kodi and hit the install button, or run the commands at the bottom of that page in a terminal.&lt;br /&gt;
&lt;br /&gt;
Updates arrive through the normal Flatpak mechanism:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Data location ===&lt;br /&gt;
&lt;br /&gt;
The Flatpak keeps all Kodi data, including your profile, add-ons and databases, under&lt;br /&gt;
&lt;br /&gt;
 ~/.var/app/tv.kodi.Kodi&lt;br /&gt;
&lt;br /&gt;
Back up that directory before switching channels or trying out something new. The stable and beta builds share it.&lt;br /&gt;
&lt;br /&gt;
=== Beta channel ===&lt;br /&gt;
&lt;br /&gt;
Kodi betas are published on the Flathub beta remote. Add it once:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak remote-add --if-not-exists flathub-beta https://dl.flathub.org/beta-repo/flathub-beta.flatpakrepo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then install the beta:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak install flathub-beta tv.kodi.Kodi//beta&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The beta installs as branch &amp;lt;code&amp;gt;beta&amp;lt;/code&amp;gt; alongside the stable version. A second entry labeled &amp;lt;code&amp;gt;Kodi (Beta)&amp;lt;/code&amp;gt; appears on your system. Both share the data location above, so make a backup first if you value your data. &amp;lt;code&amp;gt;flatpak update&amp;lt;/code&amp;gt; keeps both channels current.&lt;br /&gt;
&lt;br /&gt;
To go back to stable only:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak uninstall tv.kodi.Kodi//beta&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Blu-ray menus (BD-J) ===&lt;br /&gt;
&lt;br /&gt;
Most commercial Blu-ray discs use Java (BD-J) menus. Support is an optional extension so that the main app stays small. It is currently available on the beta channel:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak install flathub-beta tv.kodi.Kodi.bdj//beta&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Kodi does not open disc menus by default. Enable them under &#039;&#039;&#039;Settings → Player → Discs → Blu-ray playback mode → Show Blu-ray menu&#039;&#039;&#039;. The first Java menu can take ten to twenty seconds to appear while the runtime starts.&lt;br /&gt;
&lt;br /&gt;
=== Encrypted Blu-ray discs (AACS) ===&lt;br /&gt;
&lt;br /&gt;
Kodi ships libaacs but no keys. Place your key database inside the sandbox at&lt;br /&gt;
&lt;br /&gt;
 ~/.var/app/tv.kodi.Kodi/config/aacs/KEYDB.cfg&lt;br /&gt;
&lt;br /&gt;
The filename must be uppercase. Discs that were already decrypted when backed up don&#039;t need this.&lt;br /&gt;
&lt;br /&gt;
=== Log file ===&lt;br /&gt;
&lt;br /&gt;
For bug reports, the log is at &amp;lt;code&amp;gt;~/.var/app/tv.kodi.Kodi/data/kodi.log&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Reporting issues ===&lt;br /&gt;
&lt;br /&gt;
Problems specific to the Flatpak, such as missing permissions, add-ons that fail to load or hardware not being detected, go to https://github.com/flathub/tv.kodi.Kodi/issues. Include the log file above. General Kodi bugs belong on the [https://forum.kodi.tv/ Kodi forum] as usual.&lt;br /&gt;
&lt;br /&gt;
== Embedded/Appliance type install==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LibreELEC ===&lt;br /&gt;
{{main|LibreELEC}}&lt;br /&gt;
{{#lst:LibreELEC|intro}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Third Party Repositories ==&lt;br /&gt;
&amp;lt;!-- Please only list repos that use an internal ffmpeg library --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The instructions in this section are for unofficial Linux binaries that are un/semi supported by Team Kodi. Most of those binaries use system ffmpeg or even worse totally untested libav, which is not recommended for {{kodi}} as we support ffmpeg only.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Debian ===&lt;br /&gt;
Debian GNU/Linux ships its own &#039;&#039;&#039;Kodi from Debian&#039;&#039;&#039; flavor with following changes:&lt;br /&gt;
&lt;br /&gt;
* Only system libraries are used (no embedded third-party libraries except of libdvdread and libdvdnav)&lt;br /&gt;
* Old web interface (Chorus) is shipped to ensure Debian Free Software Guides (DFSG) compatibility&lt;br /&gt;
&lt;br /&gt;
as well as a subset of Kodi binary addons packaged in [https://qa.debian.org/developer.php?email=vasek.gello@gmail.com main repository of Debian].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Warning|&#039;&#039;&#039;Team Kodi offers no official support to &amp;quot;Kodi from Debian&amp;quot;!&#039;&#039;&#039; Please refer to links below for support!}}&lt;br /&gt;
&lt;br /&gt;
The support for Kodi from Debian is provided via the following channels:&lt;br /&gt;
# [https://forum.kodi.tv/showthread.php?tid=363611 Kodi from Debian - Support Thread] on Kodi forums&lt;br /&gt;
# [https://github.com/xbmc/xbmc/issues Github issues]&lt;br /&gt;
# [https://bugs.debian.org Debian Bug Tracker]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Checking installed and available Kodi packages ====&lt;br /&gt;
&lt;br /&gt;
You can check what versions of Kodi and its binary add-ons are installed with the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
dpkg -l | grep kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To check what versions of Kodi are available, use this command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
apt-cache policy kodi*&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Installing Kodi on Debian Unstable or Testing ====&lt;br /&gt;
&lt;br /&gt;
Installation of Kodi from Debian on Debian unstable (&amp;quot;sid&amp;quot;) and testing is straightforward:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To install Kodi binary add-ons (like &#039;&#039;&#039;PVR IPTV Simple&#039;&#039;&#039;, for example):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
sudo apt install kodi-pvr-iptvsimple&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE&#039;&#039;&#039;: Make sure user running Kodi belongs to the following groups&lt;br /&gt;
(for example, for user &#039;&#039;&#039;kodi&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
$ groups kodi&lt;br /&gt;
kodi: cdrom,audio,render,video,plugdev,users,dialout,dip,input&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This needs to be done to ensure Video Acceleration API (VA-API) is properly initialized during Kodi start-up and videos playing get acceleration using VAAPI and not VDPAU on Intel or AMD cards. To add user to groups, use the command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
usermod -a -G cdrom,audio,render,video,plugdev,users,dialout,dip,input kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Installing Kodi on Debian 10 &amp;quot;buster&amp;quot; ====&lt;br /&gt;
&lt;br /&gt;
By default, Debian buster users get Kodi 17.6 &amp;quot;Krypton&amp;quot;. However, it is possible to get Kodi 19.x &amp;quot;Matrix&amp;quot; from buster-backports.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To get Kodi 17.6 and the corresponding add-ons, use the method described in &#039;&#039;&#039;Debian Unstable or Testing&#039;&#039;&#039; section above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To get Kodi 19.x and the corresponding add-ons from Debian Backports:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
# Add Debian Backports repository for Debian 10 &amp;quot;buster&amp;quot;&lt;br /&gt;
if ! apt-cache policy 2&amp;gt;/dev/null | grep -q &amp;quot;http://.*buster-backports&amp;quot;; then&lt;br /&gt;
  echo &amp;quot;deb http://deb.debian.org/debian/ buster-backports main contrib&amp;quot; | sudo tee /etc/apt/sources.list.d/buster-backports.list&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# Update APT lists&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
# Install Kodi from backports:&lt;br /&gt;
sudo apt-get install {kodi,kodi-bin,kodi-data,kodi-repository-kodi,libspdlog1}/buster-backports&lt;br /&gt;
&lt;br /&gt;
# (OPTIONAL) Install Kodi binary add-ons (for example, &#039;PVR IPTV Simple&#039;):&lt;br /&gt;
sudo apt-get install kodi-pvr-iptvsimple/buster-backports&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Installing Kodi on Debian 9 &amp;quot;stretch&amp;quot; ====&lt;br /&gt;
&lt;br /&gt;
By default, Debian stretch users get Kodi 17.1 &amp;quot;Krypton&amp;quot;. No higher version is packaged in backports.&lt;br /&gt;
&lt;br /&gt;
To get Kodi 17.1 and the corresponding add-ons, use the method described in &#039;&#039;&#039;Debian Unstable or Testing&#039;&#039;&#039; section above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Raspberry Pi OS ===&lt;br /&gt;
{{see also|HOW-TO:Install Kodi on Raspberry Pi}}&lt;br /&gt;
Installing on Raspberry Pi OS is done with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
sudo apt-get install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Upgrading on Raspberry Pi OS is done with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get upgrade&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installation from source ==&lt;br /&gt;
If distribution packages are not available, or you need a newer version, or specific features enabled, then you will most likely need to compile from source. See our &#039;&#039;&#039;[[Compiling Kodi]]&#039;&#039;&#039; guide.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Updated|20}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Installation|Linux]]&lt;/div&gt;</summary>
		<author><name>Kelmo</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=HOW-TO:Install_Kodi_for_Linux&amp;diff=264451</id>
		<title>HOW-TO:Install Kodi for Linux</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=HOW-TO:Install_Kodi_for_Linux&amp;diff=264451"/>
		<updated>2026-09-11T09:33:02Z</updated>

		<summary type="html">&lt;p&gt;Kelmo: update flatpak install section&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Mininav|[[Linux]] {{L2| [[Installing]] }} }}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing Kodi on Ubuntu-based distributions with Team Kodi PPA ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Please note that currently the Team Kodi PPA is not maintained due to the previous sole maintainer stepping away from the responsibility. &#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
For now the only options are building from source, using Flatpak or a distro such as Debian which includes Kodi in their distribution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Warning|Ubuntu releases 16.04 LTS (&amp;quot;Xenial&amp;quot;) or later, respectively, include their own Kodi builds in their official package repositories, customized to satisfy their interpretations of what is acceptable under their open-source mandates. If you have installed your distribution&#039;s Kodi packages, please purge them using the command &amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot; inline&amp;gt;sudo apt purge kodi\*&amp;lt;/syntaxhighlight&amp;gt; before trying to install team-xbmc PPA packages.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Warning|Releases from Team Kodi PPA are NOT compatible with Debian GNU / Linux and distributions built on top of Debian&#039;s binary package repositories! Please refer to &#039;&#039;&#039;Debian&#039;&#039;&#039; section of this page for installation instructions on such distributions!}}&lt;br /&gt;
&lt;br /&gt;
See [[SFTP]] or [http://help.ubuntu.com/community/UsingTheTerminal Click here to find out how to use the terminal.]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Adding Team Kodi PPA repository ===&lt;br /&gt;
&lt;br /&gt;
Use the command line terminal in Ubuntu, and enter the following commands. Follow the prompts as you would any other software installation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt install software-properties-common&lt;br /&gt;
sudo add-apt-repository -y ppa:team-xbmc/ppa&lt;br /&gt;
sudo apt install kodi &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{#lst:Official_Ubuntu_PPA|repos}}&lt;br /&gt;
&lt;br /&gt;
Note that this PPA only provides builds for Ubuntu i386 and Ubuntu amd64 but &#039;&#039;not for Ubuntu armhf&#039;&#039;, which can run on a Raspberry Pi.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Installing binary add-ons (PVR, audio decoders, audio encoders, screensavers, visualizations, audio DSP) ===&lt;br /&gt;
{{See|Ubuntu binary add-ons}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Installing a development build ===&lt;br /&gt;
{{See also|Development builds}}&lt;br /&gt;
To install a beta/unstable version of {{Kodi}} you must first add the unstable repository, then install XBMC. Use &amp;lt;code&amp;gt;ppa:team-xbmc/xbmc-nightly&amp;lt;/code&amp;gt; for nightly builds and &amp;lt;code&amp;gt;ppa:team-xbmc/unstable&amp;lt;/code&amp;gt; for [[Development_builds|beta]] builds.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt install software-properties-common&lt;br /&gt;
sudo add-apt-repository -y ppa:team-xbmc/xbmc-nightly&lt;br /&gt;
sudo apt install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that if you have any addons (such as PVR clients), these must be updated as well (they will not be updated automatically):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt install kodi-pvr-mythtv&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Upgrading ===&lt;br /&gt;
&amp;lt;section begin=&amp;quot;Ubuntu upgrade&amp;quot; /&amp;gt;&lt;br /&gt;
To update Kodi when a new version is released, just do a general system/package or use the following commands in the terminal (or via [[SFTP]]):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt upgrade --with-new-pkgs&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;section end=&amp;quot;Ubuntu upgrade&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Downgrading to a stable version from a development version ===&lt;br /&gt;
If you install a nightly build or an unstable release and want to return to a stable release, follow these instructions:&lt;br /&gt;
&lt;br /&gt;
Remove the unstable or nightly PPA:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
apt-cache policy | grep -Eo &#039;team-xbmc/(unstable|nightly)&#039; | sudo xargs -r add-apt-repository -ryP&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then restore the stable version with the following commands:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo add-apt-repository ppa:team-xbmc/ppa&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get remove kodi kodi-x11&lt;br /&gt;
sudo apt-get install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Downgrading between newer and older stable versions ===&lt;br /&gt;
If you want to return to the next most recent stable release, follow these instructions:&lt;br /&gt;
&lt;br /&gt;
Remove the current stable packages and PPA:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt purge kodi\*&lt;br /&gt;
sudo add-apt-repository -r ppa:team-xbmc/ppa&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then install the &amp;quot;oldstable&amp;quot; version with the following commands:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
sudo add-apt-repository -y ppa:team-xbmc/kodi-old&lt;br /&gt;
sudo apt install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Reverting to an earlier nightly ===&lt;br /&gt;
ALthough launchpad doesn&#039;t list older nightlies in their PPA, they are usually still available for download directly from the website. Visit the [https://launchpad.net/~team-xbmc/+archive/ubuntu/xbmc-nightly/+packages?field.name_filter=&amp;amp;field.status_filter=superseded&amp;amp;field.series_filter= xbmc-nightly repository index], where you will then have to download the appropriate .deb files and manually install them using &amp;lt;code&amp;gt;sudo dpkg -i [path to downloaded file]&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Uninstalling ===&lt;br /&gt;
If you need to uninstall Kodi and purge its global configuration files (for instance, in the attempt to troubleshoot a persistent crash or other errors), do so by using the first of the following commands. If that fails to solve the issue, you will likely need to remove your user settings folder with all of your settings and library data to return to a state equivalent to what existed before Kodi was first installed on the system. This will not delete any videos or music, but just the settings and library data itself, but it is still recommended to keep a backup of them in case it&#039;s discovered that they weren&#039;t at issue and you are able to effect another solution. An example of how to accomplish a backup and then deletion of your user settings is provided on the last two lines, the highlighted one being responsible for making the backup which can thereafter be found in your home folder with the filename kodi-backup_&#039;&#039;timestamp&#039;&#039;.tar.xz.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot; highlight=&amp;quot;2-3&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt purge kodi\*&lt;br /&gt;
tar cf - &amp;quot;${HOME}/.kodi/&amp;quot; | xz -z9e - &amp;gt;&amp;quot;${HOME}/kodi-backup_$(date +%m%d%y-%H%M).tar.xz&amp;quot;&lt;br /&gt;
rm -Ri &amp;quot;${HOME}/.{kodi,xbmc}/&amp;quot; &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Flatpak ==&lt;br /&gt;
&lt;br /&gt;
If you do not know whether your distro supports Flatpak, see https://flatpak.org/setup/ for install instructions.&lt;br /&gt;
&lt;br /&gt;
Then go to https://flathub.org/apps/tv.kodi.Kodi and hit the install button, or run the commands at the bottom of that page in a terminal.&lt;br /&gt;
&lt;br /&gt;
Updates arrive through the normal Flatpak mechanism:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak update&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Data location ===&lt;br /&gt;
&lt;br /&gt;
The Flatpak keeps all Kodi data, including your profile, add-ons and databases, under&lt;br /&gt;
&lt;br /&gt;
 ~/.var/app/tv.kodi.Kodi&lt;br /&gt;
&lt;br /&gt;
Back up that directory before switching channels or trying out something new. The stable and beta builds share it.&lt;br /&gt;
&lt;br /&gt;
=== Beta channel ===&lt;br /&gt;
&lt;br /&gt;
Kodi betas are published on the Flathub beta remote. Add it once:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak remote-add --if-not-exists flathub-beta https://dl.flathub.org/beta-repo/flathub-beta.flatpakrepo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then install the beta:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak install flathub-beta tv.kodi.Kodi//beta&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The beta installs as branch &amp;lt;code&amp;gt;beta&amp;lt;/code&amp;gt; alongside the stable version. A second entry labeled &amp;lt;code&amp;gt;Kodi (Beta)&amp;lt;/code&amp;gt; appears on your system. Both share the data location above, so make a backup first if you value your data. &amp;lt;code&amp;gt;flatpak update&amp;lt;/code&amp;gt; keeps both channels current.&lt;br /&gt;
&lt;br /&gt;
To go back to stable only:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak uninstall tv.kodi.Kodi//beta&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Blu-ray menus (BD-J) ===&lt;br /&gt;
&lt;br /&gt;
Most commercial Blu-ray discs use Java (BD-J) menus. Support is an optional extension so that the main app stays small. It is currently available on the beta channel:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;shell&amp;quot;&amp;gt;&lt;br /&gt;
flatpak install flathub-beta tv.kodi.Kodi.bdj//beta&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Kodi does not open disc menus by default. Enable them under &#039;&#039;&#039;Settings → Player → Discs → Blu-ray playback mode → Show Blu-ray menu&#039;&#039;&#039;. The first Java menu can take ten to twenty seconds to appear while the runtime starts.&lt;br /&gt;
&lt;br /&gt;
=== Encrypted Blu-ray discs (AACS) ===&lt;br /&gt;
&lt;br /&gt;
Kodi ships libaacs but no keys. Place your key database inside the sandbox at&lt;br /&gt;
&lt;br /&gt;
 ~/.var/app/tv.kodi.Kodi/config/aacs/KEYDB.cfg&lt;br /&gt;
&lt;br /&gt;
=== Log file ===&lt;br /&gt;
&lt;br /&gt;
For bug reports, the log is at &amp;lt;code&amp;gt;~/.var/app/tv.kodi.Kodi/data/kodi.log&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Embedded/Appliance type install==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LibreELEC ===&lt;br /&gt;
{{main|LibreELEC}}&lt;br /&gt;
{{#lst:LibreELEC|intro}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Third Party Repositories ==&lt;br /&gt;
&amp;lt;!-- Please only list repos that use an internal ffmpeg library --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The instructions in this section are for unofficial Linux binaries that are un/semi supported by Team Kodi. Most of those binaries use system ffmpeg or even worse totally untested libav, which is not recommended for {{kodi}} as we support ffmpeg only.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Debian ===&lt;br /&gt;
Debian GNU/Linux ships its own &#039;&#039;&#039;Kodi from Debian&#039;&#039;&#039; flavor with following changes:&lt;br /&gt;
&lt;br /&gt;
* Only system libraries are used (no embedded third-party libraries except of libdvdread and libdvdnav)&lt;br /&gt;
* Old web interface (Chorus) is shipped to ensure Debian Free Software Guides (DFSG) compatibility&lt;br /&gt;
&lt;br /&gt;
as well as a subset of Kodi binary addons packaged in [https://qa.debian.org/developer.php?email=vasek.gello@gmail.com main repository of Debian].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Warning|&#039;&#039;&#039;Team Kodi offers no official support to &amp;quot;Kodi from Debian&amp;quot;!&#039;&#039;&#039; Please refer to links below for support!}}&lt;br /&gt;
&lt;br /&gt;
The support for Kodi from Debian is provided via the following channels:&lt;br /&gt;
# [https://forum.kodi.tv/showthread.php?tid=363611 Kodi from Debian - Support Thread] on Kodi forums&lt;br /&gt;
# [https://github.com/xbmc/xbmc/issues Github issues]&lt;br /&gt;
# [https://bugs.debian.org Debian Bug Tracker]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Checking installed and available Kodi packages ====&lt;br /&gt;
&lt;br /&gt;
You can check what versions of Kodi and its binary add-ons are installed with the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
dpkg -l | grep kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To check what versions of Kodi are available, use this command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
apt-cache policy kodi*&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Installing Kodi on Debian Unstable or Testing ====&lt;br /&gt;
&lt;br /&gt;
Installation of Kodi from Debian on Debian unstable (&amp;quot;sid&amp;quot;) and testing is straightforward:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
sudo apt update&lt;br /&gt;
sudo apt install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To install Kodi binary add-ons (like &#039;&#039;&#039;PVR IPTV Simple&#039;&#039;&#039;, for example):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
sudo apt install kodi-pvr-iptvsimple&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE&#039;&#039;&#039;: Make sure user running Kodi belongs to the following groups&lt;br /&gt;
(for example, for user &#039;&#039;&#039;kodi&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
$ groups kodi&lt;br /&gt;
kodi: cdrom,audio,render,video,plugdev,users,dialout,dip,input&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This needs to be done to ensure Video Acceleration API (VA-API) is properly initialized during Kodi start-up and videos playing get acceleration using VAAPI and not VDPAU on Intel or AMD cards. To add user to groups, use the command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
usermod -a -G cdrom,audio,render,video,plugdev,users,dialout,dip,input kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Installing Kodi on Debian 10 &amp;quot;buster&amp;quot; ====&lt;br /&gt;
&lt;br /&gt;
By default, Debian buster users get Kodi 17.6 &amp;quot;Krypton&amp;quot;. However, it is possible to get Kodi 19.x &amp;quot;Matrix&amp;quot; from buster-backports.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To get Kodi 17.6 and the corresponding add-ons, use the method described in &#039;&#039;&#039;Debian Unstable or Testing&#039;&#039;&#039; section above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To get Kodi 19.x and the corresponding add-ons from Debian Backports:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
# Add Debian Backports repository for Debian 10 &amp;quot;buster&amp;quot;&lt;br /&gt;
if ! apt-cache policy 2&amp;gt;/dev/null | grep -q &amp;quot;http://.*buster-backports&amp;quot;; then&lt;br /&gt;
  echo &amp;quot;deb http://deb.debian.org/debian/ buster-backports main contrib&amp;quot; | sudo tee /etc/apt/sources.list.d/buster-backports.list&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# Update APT lists&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
&lt;br /&gt;
# Install Kodi from backports:&lt;br /&gt;
sudo apt-get install {kodi,kodi-bin,kodi-data,kodi-repository-kodi,libspdlog1}/buster-backports&lt;br /&gt;
&lt;br /&gt;
# (OPTIONAL) Install Kodi binary add-ons (for example, &#039;PVR IPTV Simple&#039;):&lt;br /&gt;
sudo apt-get install kodi-pvr-iptvsimple/buster-backports&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Installing Kodi on Debian 9 &amp;quot;stretch&amp;quot; ====&lt;br /&gt;
&lt;br /&gt;
By default, Debian stretch users get Kodi 17.1 &amp;quot;Krypton&amp;quot;. No higher version is packaged in backports.&lt;br /&gt;
&lt;br /&gt;
To get Kodi 17.1 and the corresponding add-ons, use the method described in &#039;&#039;&#039;Debian Unstable or Testing&#039;&#039;&#039; section above.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Raspberry Pi OS ===&lt;br /&gt;
{{see also|HOW-TO:Install Kodi on Raspberry Pi}}&lt;br /&gt;
Installing on Raspberry Pi OS is done with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
sudo apt-get install kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Upgrading on Raspberry Pi OS is done with:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get upgrade&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installation from source ==&lt;br /&gt;
If distribution packages are not available, or you need a newer version, or specific features enabled, then you will most likely need to compile from source. See our &#039;&#039;&#039;[[Compiling Kodi]]&#039;&#039;&#039; guide.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Updated|20}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:How-to]]&lt;br /&gt;
[[Category:Installation|Linux]]&lt;/div&gt;</summary>
		<author><name>Kelmo</name></author>
	</entry>
</feed>