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 28  (Read 4334 times)

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7886
  • Long cold Winter...
[How-To] Add the APT Repository for Media Center 28
« on: June 25, 2021, 07:27:30 am »

NOTE 1: 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 Linux distros!

NOTE 2: Media Center 28 requires Debian 10 Buster and higher, so older Linux distros like Ubuntu 18.04 LTS likely will NOT work. Use the latest Ubuntu 20.04 LTS and newer, Debian 10 Buster and newer, Linux Mint 20 and newer, Raspberry Pi OS 10 Buster and newer, etc.

New Media Center time of year? Yep! As always, with the release of Media Center 28 and the creation of new Latest and Beta repositories (Stable repository isn't available yet), some changes are required for the newly released Media Center 28. What does this mean? Well, if you're installing and using Media Center for the first time just skip to Step 1 right now! Otherwise, if you're already using an older Media Center version and you're going to install Media Center 28, you'll need to update your sources to install it so skip to the repository choice in Step 1!


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

The APT repository is required to install Media Center 28 and keep Media Center 28 updated with every new release. There's three available repositories; Latest, Stable and Beta. Currently only the Latest and Beta repositories are available for Media Center 28. 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 Linux distro's search feature) 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 "https://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 28 (Latest) Repository:

This repository is using the latest up-to-date release of Media Center 28. 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 https://dist.jriver.com/latest/mediacenter/mediacenter28.list -O /etc/apt/sources.list.d/mediacenter28.list

Media Center 28 (Stable) Repository:

This repository is using the latest stable release of Media Center 28. 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 https://dist.jriver.com/stable/mediacenter/mediacenter28.list -O /etc/apt/sources.list.d/mediacenter28.list

Media Center 28 (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 https://dist.jriver.com/beta/mediacenter/mediacenter28.list -O /etc/apt/sources.list.d/mediacenter28beta.list
That's it! Now we can install Media Center 28...


Step 2 - Installing Media Center 28:

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 28 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 mediacenter28
If during this process it should say something along the following;

Code: [Select]
The following extra packages will be installed:
  lame libcue1 libreplaygain1 musepack-tools vorbis-tools
The following NEW packages will be installed:
  lame libcue1 libreplaygain1 mediacenter28 musepack-tools vorbis-tools
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.

Just press Y (or Enter) when it asks this... however, if you receive an error like;

Code: [Select]
dependency problems prevent configuration of mediacenter28:
 mediacenter28 depends on ....

This means all dependencies have not been met. Don't fret, this can usually be taken care of by using the following command in the Terminal by either typing the following command or copying and pasting the command in and press Enter;

Code: [Select]
sudo apt-get install -f
It'll show you the missing dependencies, after looking them over just press enter to install them. Now assuming all dependencies are met, you've been successful at installing Media Center 28! Enjoy!


Uninstall/Remove Media Center (And All Files):

Okay, first, you'll need to open a Terminal window (by either pressing CTRL+ALT+T or by searching for the Terminal in your Linux distro's search feature) 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);

Step 1 - Uninstall Media Center from the Terminal:

To Uninstall Media Center 23:

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

Code: [Select]
sudo apt-get remove mediacenter24
To Uninstall Media Center 25:

Code: [Select]
sudo apt-get remove mediacenter25
To Uninstall Media Center 26:

Code: [Select]
sudo apt-get remove mediacenter26
To Uninstall Media Center 27:

Code: [Select]
sudo apt-get remove mediacenter27
To Uninstall Media Center 28:

Code: [Select]
sudo apt-get remove mediacenter28
Of course if you're using a version older than Media Center 23, just substitute the version number in the command in the Terminal.

Step 2 - Remove The Media Center APT repository .list File(s):

Hopefully you didn't close the Terminal window, because you'll need it again for this next part! We need to remove the Media Center repo .list file(s) from the /etc/apt/sources.list.d/ directory. The easiest way to do this is from the Terminal, so with the Terminal open choose the command(s) below that you need...

To Remove Media Center 23's .list Latest/Stable Repository File:

Code: [Select]
sudo rm /etc/apt/sources.list.d/mediacenter23.list
To Remove Media Center 24's .list Latest/Stable Repository File:

Code: [Select]
sudo rm /etc/apt/sources.list.d/mediacenter24.list
To Remove Media Center 25's .list Latest/Stable Repository File:

Code: [Select]
sudo rm /etc/apt/sources.list.d/mediacenter25.list
To Remove Media Center 26's .list Latest/Stable Repository File:

Code: [Select]
sudo rm /etc/apt/sources.list.d/mediacenter26.list
To Remove Media Center 27's .list Latest/Stable Repository File:

Code: [Select]
sudo rm /etc/apt/sources.list.d/mediacenter27.list
To Remove Media Center 28's .list Latest/Stable Repository File:

Code: [Select]
sudo rm /etc/apt/sources.list.d/mediacenter28.list

Now, if you're using the beta repository for any installed Media Center versions, use these commands in the Terminal as well...


To Remove Media Center 23's .list Beta Repository File:

Code: [Select]
sudo rm /etc/apt/sources.list.d/mediacenter23beta.list
To Remove Media Center 24's .list Beta Repository File:

Code: [Select]
sudo rm /etc/apt/sources.list.d/mediacenter24beta.list
To Remove Media Center 25's .list Beta Repository File:

