INTERACT FORUM

Please login or register.

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

Author Topic: Adding the MediaCenter repo manually. Only for Debian and Ubuntu.  (Read 4996 times)

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13931

Since MC is complied on Debian and the libraries are used are the same on Ubuntu which is derived from Debian, you can add the repo manually without any additional software.
For MC32 this applies to Debian Bullseye (11) and Bookworm (12) and for Ubuntu Focal (20), Jammy (22) and Noble (24)

For Debian only, the user may not be added to sudoers on a basic install.
If you get an error with sudo in the commands below, you can do the following in a terminal as the login user so the sudo commands work:
Code: [Select]
su -(you will enter the root password that you used when creating the system)
Code: [Select]
usermod -a -G sudoers youruserloginname(replace youruserloginname with the user name you logged in with)
exit
(to get out of the su -)
Then logout and log back in so that the change to sudoers works.

In a terminal as the login user, install any necessary dependencies:
Code: [Select]
sudo apt update && sudo apt install -y wget apt-transport-https -y gpg -y
Get and install the MediaCenter repo gpg key into a secure keyring:
Code: [Select]
wget -O- http://dist.jriver.com/mediacenter@jriver.com.gpg.key | gpg --dearmor | sudo  tee /usr/share/keyrings/jriver-com-archive-keyring.gpg >/dev/null 2>&1
Create a repo list file
For Focal:
Code: [Select]
echo "deb [signed-by=/usr/share/keyrings/jriver-com-archive-keyring.gpg arch=amd64,i386,armhf,arm64] http://dist.jriver.com/latest/mediacenter/ focal main" | sudo tee /etc/apt/sources.list.d/jriver.list
For Jammy:
Code: [Select]
echo "deb [signed-by=/usr/share/keyrings/jriver-com-archive-keyring.gpg arch=amd64,i386,armhf,arm64] http://dist.jriver.com/latest/mediacenter/ jammy main" | sudo tee /etc/apt/sources.list.d/jriver.list
For Noble:
Code: [Select]
echo "deb [signed-by=/usr/share/keyrings/jriver-com-archive-keyring.gpg arch=amd64,i386,armhf,arm64] http://dist.jriver.com/latest/mediacenter/ noble main" | sudo tee /etc/apt/sources.list.d/jriver.list
For Bullseye:
Code: [Select]
echo "deb [signed-by=/usr/share/keyrings/jriver-com-archive-keyring.gpg arch=amd64,i386,armhf,arm64] http://dist.jriver.com/latest/mediacenter/ bullseye main" | sudo tee /etc/apt/sources.list.d/jriver.list
For Bookworm:
Code: [Select]
echo "deb [signed-by=/usr/share/keyrings/jriver-com-archive-keyring.gpg arch=amd64,i386,armhf,arm64] http://dist.jriver.com/latest/mediacenter/ bookworm main" | sudo tee /etc/apt/sources.list.d/jriver.list
Note that you will be getting the same build of MediaCenter in all cases. The only difference is the repo name for your convenience.

To get the stable branch instead you can just replace "latest" in the code above with "stable"

Then to install MediaCenter simply:
Code: [Select]
sudo apt update
sudo apt install mediacenter32
Logged

Marcellus

  • Recent member
  • *
  • Posts: 25
Re: Adding the MediaCenter repo manually. Only for Debian and Ubuntu.
« Reply #1 on: April 01, 2024, 06:00:03 am »

Ok, get this, but what I do not get, how to switch from 31 to 32 when using the repo?
Logged

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4270
Re: Adding the MediaCenter repo manually. Only for Debian and Ubuntu.
« Reply #2 on: April 01, 2024, 06:14:44 am »

Install 32 and remove 31
Logged

ecceccecc

  • Recent member
  • *
  • Posts: 6
Re: Adding the MediaCenter repo manually. Only for Debian and Ubuntu.
« Reply #3 on: April 25, 2024, 08:07:28 pm »

I just upgraded to Ubuntu 24.04 LTS "Noble" and there's no repo for it yet. I tried to add the "Jammy" one but there was a dependency error. So for now the only way I could ever use MediaCenter is if there was a Snap or a Flatpak version of it.
Logged

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7885
  • Long cold Winter...
Re: Adding the MediaCenter repo manually. Only for Debian and Ubuntu.
« Reply #4 on: April 26, 2024, 06:51:57 am »

That's not true, you can also satisfy the dependencies of libwebkit2gtk-4.0-37 and manually install MC32. Along with libwebkit2gtk-4.0-37 you also have to install libjavascriptcoregtk-4.0-18_2 and libicu72 and then you should be able to manually install MC32.

But unless you know exactly what you're doing I'd actually recommend waiting for a MC32 update to address this.
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

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13931
Re: Adding the MediaCenter repo manually. Only for Debian and Ubuntu.
« Reply #5 on: May 10, 2024, 09:44:50 am »

I added the packages MC needs for Noble to the repo so they will be downloaded with MC. They are the signed ubuntu ones, like you'd get off of a mirror.
See the revised instructions above that include the Noble MC repo.
Logged

