With the beta release of Media Center 22, the APT Repository has been updated and changed for Media Center 22. What does this mean? If you're already using the APT Repository for Media Center 20 or Media Center 21 and you're going to replace it with Media Center 22, you'll need to update your sources. Otherwise if you're doing a clean install of Media Center 22 you can skip step 0!
Step 0 - Replacing Media Center 20/21 with Media Center 22:
First make a backup of your Media Center 20/21 library and save it to a place where you can find it, e.g. desktop. This is VERY important!
Now we've got to remove the old mediacenter20.list and/or mediacenter21.list file from the /etc/apt/sources.list.d/ directory. Open a Terminal (by either pressing CTRL+ALT+T or by searching for the Terminal in your desktop environment) and either type the following command or copy and paste the command in and press Enter (you *may* be prompted for your password);
For Media Center 20:
sudo rm /etc/apt/sources.list.d/mediacenter20.list
For Media Center 21:
sudo rm /etc/apt/sources.list.d/mediacenter21.list
Now assuming you made a backup of your library, lets remove Media Center 20/21 completely. With a Terminal open (by either pressing CTRL+ALT+T or by searching for the Terminal in your desktop environment) and either type the following commands one-by-one or copy and paste the commands in one-by-one and press Enter (you *may* be prompted for your password);
For Media Center 20:
sudo apt-get remove mediacenter20
For Media Center 21:
sudo apt-get remove mediacenter21
Then...
For Media Center 20:
sudo rm -rf '/usr/lib/jriver/Media Center 20'
For Media Center 21:
sudo rm -rf '/usr/lib/jriver/Media Center 21'
And finally...
For Media Center 20:
sudo rm -rf '~/.jriver/Media Center 20'
For Media Center 21:
sudo rm -rf '~/.jriver/Media Center 21'
This will completely remove Media Center 20/21 - now you're ready to install Media Center 22!
Step 1 - Adding the JRiver Media Center 22 APT Repository:
The APT repository is required to install Media Center 22 and keep Media Center 22 updated with every new release. There's three available repositories; Stable, Latest and Beta. Decide for yourself which one you want to use - descriptions of each are below.
NOTE: You can run the beta repo alongside either the latest or stable repos if desired (for beta testing, etc.). Don't try to use both the latest and stable repos at the same time - only choose and use one of them!
First, open a Terminal (by either pressing CTRL+ALT+T or by searching for the Terminal in your desktop environment) and either type the following command or copy and paste the command in and press Enter (you *may* be prompted for your password);
wget -q "http://dist.jriver.com/mediacenter@jriver.com.gpg.key" -O- | sudo apt-key add -
Next, with the Terminal still open, we need to download and add the correct mediacenter.list file to /etc/apt/sources.list.d/ depending if you're using 32-bit or 64-bit. Also, you can pick which repository you want to use (Stable, Latest or Beta - choose only one!) so either type one the following commands or copy and paste the command in and press Enter;
Media Center 22 (Stable) Repository:
This repository is using the latest stable release of Media Center 22 and is currently the default repository that should be used. It may be out-of-date compared to the Latest repository, however these builds have been thoroughly tested and are considered stable.
If you're using 64-bit Debian Jessie (or any derivatives like Ubuntu, Linux Mint, etc.):
sudo wget http://dist.jriver.com/stable/mediacenter/mediacenter22jessie.list -O /etc/apt/sources.list.d/mediacenter22.list
Or...
If you're using 32-bit Debian Wheezy (or any derivatives like Ubuntu, Linux Mint, etc.):
sudo wget http://dist.jriver.com/stable/mediacenter/mediacenter22.list -O /etc/apt/sources.list.d/mediacenter22.list
Or...
If you're using an ARM device (like a Raspberry Pi) and distro like Raspbian:
sudo wget http://dist.jriver.com/stable/mediacenter/mediacenter22native.list -O /etc/apt/sources.list.d/mediacenter22.list
Media Center 22 (Latest) Repository:
This repository is using the latest up-to-date release of Media Center 22. There *may* be instability issues!
If you're using 64-bit Debian Jessie (or any derivatives like Ubuntu, Linux Mint, etc.):
sudo wget http://dist.jriver.com/latest/mediacenter/mediacenter22jessie.list -O /etc/apt/sources.list.d/mediacenter22.list
Or...
If you're using 32-bit Debian Wheezy (or any derivatives like Ubuntu, Linux Mint, etc.):
sudo wget http://dist.jriver.com/latest/mediacenter/mediacenter22.list -O /etc/apt/sources.list.d/mediacenter22.list
Or...
If you're using an ARM device (like a Raspberry Pi) and distro like Raspbian:
sudo wget http://dist.jriver.com/latest/mediacenter/mediacenter22native.list -O /etc/apt/sources.list.d/mediacenter22.list
Media Center 22 (Beta) Repository:
This repository is for beta builds - not intended for users who prefer stability! These builds are likely buggy, may crash, etc.
If you're using 64-bit Debian Jessie (or any derivatives like Ubuntu, Linux Mint, etc.):
sudo wget http://dist.jriver.com/beta/mediacenter/mediacenter22jessie.list -O /etc/apt/sources.list.d/mediacenter22beta.list
Or...
If you're using 32-bit Debian Wheezy (or any derivatives like Ubuntu, Linux Mint, etc.):
sudo wget http://dist.jriver.com/beta/mediacenter/mediacenter22.list -O /etc/apt/sources.list.d/mediacenter22beta.list
Or...
If you're using an ARM device (like a Raspberry Pi) and distro like Raspbian:
sudo wget http://dist.jriver.com/beta/mediacenter/mediacenter22native.list -O /etc/apt/sources.list.d/mediacenter22beta.list
Finally, we need to reload the packages list, so with the Terminal still open either type the following command or copy and paste the command in and press Enter;
sudo apt-get update
That's it! Now we can install Media Center 22...
Step 2 - Installing Media Center 22:
You can now install Media Center 22 by opening a Terminal (by either pressing CTRL+ALT+T or by searching for the terminal in your desktop environment) or re-use the Terminal from the previous step. Next either type the following command or copy and paste the command in and press Enter (you *may* be prompted for your password);
sudo apt-get install mediacenter22
And that's it, Media Center 22 should be installed now. Hope this helps people getting the Media Center 22 APT repository added and working on Debian, Ubuntu, Linux Mint, etc.