INTERACT FORUM

More => Old Versions => JRiver Media Center 26 for Linux => Topic started by: Awesome Donkey on January 08, 2020, 07:51:47 am

Title: [How-To] Add the APT Repository for Media Center 26
Post by: Awesome Donkey on January 08, 2020, 07:51:47 am
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 Linux distros!

Here we go again! As always, with the release of Media Center 26 onto the latest and beta repos, the APT Repository has been updated and changed for Media Center 26. 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 26, 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 26 APT Repository:

The APT repository is required to install Media Center 26 and keep Media Center 26 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 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 "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 26 (Latest) Repository:

This repository is using the latest up-to-date release of Media Center 26. 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/mediacenter26.list -O /etc/apt/sources.list.d/mediacenter26.list

Media Center 26 (Stable) Repository:

This repository is using the latest stable release of Media Center 26. 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/mediacenter26.list -O /etc/apt/sources.list.d/mediacenter26.list
NOTE: Media Center 26 is still pretty new, so there's probably no stable versions yet. Use the Latest repo instead!


Media Center 26 (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/mediacenter26.list -O /etc/apt/sources.list.d/mediacenter26beta.list
That's it! Now we can install Media Center 26...


Step 2 - Installing Media Center 26:

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 26 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 mediacenter26
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 mediacenter26 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 mediacenter26:
 mediacenter26 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 26! 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
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

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
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'
To Remove Media Center 24's Settings Folder:

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

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

Code: [Select]
sudo rm -rf '/usr/lib/jriver/Media Center 26'
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 26?

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 26?

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). :)
Title: Re: [How-To] Add the APT Repository for Media Center 26
Post by: JimH on January 22, 2020, 05:06:52 pm
I'm having trouble installing on Linux running on Chromebook.  I had it working earlier, but a ChromeOS update broke it.

I'm using this script:

sudo wget http://dist.jriver.com/latest/mediacenter/mediacenter26.list -O /etc/a
pt/sources.list.d/mediacenter26.list
sleep 3
sudo apt-get install mediacenter26
sleep 3
mediacenter26

The first command works, and the sleep works, but the next command doesn't.  It returns this error:

E: Unable to locate package mediacenter26

It happens even if I run the commands from the $ prompt.

I did also do this command first:
wget -q "http://dist.jriver.com/mediacenter@jriver.com.gpg.key" -O- | sudo apt-key add -

Any ideas?  Thanks.
Title: Re: [How-To] Add the APT Repository for Media Center 26
Post by: mwillems on January 22, 2020, 05:22:42 pm
Jim, you need to add a "sudo apt-get update" before the "sudo apt-get install" command I think.
Title: Re: [How-To] Add the APT Repository for Media Center 26
Post by: JimH on January 22, 2020, 05:53:09 pm
You were right, of course.  Thank you!

Here's a script that works:

sudo wget http://dist.jriver.com/latest/mediacenter/mediacenter26.list -O /etc/apt/sources.list.d/mediacenter26.list
sleep 3
sudo apt-get update
sleep 3
sudo apt-get install mediacenter26
sleep 3
mediacenter26
Title: Re: [How-To] Add the APT Repository for Media Center 26
Post by: mkyle on January 26, 2020, 04:47:20 pm
I updated and lost all my settings: font sizes, devices, colors, libraries, custom fields, etc.

Would you please include instructions next time to copy these into the new version?
Title: Re: [How-To] Add the APT Repository for Media Center 26
Post by: Awesome Donkey on January 26, 2020, 05:00:29 pm
Do a library backup in your old version, restore that library backup in the new version.
Title: Re: [How-To] Add the APT Repository for Media Center 26
Post by: JLDoctore on January 30, 2020, 03:02:09 am
Hi,
Thanks in advance for the explanations to install JRiver on linux distro

I'm newbie on Ubuntu 19.10 and I would install JRiver 26 for Linux. I've applies with copy and paste the instruction in Terminal.
And I've the following message at the end:  E: Unable to locate package mediacenter26

With the method of JimH I can install JRiver 26 latest version but it seems unstable...

Wait and see
Title: Re: [How-To] Add the APT Repository for Media Center 26
Post by: BryanC on February 10, 2020, 10:48:29 am
You were right, of course.  Thank you!

Here's a script that works:

sudo wget http://dist.jriver.com/latest/mediacenter/mediacenter26.list -O /etc/apt/sources.list.d/mediacenter26.list
sleep 3
sudo apt-get update
sleep 3
sudo apt-get install mediacenter26
sleep 3
mediacenter26


And for brevity, this should work equally as well:

Code: [Select]
sudo wget http://dist.jriver.com/latest/mediacenter/mediacenter26.list -O /etc/apt/sources.list.d/mediacenter26.list && sudo apt-get update && sudo apt-get install mediacenter26 && mediacenter26 &
Title: Re: [How-To] Add the APT Repository for Media Center 26
Post by: audiolover on March 24, 2020, 08:05:19 am
 NO_PUBKEY C30B25C6077765D5

This is the message I get when adding the repo. After that I cannot install Mediacenter26: Unable to locate package mediacenter26.
I installed Mediacenter using the .deb package but I want updates to come via repo!
Title: Re: [How-To] Add the APT Repository for Media Center 26
Post by: Awesome Donkey on March 24, 2020, 08:47:32 am
What Linux distro are you using?
Title: Re: [How-To] Add the APT Repository for Media Center 26
Post by: audiolover on March 24, 2020, 08:50:15 am
10_3 Debian XFCE
Title: Re: [How-To] Add the APT Repository for Media Center 26
Post by: audiolover on March 26, 2020, 02:15:59 am
now, on another pc, same Debian XFCE: adding the repo this time without problem, running apt update no errors but when I enter the command to install mediacenter26 the error is that the package could not be found.

are the problems only with XFCE?
Title: Re: [How-To] Add the APT Repository for Media Center 26
Post by: bob on April 03, 2020, 10:09:44 am
now, on another pc, same Debian XFCE: adding the repo this time without problem, running apt update no errors but when I enter the command to install mediacenter26 the error is that the package could not be found.

are the problems only with XFCE?
Did you get this working?
I use xfce everywhere so that's not the issue.
Title: Re: [How-To] Add the APT Repository for Media Center 26
Post by: audiolover on April 03, 2020, 11:01:58 am
I got it working by manually installing
JRiver, I hope updating will work via apt-update
but will have to wait for a new version.
I will check later if I get error messages and let
you know.
Title: Re: [How-To] Add the APT Repository for Media Center 26
Post by: audiolover on April 03, 2020, 01:04:03 pm
when updating I do not get errors so it seems to work. No idea what went wrong during the installation?!
Title: Re: [How-To] Add the APT Repository for Media Center 26
Post by: bob on April 03, 2020, 01:33:09 pm
when updating I do not get errors so it seems to work. No idea what went wrong during the installation?!
It might have been a dependency issue but good to hear it's working now!
Title: Unable to locate package error - Ubuntu 18.04.4 / Raspberry Pi 4B
Post by: rick26 on April 16, 2020, 03:20:38 pm
I've successfully installed MC on quite a few Intel Linux machines and even a Pi 3B in the past so I'm pretty familiar with the process but keep getting 'E: Unable to locate package mediacenter26' after going through all the steps.  I get the same response with MC 25 which is the version I actually want to install.

Hardware is a Pi 4B with 4 gb of RAM running Ubuntu 18.04.4 LTS 64 bit and stock Ubuntu Desktop. 

Any suggestions would be appreciated.
Title: Re: [How-To] Add the APT Repository for Media Center 26
Post by: Zhillsguy on April 16, 2020, 07:41:06 pm
Can you install using the .deb file?
Title: Re: [How-To] Add the APT Repository for Media Center 26
Post by: buste986 on April 16, 2020, 11:14:35 pm
"Also it's worth mentioning that MC26 will likely be rebased on Debian Buster soon, which means MC26 won't run on Ubuntu 18.04 LTS (or Linux Mint 19) anymore. This is due to them having an older GLIBC library whereas MC26 will require a newer version of the GLIBC library found in Debian Buster and newer versions of Ubuntu. It's not possible to update the GLIBC library to the version that will be needed by MC26 in Ubuntu 18.04 LTS or Linux Mint 19 so they simply won't be able to run on those OSes anymore. Just something to be aware of."

I can confirm that MC26 will not install on Ubuntu server 18.04 - it would be helpful if this note were posted at the top of the sticky to prevent neanderthals like me from going down this path. ::)

Debian is a non-starter for me: I wasted far too much time trying to get a 2020 bare bones USB keyboard and mouse to work properly. 

No mouse/keyboard issues with the SuperMicro bios, or later under Ubuntu, but Debian is a witch!
Title: Re: [How-To] Add the APT Repository for Media Center 26
Post by: Hendrik on April 17, 2020, 01:57:49 am
I can confirm that MC26 will not install on Ubuntu server 18.04 - it would be helpful if this note were posted at the top of the sticky to prevent neanderthals like me from going down this path. ::)