AaronSchick

  • Member
  • *
  • Posts: 3
Re: Adding the MediaCenter repo manually. Only for Debian and Ubuntu.
« Reply #6 on: June 21, 2024, 03:58:18 pm »

Hello everyone.

I have just received my new device with this version of Ubuntu installed: LTS 22.04.3

I have tried every method described here in the forums to install the latest version of MC, but always come up against the same problem, libwebkit2gtk-4.0-37 required but cannot be installed.

I have also tried everything that I can think of to get it installed, but I keep received the same message that it cannot be installed.

I always try to figure things out by myself, but I must concede that I am stuck here, any assistance would be greatly appreciated.

Many thanks.
Logged

Awesome Donkey

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 7885
  • Long cold Winter...
Re: Adding the MediaCenter repo manually. Only for Debian and Ubuntu.
« Reply #7 on: June 21, 2024, 05:12:54 pm »

I guess Ubuntu backported the newer libwebkit2gtk to 22.04 LTS unfortunately, but MC requires the older one. You can try switching to the Noble repo (which includes libwebkit2gtk-4.0-37) but be warned it may not work on an older Ubuntu or you can try manually installing libwebkit2gtk-4.0-37 (and the two dependencies it has) or you'll have to wait until 24.04.1 LTS is released before you can upgrade to the latest 24.04 LTS.

I suppose if Ubuntu has removed libwebkit2gtk-4.0-37 from 22.04 LTS Bob could just add it to the Jammy repo like the Noble one. That may not be a bad idea, actually.
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

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2677
Re: Adding the MediaCenter repo manually. Only for Debian and Ubuntu.
« Reply #8 on: June 22, 2024, 11:34:33 am »

libwebkit2gtk-4.0-37 is in the jammy repos so what is the exact error?
Logged

AaronSchick

  • Member
  • *
  • Posts: 3
Re: Adding the MediaCenter repo manually. Only for Debian and Ubuntu.
« Reply #9 on: June 22, 2024, 03:52:57 pm »

Hello Awesome Donkey and BryanC, many thanks for your responses, it is much appreciated.

When I try to install libwebkit2gtk-4.0-37 I get the following error message:
...
Package libwebkit2gtk-4.0-37 is not available, but is referred to by another package.
...
Package "libwebkit2gtk-4.0-37" has no installation candidate

Maybe I need to add a new source in ubuntu.sources, or perhaps I carried out the following step incorrectly:
echo "deb [signed-by=/usr/share/keyrings/jriver-com-archive-keyring.gpg arch=amd64,i386,armhf,arm64] http://dist.jriver.com/latest/mediacenter/ jammy main" | sudo tee /etc/apt/sources.list.d/jriver.list

Sorry, I am a bit out of my depth here, my Linux terminal experience is very limited.
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13931
Re: Adding the MediaCenter repo manually. Only for Debian and Ubuntu.
« Reply #10 on: June 23, 2024, 04:50:17 pm »

Hello Awesome Donkey and BryanC, many thanks for your responses, it is much appreciated.

When I try to install libwebkit2gtk-4.0-37 I get the following error message:
...
Package libwebkit2gtk-4.0-37 is not available, but is referred to by another package.
...
Package "libwebkit2gtk-4.0-37" has no installation candidate

Maybe I need to add a new source in ubuntu.sources, or perhaps I carried out the following step incorrectly:
echo "deb [signed-by=/usr/share/keyrings/jriver-com-archive-keyring.gpg arch=amd64,i386,armhf,arm64] http://dist.jriver.com/latest/mediacenter/ jammy main" | sudo tee /etc/apt/sources.list.d/jriver.list

Sorry, I am a bit out of my depth here, my Linux terminal experience is very limited.
If you are running the noble version, you should use MC's nobel repo. It has a usable libwebkit2gtk-4.0-37 in it.
Logged

AaronSchick

  • Member
  • *
  • Posts: 3
Re: Adding the MediaCenter repo manually. Only for Debian and Ubuntu.
« Reply #11 on: June 24, 2024, 05:21:50 am »

Many thanks Bob, tried this and it did the trick  :)
Logged

astromo

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2251
Re: Adding the MediaCenter repo manually. Only for Debian and Ubuntu.
« Reply #12 on: July 28, 2024, 07:52:04 am »

Thanks for the rundown Bob.

I had to remind myself of the code to install the licence file. Hauled back to MC 26 and the post by the awesome one himself:
https://yabb.jriver.com/interact/index.php/topic,123664.msg856389.html#msg856389

Just changed version and file details to suit.
Logged
MC33, Win10 x64, HD-Plex H5 Gen2 Case, HD-Plex 400W Hi-Fi DC-ATX / AC-DC PSU, Gigabyte Z370 ULTRA Gaming 2.0 MoBo, Intel Core i7 8700 CPU, 4x8GB GSkill DDR4 RAM, Schiit Modi Multibit DAC, Freya Pre, Nelson Pass Aleph J DIY Clone, Ascension Timberwolf 8893BSRTL Speakers, BJC 5T00UP cables, DVB-T Tuner HDHR5-4DT
Pages: [1]   Go Up