INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: [How-To] Add the APT Repository for Media Center 25  (Read 4604 times)

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7360
  • The color of Spring...
[How-To] Add the APT Repository for Media Center 25
« on: March 22, 2019, 01:36:18 pm »

NOTE: This only applies to Debian and other Debian-based Linux distros, including Ubuntu, Linux Mint, elementary OS and any other distros that use APT. Fedora, Arch Linux, Manjaro, OpenSUSE, etc. do NOT use APT, so do not try to use this with those distros!

Here we go again! As always, with the release of Media Center 25 onto the latest repo, the APT Repository has been updated and changed for Media Center 25. What does this mean? If you're already using the APT Repository for Media Center 20, Media Center 21, Media Center 22, Media Center 23 or Media Center 24 and you're going to replace it with Media Center 25, you'll need to update your sources. Otherwise if you're doing a clean install of Media Center 25 you can skip step 0!

Step 0 - Optional - Replacing Media Center 20/21/22/23/24 with Media Center 25:

This step is completely optional. If you want to keep older Media Center builds installed alongside Media Center 25, you can without issue! However, if you want to completely replace an older Media Center with a newer Media Center 25 (and leave no trace of the old Media Center versions around), you can follow this step and go onto step 1! NOTE: Always do a library backup of any older Media Center versions (save to the desktop or somewhere you can find it) if you're going to proceed with this step!

Still wanting to do a clean install with no older Media Center builds installed? Okay, first make a backup of your Media Center 20/21/22/23/24 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 and/or mediacenter22.list and/or mediacenter23.list and/or mediacenter24.list file from the /etc/apt/sources.list.d/ directory. NOTE: If you're also using the beta repo, repeat the step below and add beta at the end, e.g. mediacenter24beta.list to remove the older beta repo files as well! Okay, now 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 23:

Code: [Select]
sudo rm /etc/apt/sources.list.d/mediacenter23.list
For Media Center 24:

Code: [Select]
sudo rm /etc/apt/sources.list.d/mediacenter24.list
NOTE: I only listed Media Center 23 and 24 here. If you're using an older version than this, simply adjust the command above to your needs!

Now assuming you made a backup of your library, lets remove Media Center 20/21/22/23/24 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 23:

Code: [Select]
sudo apt-get remove mediacenter23
For Media Center 24:

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

For Media Center 23:

Code: [Select]
sudo rm -rf '/usr/lib/jriver/Media Center 23'
For Media Center 24:

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

For Media Center 23:

Code: [Select]
sudo rm -rf '~/.jriver/Media Center 23'
For Media Center 24:

Code: [Select]
sudo rm -rf '~/.jriver/Media Center 24'
NOTE: Again, like above, I only listed Media Center 23 and 24. If you're using an older version than these, adjust the commands above to your needs!!

This will completely remove Media Center 20/21/22/23/24 - now you're ready to install Media Center 25!


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

The APT repository is required to install Media Center 25 and keep Media Center 25 updated with every new release. There's three available repositories; Latest, Stable 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);

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 the /etc/apt/sources.list.d/ directory. Also, you can pick which repository you want to use (Latest, Stable or Beta - choose only one!) so either type one the following commands or copy and paste the command in and press Enter;


Media Center 25 (Latest) Repository:

This repository is using the latest up-to-date release of Media Center 25. There *may* be instability issues! NOTE: I'd personally recommend using the latest repo unless you're intending to run a "stable" system (e.g. HTPC or a Raspberry Pi).

Code: [Select]
sudo wget http://dist.jriver.com/latest/mediacenter/mediacenter25.list -O /etc/apt/sources.list.d/mediacenter25.list

Media Center 25 (Stable) Repository:

This repository is using the latest stable release of Media Center 25. It may be out-of-date compared to the Latest repository and is updated every few months (so you might have to wait for bug fixes), however these builds have been thoroughly tested and are considered stable.

Code: [Select]
sudo wget http://dist.jriver.com/stable/mediacenter/mediacenter25.list -O /etc/apt/sources.list.d/mediacenter25.list

Media Center 25 (Beta) Repository:

This repository is for beta builds - not intended for users who prefer stability! These builds are likely buggy, may crash, etc. But this repo can be used alongside either the stable or latest repos!