Code: [Select]
sudo rm /etc/apt/sources.list.d/mediacenter25beta.list
To Remove Media Center 26's .list Beta Repository File:

Code: [Select]
sudo rm /etc/apt/sources.list.d/mediacenter26beta.list
To Remove Media Center 27's .list Beta Repository File:

Code: [Select]
sudo rm /etc/apt/sources.list.d/mediacenter27beta.list
To Remove Media Center 28's .list Beta Repository File:

Code: [Select]
sudo rm /etc/apt/sources.list.d/mediacenter28beta.list
Again if you're using a version older than Media Center 23, just substitute the version number in the command in the Terminal.

Step 3 - Remove Media Center's Settings Folder(s):

You can leave them if you want, especially if you need to reinstall the older Media Center version, but if you want to remove the older Media Center folders you'll need the Terminal again, and use these command(s) for the older Media Center versions that were installed...

To Remove Media Center 23's Settings Folder:

Code: [Select]
sudo rm -rf /usr/lib/jriver/Media\ Center\ 23 && sudo rm -rf /usr/lib/jriver/MC23 && sudo rm -rf ~/.jriver/Media\ Center\ 23
To Remove Media Center 24's Settings Folder:

Code: [Select]
sudo rm -rf /usr/lib/jriver/Media\ Center\ 24 && sudo rm -rf /usr/lib/jriver/MC24 && sudo rm -rf ~/.jriver/Media\ Center\ 24
To Remove Media Center 25's Settings Folder:

Code: [Select]
sudo rm -rf /usr/lib/jriver/Media\ Center\ 25 && sudo rm -rf /usr/lib/jriver/MC25 && sudo rm -rf ~/.jriver/Media\ Center\ 25
To Remove Media Center 26's Settings Folder:

Code: [Select]
sudo rm -rf /usr/lib/jriver/Media\ Center\ 26 && sudo rm -rf /usr/lib/jriver/MC26 && sudo rm -rf ~/.jriver/Media\ Center\ 26
To Remove Media Center 27's Settings Folder:

Code: [Select]
sudo rm -rf /usr/lib/jriver/Media\ Center\ 27 && sudo rm -rf /usr/lib/jriver/MC27 && sudo rm -rf ~/.jriver/Media\ Center\ 27
To Remove Media Center 28's Settings Folder:

Code: [Select]
sudo rm -rf /usr/lib/jriver/Media\ Center\ 28 && sudo rm -rf /usr/lib/jriver/MC28 && sudo rm -rf ~/.jriver/Media\ Center\ 28
Yes, again, if you're using a version older than Media Center 23, just substitute the version number in the command in the Terminal.

And that should do it, removing all traces of previous Media Center versions. Easy peasy, right?


Q&A:

Q: Do I need to remove older Media Center versions to install Media Center 28?

A: Nope! If you desire, you can keep older versions of Media Center installed alongside the current version. But if you're going to use only the newest version of Media Center with the Media Network feature, I'd recommend going into the older Media Center's Options > Media Network and disabling Media Network, as it *could* clash with the newer Media Center version running. I'd also recommend if you run Media Center at startup of your Linux distro to go into the older Media Center's Options > Startup and making sure the startup option is set to Nothing. From there you can set the newer Media Center to start at your Linux distro's startup.


Q: Can I uninstall/remove older Media Center versions if I don't need them anymore?

A: Yes you can! Just follow the uninstall/remove portion of the tutorial above for the older Media Center version(s) you have and want to remove.


Q: How do I update Media Center 28?

A: That depends on your Linux distro. Your Linux distro's update manager or package manager should prompt when it checks for updates or you can check for updates manually (e.g. Synaptic). If using an update manager app in your Linux distro, I suggest hitting the Refresh button in it to make sure you're getting the latest and greatest updates. However, if all else fails, open a Terminal window and use this command...

Code: [Select]
sudo apt-get update && sudo apt-get dist-upgrade
And that should install any updates for your system, including Media Center!


Q: I'm running into an issue doing this, help!

A: Okay... take a deep breath and try going through the tutorial again, triple checking each step. However if you still have issues, please post a new topic in this forum section about your issue(s). :)
Logged
I don't work for JRiver... I help keep the forums safe from "male enhancements" and other sources of sketchy pharmaceuticals.

Windows 11 24H2 Update 64-bit + Ubuntu 24.10 Oracular Oriole 64-bit | Windows 11 24H2 Update 64-bit (Intel N305 Fanless NUC 16GB RAM/500GB M.2 NVMe SSD)
JRiver Media Center 33 (Windows + Linux) | iFi ZEN DAC 3 | JBL 306P MkII Studio Monitors | Audio-Technica ATH-M50x Headphones

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7886
  • Long cold Winter...
Re: [How-To] Add the APT Repository for Media Center 28
« Reply #1 on: September 10, 2021, 03:13:25 am »

The MC28 stable repo is now available!
Logged
I don't work for JRiver... I help keep the forums safe from "male enhancements" and other sources of sketchy pharmaceuticals.

Windows 11 24H2 Update 64-bit + Ubuntu 24.10 Oracular Oriole 64-bit | Windows 11 24H2 Update 64-bit (Intel N305 Fanless NUC 16GB RAM/500GB M.2 NVMe SSD)
JRiver Media Center 33 (Windows + Linux) | iFi ZEN DAC 3 | JBL 306P MkII Studio Monitors | Audio-Technica ATH-M50x Headphones
Pages: [1]   Go Up