<commit_before>.. _debian-install:

*************
Debian/Ubuntu
*************

If you run a Debian based Linux distribution, like Ubuntu or Raspbian, the
easiest way to install Mopidy is from the
`Mopidy APT archive <https://apt.mopidy.com/>`_.
When installing from the APT archive, you will automatically get updates to
Mopidy in the same way as you get updates to the rest of your system.

If you're on a Raspberry Pi running Debian or Raspbian, the following
instructions will work for you as well. If you're setting up a Raspberry Pi
from scratch, we have a guide for installing Debian/Raspbian and Mopidy. See
:ref:`raspberrypi-installation`.


Distribution and architecture support
=====================================

The packages in the apt.mopidy.com archive are built for:

- **Debian 10 (Buster)**,
  which also works for Raspbian Buster and Ubuntu 19.10 and newer.

The few packages that are compiled are available for multiple CPU
architectures:

- **amd64**
- **i386**
- **armhf**, compatible with all Raspberry Pi models.

This is just what we currently support, not a promise to continue to support
the same in the future. We *will* drop support for older distributions and
architectures when supporting those stops us from moving forward with the
project.


Install from apt.mopidy.com
===========================

#. Add the archive's GPG key::

       sudo mkdir -p /usr/local/share/keyrings
       wget -q -O - https://apt.mopidy.com/mopidy.gpg | gpg --dearmor | \
         sudo tee /usr/local/share/keyrings/mopidy-archive-keyring.gpg

#. Add the APT repo to your package sources::
<commit_msg>Simplify Debian repo key installation<commit_after>.. _debian-install:

*************
Debian/Ubuntu
*************

If you run a Debian based Linux distribution, like Ubuntu or Raspbian, the
easiest way to install Mopidy is from the
`Mopidy APT archive <https://apt.mopidy.com/>`_.
When installing from the APT archive, you will automatically get updates to
Mopidy in the same way as you get updates to the rest of your system.

If you're on a Raspberry Pi running Debian or Raspbian, the following
instructions will work for you as well. If you're setting up a Raspberry Pi
from scratch, we have a guide for installing Debian/Raspbian and Mopidy. See
:ref:`raspberrypi-installation`.


Distribution and architecture support
=====================================

The packages in the apt.mopidy.com archive are built for:

- **Debian 10 (Buster)**,
  which also works for Raspbian Buster and Ubuntu 19.10 and newer.

The few packages that are compiled are available for multiple CPU
architectures:

- **amd64**
- **i386**
- **armhf**, compatible with all Raspberry Pi models.

This is just what we currently support, not a promise to continue to support
the same in the future. We *will* drop support for older distributions and
architectures when supporting those stops us from moving forward with the
project.


Install from apt.mopidy.com
===========================

#. Add the archive's GPG key::

       sudo mkdir -p /usr/local/share/keyrings
       sudo wget -q -O /usr/local/share/keyrings/mopidy-archive-keyring.gpg \
         https://apt.mopidy.com/mopidy.gpg

#. Add the APT repo to your package sources::

{'fraction_non_alphanumeric': 0.12275819418676562, 'fraction_numerical': 0.006802721088435374, 'mean_word_length': 4.086477987421383, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '94747', 'n_tokens_mistral': 987, 'n_tokens_neox': 894, 'n_words': 421}