This has actually not changed yet and it should still work on Ubuntu 18.04. Do note however that we only officially support Debian.
Title: Re: [How-To] Add the APT Repository for Media Center 26
Post by: buste986 on April 17, 2020, 09:11:22 am
This has actually not changed yet and it should still work on Ubuntu 18.04. Do note however that we only officially support Debian.

Thanks for trying to help; this morning I tried again, but keep getting "Unable to locate package mediacenter26" - could the folks working on ubuntu have altered something?

Also, If only Debian is supported; that should be clearly stated as a sticky and a disclaimer.

============================================================

Okay, I tried these steps with the 'latest version' of MC and it worked (!), but previously I was trying the 'stable' repository, so there appears to be some issue with the 'stable' install on Ubuntu.  I am too much of a neophyte to add much more.
Title: Re: [How-To] Add the APT Repository for Media Center 26
Post by: rick26 on April 17, 2020, 11:00:48 am
Can you install using the .deb file?

I don't think I've ever done that before. Can you give me or point me toward info on how that's done?
Title: Re: [How-To] Add the APT Repository for Media Center 26
Post by: Zhillsguy on April 17, 2020, 11:57:26 am
I don't think I've ever done that before. Can you give me or point me toward info on how that's done?

Open a terminal and type $ sudo dpkg –i filename.deb, or right/double click the file in file explorer and open with gdebi, which is a gui for installing deb files. Install gdebi if needed.

Title: Re: [How-To] Add the APT Repository for Media Center 26
Post by: rick26 on April 17, 2020, 02:07:22 pm
Open a terminal and type $ sudo dpkg –i filename.deb, or right/double click the file in file explorer and open with gdebi, which is a gui for installing deb files. Install gdebi if needed.

Thanks.  What's the correct filename and where can I get it?
Title: Re: [How-To] Add the APT Repository for Media Center 26
Post by: Awesome Donkey on April 17, 2020, 05:24:18 pm
The correct filename is where you download it to.

Easiest way to do is is to type sudo dpkg -i with a space after -i and then drag and drop the .deb file into the terminal and it'll put the full path in for you. Then press enter and follow the instructions.
Title: Re: [How-To] Add the APT Repository for Media Center 26
Post by: Zhillsguy on April 18, 2020, 08:28:29 am
Thanks.  What's the correct filename and where can I get it?

https://yabb.jriver.com/interact/index.php/topic,124863.0.html
Title: Re: [How-To] Add the APT Repository for Media Center 26
Post by: rick26 on April 18, 2020, 03:46:42 pm
Thanks for both of your help. dpkg errored out saying the package format - armhf - didn't match my target system - arm64.  So that's why apt-get wasn't finding the package, I didn't realize/notice the executable was 32 bit.  Is there a 64 bit version available or do I have to step back to 32 bit Ubuntu?

Thanks again for your help with this at least I'm now clear on what was happening.
Title: Re: [How-To] Add the APT Repository for Media Center 26
Post by: Awesome Donkey on April 18, 2020, 03:58:54 pm
The armhf build is for 32-bit ARM processors. The i386 build is for 32-bit.

Use the amd64 build posted there, it's the 64-bit build for 64-bit OSes.
Title: Re: [How-To] Add the APT Repository for Media Center 26
Post by: rick26 on April 18, 2020, 05:09:45 pm
The armhf build is for 32-bit ARM processors. The i386 build is for 32-bit.

Use the amd64 build posted there, it's the 64-bit build for 64-bit OSes.

The amd64 version is for Intel based OS's. The Pi 4B is running an ARM v8. Mine has 4 gb of RAM so I'm running the Arm64 (64 bit) version of Ubuntu on it.  I either need an arm64 version of MC (which I'm guessing doesn't exist) or I need to step back to running the 32 bit (armhf) build of Ubuntu on my Pi.
Title: Re: [How-To] Add the APT Repository for Media Center 26
Post by: Hendrik on April 18, 2020, 05:29:52 pm
We're not currently providing a 64-bit ARM build. You could also keep the 64-bit OS on your Pi and install a multilib environment to be able to run 32-bit applications.
Title: Re: [How-To] Add the APT Repository for Media Center 26
Post by: bob on April 19, 2020, 08:26:52 am
The amd64 version is for Intel based OS's. The Pi 4B is running an ARM v8. Mine has 4 gb of RAM so I'm running the Arm64 (64 bit) version of Ubuntu on it.  I either need an arm64 version of MC (which I'm guessing doesn't exist) or I need to step back to running the 32 bit (armhf) build of Ubuntu on my Pi.
You should be able to run 32 bit on your arm64 distro.
Check it's documentation to see how. In intel land this is called multi-arch support and Debian/Ubuntu intel 64 bit builds support it as part of the distro.