Code: [Select]
sudo wget http://dist.jriver.com/beta/mediacenter/mediacenter25.list -O /etc/apt/sources.list.d/mediacenter25beta.list
That's it! Now we can install Media Center 25...


Step 2 - Installing Media Center 25:

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
You can now install Media Center 25 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 mediacenter25
And that's it, Media Center 25 should be installed now. Hope this helps people getting the Media Center 25 APT repository added and working on Debian, Ubuntu, Linux Mint, etc.
Logged
I don't work for JRiver... I help keep the forums safe from Viagra and other sources of sketchy pharmaceuticals.

Windows 11 2023 Update (23H2) 64-bit + Ubuntu 23.10 Mantic Minotaur 64-bit | Windows 11 2023 Update (23H2) 64-bit (Intel N305 Fanless NUC 16GB RAM/256GB NVMe SSD)
JRiver Media Center 32 (Windows + Linux) | Topping D50s DAC | Edifier R2000DB Bookshelf Speakers

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7360
  • The color of Spring...
Re: [How-To] Add the APT Repository for Media Center 25
« Reply #1 on: March 22, 2019, 01:47:11 pm »

At the current time, I would advise not trying to use the stable repo, as there's no stable build available yet so it's basically an empty repo. Just use the latest and/or beta repo(s). :)
Logged
I don't work for JRiver... I help keep the forums safe from Viagra and other sources of sketchy pharmaceuticals.

Windows 11 2023 Update (23H2) 64-bit + Ubuntu 23.10 Mantic Minotaur 64-bit | Windows 11 2023 Update (23H2) 64-bit (Intel N305 Fanless NUC 16GB RAM/256GB NVMe SSD)
JRiver Media Center 32 (Windows + Linux) | Topping D50s DAC | Edifier R2000DB Bookshelf Speakers

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13487
Re: [How-To] Add the APT Repository for Media Center 25
« Reply #2 on: March 22, 2019, 01:52:35 pm »

Thanks!
Logged

Library Eye

  • Junior Woodchuck
  • **
  • Posts: 61
Re: [How-To] Add the APT Repository for Media Center 25
« Reply #3 on: March 23, 2019, 12:24:26 pm »

Thanks!

I have the master license and have not yet updated Windows (which I hardly ever use) or Mac (from where I host main library) but I updated Linux just now, for which I wanted to first remove all traces of 24.

The first couple of "For Media Center 24" instructions have a small typo at end which prevent them from working on a system with 24 installed - actually, it's just that they are still the 23 instructions -

sudo rm /etc/apt/sources.list.d/mediacenter23.list
&
sudo apt-get remove mediacenter23

which I got around each time by just, you know, changing the 3 to 4.

Logged

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7360
  • The color of Spring...
Re: [How-To] Add the APT Repository for Media Center 25
« Reply #4 on: March 23, 2019, 01:13:03 pm »

Fixed. I intend to simplify the tutorial when I get a little free time.

EDIT: Done. I only left MC23 and MC24 examples and left a note for older versions.
Logged
I don't work for JRiver... I help keep the forums safe from Viagra and other sources of sketchy pharmaceuticals.

Windows 11 2023 Update (23H2) 64-bit + Ubuntu 23.10 Mantic Minotaur 64-bit | Windows 11 2023 Update (23H2) 64-bit (Intel N305 Fanless NUC 16GB RAM/256GB NVMe SSD)
JRiver Media Center 32 (Windows + Linux) | Topping D50s DAC | Edifier R2000DB Bookshelf Speakers

Library Eye

  • Junior Woodchuck
  • **
  • Posts: 61
Re: [How-To] Add the APT Repository for Media Center 25
« Reply #5 on: March 26, 2019, 12:42:31 am »

Thanks again.

I just discovered that now whenever I would run Update Manager (Mint, Cinnamon) I'd get errors about several targets being configured multiple times in /etc/apt/sources.list.d/mediacenter24.list:2 and /etc/apt/sources.list.d/mediacenter25.list:2

So, I went into the GUI for Software Sources and removed the 24 repository from there, and the errors have stopped.
Logged
Pages: [1]   Go Up