INTERACT FORUM

More => Old Versions => JRiver Media Center 21 for Linux => Topic started by: Awesome Donkey on August 10, 2015, 06:06:13 pm

Title: [How-To] Add the APT Repository for Media Center 21
Post by: Awesome Donkey on August 10, 2015, 06:06:13 pm
With the release of Media Center 21, the APT Repository has been updated and changed for Media Center 21. What does this mean? If you're already using the APT Repository for Media Center 20 and you're going to replace it with Media Center 21, you need to update your sources. Otherwise if you're doing a clean install of Media Center 21 you can skip step 0!

Step 0 - Replacing Media Center 20 with Media Center 21:

First make a backup of your Media Center 20 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 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);

Code: [Select]
sudo rm /etc/apt/sources.list.d/mediacenter20.list
Now assuming you made a backup of your library, lets remove Media Center 20 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);

Code: [Select]
sudo apt-get remove mediacenter20
Then...

Code: [Select]
sudo rm -rf '/usr/lib/jriver/Media Center 20'
And finally...

Code: [Select]
sudo rm -rf '~/.jriver/Media Center 20'
This will completely remove Media Center 20 - now you're ready to install Media Center 21!


Step 1 - Adding the JRiver Media Center 21 APT Repository:

The APT repository is required to install Media Center 21 and keep Media Center 21 updated with every new release.

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);

Code: [Select]
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 so either type one the following commands or copy and paste the command in and press Enter;

If you're using 64-bit Debian Jessie (or any derivatives like Ubuntu, Linux Mint, etc.):
Code: [Select]
sudo wget http://dist.jriver.com/latest/mediacenter/mediacenter21jessie.list -O /etc/apt/sources.list.d/mediacenter21.list
Or...

If you're using 32-bit Debian Wheezy (or any derivatives like Ubuntu, Linux Mint, etc.):
Code: [Select]
sudo wget http://dist.jriver.com/latest/mediacenter/mediacenter21.list -O /etc/apt/sources.list.d/mediacenter21.list
Or...

If you're using an ARM device (like a Raspberry Pi) and distro like Raspbian:
Code: [Select]
sudo wget http://dist.jriver.com/latest/mediacenter/mediacenter21native.list -O /etc/apt/sources.list.d/mediacenter21.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;

Code: [Select]
sudo apt-get update
That's it! Now we can install Media Center 21...


Step 2 - Installing Media Center 21:

You can now install Media Center 21 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);

Code: [Select]
sudo apt-get install mediacenter21
And that's it, Media Center 21 should be installed now. Hope this helps people getting the Media Center 21 APT repository added and working on Debian, Ubuntu, Linux Mint, etc.
Title: Re: [How-To] Add the APT Repository for Media Center 21
Post by: astromo on November 06, 2015, 05:50:32 pm
Thanks for the guide. Awesome as always.

I ran this for an Arm device (cubox-i4 pro (http://solid-run.com/freescale-imx6-family/cubox-i/cubox-i-specifications/)) and this is what I get when I check my distro:
Code: [Select]
:~$ cat /etc/*-release
PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
NAME="Debian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=debian

When I get to the final step of updating the package lists, I get this message:
Quote
W: Duplicate sources.list entry http://dist.jriver.com/latest/mediacenter/ wheezy/main armhf Packages (/var/lib/apt/lists/dist.jriver.com_latest_mediacenter_dists_wheezy_main_binary-armhf_Packages)
W: You may want to run apt-get update to correct these problems
Note that re-running:
Code: [Select]
sudo apt-get updategenerates the same message.

Thoughts? Comments? How to fix?

Thanks in advance.

EDIT:
As a follow up, MC appears to have installed just fine. There is one issue but I don't think that it's relevant here. I'll comment on that separately.
Title: Re: [How-To] Add the APT Repository for Media Center 21
Post by: Awesome Donkey on November 06, 2015, 06:44:12 pm
Sounds like the JRiver entry in /etc/apt/sources.list file is duplicated.
Title: Re: [How-To] Add the APT Repository for Media Center 21
Post by: noay on November 09, 2015, 12:46:23 pm
When I follow the step to Add the APT Repository for Media Center 21 I receive the enclosed (as image) error. Is there any error. Comments? How to fix?
Title: Re: [How-To] Add the APT Repository for Media Center 21
Post by: bob on November 09, 2015, 12:54:43 pm
When I follow the step to Add the APT Repository for Media Center 21 I receive the enclosed (as image) error. Is there any error. Comments? How to fix?
Did you do this part of the instructions for adding the JRiver repository public key?

wget -q "http://dist.jriver.com/mediacenter@jriver.com.gpg.key" -O- | sudo apt-key add -
Title: Re: [How-To] Add the APT Repository for Media Center 21
Post by: noay on November 09, 2015, 02:20:34 pm
yes I forgot the first part. Sorry, I am a bit of a new by, Now it updated to 21.0.16, Thank you.