INTERACT FORUM

More => Old Versions => JRiver Media Center 20 for Linux => Topic started by: bob on February 20, 2015, 04:59:25 pm

Title: Apt Repositories
Post by: bob on February 20, 2015, 04:59:25 pm
I've created a couple of repositories you can try out. You'll first need to get the key. As root do this:
wget -O - http://dist.jriver.com/mediacenter@jriver.com.gpg.key | apt-key add -

Then add the repository of your choice to /etc/apt/sources.list.d.
Create a file in that directory called mediacenter20.list
In that file, for the stable distribution put:
deb [arch=i386] http://dist.jriver.com/stable/mediacenter/ wheezy main
or for the latest:
deb [arch=i386] http://dist.jriver.com/latest/mediacenter/ wheezy main

update your apt and you should be ready to go.
Title: Re: Apt Repositories
Post by: Awesome Donkey on February 20, 2015, 05:31:14 pm
I actually got this working in Ubuntu with some modifications and manual import of the key. Later when I get a little more time I'll post a tutorial on how to do this in the Ubuntu topic.
Title: Re: Apt Repositories
Post by: linuxuser200 on February 20, 2015, 07:41:57 pm
Worked for me too (Ubuntu 14.04 64 bit). Thanks Bob!
Title: Re: Apt Repositories
Post by: danrien on February 21, 2015, 09:16:25 am
Awesome! Thanks bob!

Update: the repository is working well on Linux Mint 17.1!
Title: Re: Apt Repositories
Post by: mcollier on February 27, 2015, 08:43:22 pm
Brilliant!

I believe the instructions for importing the key should read:

wget -O - http://dist.jriver.com/mediacenter@jriver.com.gpg.key | apt-key add -

Ubuntu users would likely need to do:

wget -O - http://dist.jriver.com/mediacenter@jriver.com.gpg.key | sudo apt-key add -

Thanks!  Great improvement.
Title: Re: Apt Repositories
Post by: bob on February 27, 2015, 10:46:54 pm
Brilliant!

I believe the instructions for importing the key should read:

wget -O - http://dist.jriver.com/mediacenter@jriver.com.gpg.key | apt-key add -

Ubuntu users would likely need to do:

wget -O - http://dist.jriver.com/mediacenter@jriver.com.gpg.key | sudo apt-key add -

Thanks!  Great improvement.

Correct. For some reason my command got truncated...
Title: Re: Apt Repositories
Post by: aoqw76 on February 28, 2015, 12:26:16 pm
Does this mean you can then do "sudo apt-get install mediacenter20"?
Title: Re: Apt Repositories
Post by: imugli on February 28, 2015, 04:49:16 pm
Yes.
Title: Re: Apt Repositories
Post by: Awesome Donkey on February 28, 2015, 04:51:19 pm
And you can update MC via your package manager of choice.

Also you should use this for Ubuntu and Linux Mint to add the key via Terminal;

Code: [Select]
wget -q "http://dist.jriver.com/mediacenter@jriver.com.gpg.key" -O- | sudo apt-key add -
Title: Re: Apt Repositories
Post by: aoqw76 on March 01, 2015, 02:24:20 pm
Thanks; guess that makes my auto-update CRON script slightly redundant, but I'll leave it running as it will still work as long as updates continue to be made available like this:
Code: [Select]
http://files.jriver.com/mediacenter/channels/v20/latest/MediaCenter-20.0.nn.deb
Title: Re: Apt Repositories
Post by: Awesome Donkey on March 05, 2015, 06:48:10 pm
One suggestion, perhaps you guys should host both mediacenter20.list files on the server. Why? It'd only require 4 Terminal commands to add and install Media Center 20. Something like the following for the latest channel;

Code: [Select]
sudo wget http://dist.jriver.com/latest/mediacenter/mediacenter20.list -O /etc/apt/sources.list.d/mediacenter20.list
If this was added, for example in Ubuntu this would add the key, list and install MC20;

Code: [Select]
wget -q "http://dist.jriver.com/mediacenter@jriver.com.gpg.key" -O- | sudo apt-key add -
sudo wget http://dist.jriver.com/latest/mediacenter/mediacenter20.list -O /etc/apt/sources.list.d/mediacenter20.list
sudo apt-get update
sudo apt-get install mediacenter20

This should work fine for Debian too.
Title: Re: Apt Repositories
Post by: bob on March 05, 2015, 09:56:01 pm
One suggestion, perhaps you guys should host both mediacenter20.list files on the server. Why? It'd only require 4 Terminal commands to add and install Media Center 20. Something like the following for the latest channel;

Code: [Select]
sudo wget http://dist.jriver.com/latest/mediacenter/mediacenter20.list -O /etc/apt/sources.list.d/mediacenter20.list
If this was added, for example in Ubuntu this would add the key, list and install MC20;

Code: [Select]
wget -q "http://dist.jriver.com/mediacenter@jriver.com.gpg.key" -O- | sudo apt-key add -
sudo wget http://dist.jriver.com/latest/mediacenter/mediacenter20.list -O /etc/apt/sources.list.d/mediacenter20.list
sudo apt-get update
sudo apt-get install mediacenter20

This should work fine for Debian too.
Thanks, that's a good idea.
Title: Re: Apt Repositories
Post by: bob on March 06, 2015, 02:57:36 pm
One suggestion, perhaps you guys should host both mediacenter20.list files on the server. Why? It'd only require 4 Terminal commands to add and install Media Center 20. Something like the following for the latest channel;

Code: [Select]
sudo wget http://dist.jriver.com/latest/mediacenter/mediacenter20.list -O /etc/apt/sources.list.d/mediacenter20.list
If this was added, for example in Ubuntu this would add the key, list and install MC20;

Code: [Select]
wget -q "http://dist.jriver.com/mediacenter@jriver.com.gpg.key" -O- | sudo apt-key add -
sudo wget http://dist.jriver.com/latest/mediacenter/mediacenter20.list -O /etc/apt/sources.list.d/mediacenter20.list
sudo apt-get update
sudo apt-get install mediacenter20

This should work fine for Debian too.
Ok, that's done.
I did list both architectures in the mediacenter20.list. I'm not sure that's the best idea since the amd64 is beta. We'll see...
Title: Re: Apt Repositories
Post by: audiolover on March 11, 2015, 09:40:27 am
I am a little bit lost as there have been changes in which code to use in this topic on how to add key and repositories.
Is it an idea to list the definite changes in code for Debian and Ubuntu in 1 "reply"?
Title: Re: Apt Repositories
Post by: Awesome Donkey on March 11, 2015, 11:17:18 am
If you want to add the repository and install Media Center 20 (in both Debian and Ubuntu), use the following Terminal commands;

Code: [Select]
wget -q "http://dist.jriver.com/mediacenter@jriver.com.gpg.key" -O- | sudo apt-key add -
sudo wget http://dist.jriver.com/latest/mediacenter/mediacenter20.list -O /etc/apt/sources.list.d/mediacenter20.list
sudo apt-get update
sudo apt-get install mediacenter20

If you already have Media Center 20 manually installed, use the first three commands.
Title: Re: Apt Repositories
Post by: astromo on April 02, 2015, 03:02:27 am
If you want to add the repository and install Media Center 20 (in both Debian and Ubuntu), use the following Terminal commands;

Code: [Select]
wget -q "http://dist.jriver.com/mediacenter@jriver.com.gpg.key" -O- | sudo apt-key add -
sudo wget http://dist.jriver.com/latest/mediacenter/mediacenter20.list -O /etc/apt/sources.list.d/mediacenter20.list
sudo apt-get update
sudo apt-get install mediacenter20

If you already have Media Center 20 manually installed, use the first three commands.

Question for those of us (well at least me) who are slow on the uptake. What do I have to do to ensure that I direct apt-get to pull down the 32 bit version?

I had a go at this the other week and had a melt down. Sorry, I had too much going on to post but I think the 64 bit repository was grabbed by mistake. I'll make sure I clonezilla the unit before trying again. Fortunately, I was able to do a rebuild but it was an old image and it took a bit of time to get back on the straight and narrow with other priorities that I had to deal with.
Title: Re: Apt Repositories
Post by: mwillems on April 02, 2015, 05:23:51 am
Question for those of us (well at least me) who are slow on the uptake. What do I have to do to ensure that I direct apt-get to pull down the 32 bit version?

I had a go at this the other week and had a melt down. Sorry, I had too much going on to post but I think the 64 bit repository was grabbed by mistake. I'll make sure I clonezilla the unit before trying again. Fortunately, I was able to do a rebuild but it was an old image and it took a bit of time to get back on the straight and narrow with other priorities that I had to deal with.

To specify the 32 bit version, try
Code: [Select]
sudo apt-get install mediacenter20:i386
Title: Re: Apt Repositories
Post by: bob on April 02, 2015, 09:17:07 am
To specify the 32 bit version, try
Code: [Select]
sudo apt-get install mediacenter20:i386
You can also specify the architecture in the place where you put the repository path.

i.e.

deb [arch=i386] ...
Title: Re: Apt Repositories
Post by: astromo on April 05, 2015, 08:17:37 am
Thanks all.

Success on Ubuntu 14.04 LTS.

Followed Bob's advice at the top and navigated to the directory:
    /etc/apt/sources.list.d.

Did a gksu gedit and edited in the dependency as noted with the qualifier ...  [arch=i386]

Worked a treat.

All set now. Nice one.
Title: Re: Apt Repositories
Post by: Weedos123 on April 12, 2015, 11:26:12 am
I think I must be in need of a little more linux education.

I used the repository to install media centre (debian  v88) in the first place.  Now I come to try and get the latest update using sudo apt-get update and I get the following message:

"W: GPG error: http://dist.jriver.com wheezy Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY C30B25C6077765D5"

I thought I had to get a key right at the outset when I followed the instructions above.  If I didn't get a key how did it install? Or is this a different key being referred to?

many thanks

Paul
Title: Re: Apt Repositories
Post by: Awesome Donkey on April 12, 2015, 11:46:55 am
Try using these commands;

Code: [Select]
wget -q "http://dist.jriver.com/mediacenter@jriver.com.gpg.key" -O- | sudo apt-key add -
sudo wget http://dist.jriver.com/latest/mediacenter/mediacenter20.list -O /etc/apt/sources.list.d/mediacenter20.list
sudo apt-get update
sudo apt-get install mediacenter20
Title: Re: Apt Repositories
Post by: Weedos123 on April 12, 2015, 03:00:57 pm
Awesome

OK I confused now on several counts.

I ran those 4 commands, when I first installed media centre and was under the impression that all of them only needed to be run at the outset as mediacenter 20 would have been added to the "sources list" and I'd have the necessary key to be able to retrieve and install the package.  Therefore I'd only need to "apt-get update" to download and install any updates. Do I need to run all of them each time to update?

As you suggested I ran them and the update packages downloaded as before when I ran "apt-get update" which returned done this time, rather than the error, but when running the last command to install, it didn't do it as it says I am already on the latest version.  Checking in MC shows I' m on v88, but I thought I'd downloaded v93.

Thanks

Paul
Title: Re: Apt Repositories
Post by: Awesome Donkey on April 12, 2015, 05:11:59 pm
Looks like 20.0.93 hasn't been added to the latest apt repository yet, that's why you're seeing that issue. Manually download the 20.0.93 AMD64 .deb file and install it via dpkg -i in the Terminal.
Title: Re: Apt Repositories
Post by: bob on May 05, 2015, 12:30:40 pm
I added a Jessie apt repository.
It will be amd64 only for now.

It includes gnutls28-deb0. I need feedback on this for the unsupported distros. On Ubuntu 14.10 it just works since gnutls28-deb0 is already in the OS.

You can get the list file following the previous instructions replacing mediacenter20.list with mediacenter20jessie.list


Title: Re: Apt Repositories
Post by: Awesome Donkey on May 06, 2015, 07:36:38 am
FYI guys, it's not recommended to use this new mediacenter20jessie.list on Ubuntu 15.04 as it'll try to update the existing gnutls28-deb0 and it WILL break the system.
Title: Re: Apt Repositories
Post by: Hilton on May 06, 2015, 06:52:54 pm
Any chance of you adding ARM to the repository?

 ;D
Title: Re: Apt Repositories
Post by: bob on May 07, 2015, 10:14:12 am
FYI guys, it's not recommended to use this new mediacenter20jessie.list on Ubuntu 15.04 as it'll try to update the existing gnutls28-deb0 and it WILL break the system.
Shouldn't it use the one from the ubuntu servers? I'd think it's newer.
Title: Re: Apt Repositories
Post by: bob on May 07, 2015, 10:23:22 am
Any chance of you adding ARM to the repository?

 ;D
Ok. Just did.
I've not added any extra packages, just MC at this time. It's build 20.0.101
Title: Re: Apt Repositories
Post by: Awesome Donkey on May 07, 2015, 11:56:04 am
Shouldn't it use the one from the ubuntu servers? I'd think it's newer.

Ubuntu 15.04 uses 3.3.8-3ubuntu3 whereas the one on the repository is 3.3.8-6.

Maybe a creating a Launchpad repository at some point for Ubuntu users might be beneficial?
Title: Re: Apt Repositories
Post by: bob on May 07, 2015, 03:59:58 pm
Ubuntu 15.04 uses 3.3.8-3ubuntu3 whereas the one on the repository is 3.3.8-6.
That's unfortunate. I wonder if renaming it (and perhaps repackaging it) to a slightly lower version would do the trick.
Quote
Maybe a creating a Launchpad repository at some point for Ubuntu users might be beneficial?
Perhaps, however we aren't in a place to add more things to maintain right now.
Title: Re: Apt Repositories
Post by: Awesome Donkey on May 07, 2015, 05:15:50 pm
That's unfortunate. I wonder if renaming it (and perhaps repackaging it) to a slightly lower version would do the trick.Perhaps, however we aren't in a place to add more things to maintain right now.

If so, would it conflict with any existing version, or would it just be used by MC?
Title: Re: Apt Repositories
Post by: bob on May 07, 2015, 05:49:05 pm
If so, would it conflict with any existing version, or would it just be used by MC?
It wouldn't get used if you have a newer version.
Another option would be to just take it out and see how many people that affects.

Title: Re: Apt Repositories
Post by: Hilton on May 07, 2015, 09:06:02 pm
All works thanks Bob! :) That makes it a bit simpler!

pi@raspberrypi ~ $ sudo apt-get install mediacenter20
Reading package lists... Done
Building dependency tree
Reading state information... Done
mediacenter20 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 21 not upgraded.


PS. I just ran this from above, for those that want to make upgrading MC20 on Pi quicker.

Code: [Select]

wget -q "http://dist.jriver.com/mediacenter@jriver.com.gpg.key" -O- | sudo apt-key add -
sudo wget http://dist.jriver.com/latest/mediacenter/mediacenter20.list -O /etc/apt/sources.list.d/mediacenter20.list
sudo apt-get update
sudo apt-get install mediacenter20
 
 
Title: Re: Apt Repositories
Post by: bob on May 08, 2015, 10:40:08 am
All works thanks Bob! :) That makes it a bit simpler!

pi@raspberrypi ~ $ sudo apt-get install mediacenter20
Reading package lists... Done
Building dependency tree
Reading state information... Done
mediacenter20 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 21 not upgraded.


PS. I just ran this from above, for those that want to make upgrading MC20 on Pi quicker.

Code: [Select]

wget -q "http://dist.jriver.com/mediacenter@jriver.com.gpg.key" -O- | sudo apt-key add -
sudo wget http://dist.jriver.com/latest/mediacenter/mediacenter20.list -O /etc/apt/sources.list.d/mediacenter20.list
sudo apt-get update
sudo apt-get install mediacenter20
 
 
The mediacenter20.list you reference above is multiarch for i386 and amd64. I added a native list that doesn't specify arches.
it's mediacenter20native.list
Title: Re: Apt Repositories
Post by: Hilton on May 08, 2015, 10:51:40 am
ok so this one is the right one now for ARM?
sudo wget http://dist.jriver.com/latest/mediacenter/mediacenter20native.list -O /etc/apt/sources.list.d/mediacenter20native.list      
Title: Re: Apt Repositories
Post by: cassfras21 on May 11, 2015, 01:14:53 pm
Hello,

I have an error 403 when trying to update to .105

Code: [Select]
W: Failed to fetch http://dist.jriver.com/latest/mediacenter/dists/wheezy/main/binary-i386/Packages  403  Forbidden
It worked fine to update to .95 and nothing changed in my setup.

Please can you check your web page permissions?
Title: Re: Apt Repositories
Post by: Awesome Donkey on May 11, 2015, 01:34:16 pm
ok so this one is the right one now for ARM?
sudo wget http://dist.jriver.com/latest/mediacenter/mediacenter20native.list -O /etc/apt/sources.list.d/mediacenter20native.list       

Actually, I'd use this (and override the local mediacenter20.list if one's present);

Code: [Select]
wget -q "http://dist.jriver.com/mediacenter@jriver.com.gpg.key" -O- | sudo apt-key add -
sudo wget http://dist.jriver.com/latest/mediacenter/mediacenter20native.list -O /etc/apt/sources.list.d/mediacenter20.list
sudo apt-get update
sudo apt-get install mediacenter20
Title: Re: Apt Repositories
Post by: bob on May 11, 2015, 03:09:00 pm
ok so this one is the right one now for ARM?
sudo wget http://dist.jriver.com/latest/mediacenter/mediacenter20native.list -O /etc/apt/sources.list.d/mediacenter20native.list      
Yes
Title: Re: Apt Repositories
Post by: bob on May 11, 2015, 03:10:14 pm
Hello,

I have an error 403 when trying to update to .105

Code: [Select]
W: Failed to fetch http://dist.jriver.com/latest/mediacenter/dists/wheezy/main/binary-i386/Packages  403  Forbidden
It worked fine to update to .95 and nothing changed in my setup.

Please can you check your web page permissions?

Access was restricted for testing. It's back up now.
Title: Re: Apt Repositories
Post by: bob on May 12, 2015, 05:49:40 pm
I removed the libgnutls28-deb0 from the jessie amd64 apt repository.
Title: Re: Apt Repositories
Post by: crazikid on July 07, 2015, 10:59:10 pm
W: Failed to fetch http://dist.jriver.com/latest/mediacenter/dists/wheezy/Release  Unable to find expected entry 'main/binary-armel/Packages' in Release file (Wrong sources.list entry or malformed file)


I'm stuck and hoping someone can give me tips to resolve install on beaglebone black.

i have updated my /etc/apt/sources.list to reflect deb [arch=i386] http://dist.jriver.com/latest/mediacenter/ wheezy main.

and also tried the 4 lines awesome donkey published using mediacenter20native.list

cheers
Title: Re: Apt Repositories
Post by: Awesome Donkey on July 08, 2015, 01:53:39 pm
Are you using ARM?
Title: Re: Apt Repositories
Post by: crazikid on July 14, 2015, 01:41:12 am
i see.. i was using debian,
I have just installed arch ARM for the beaglebone black.

Title: Re: Apt Repositories
Post by: jstruebel on July 18, 2015, 05:59:31 pm
I'm trying to install MediaCenter on a Debian Wheezy machine from the APT repository, but I get the error "E: Unable to locate package mediacenter20" when I run

Code: [Select]
apt-get install mediacenter20
I'm following the instructions from https://yabb.jriver.com/interact/index.php?topic=97691.0 for the 32-bit Jessie install and they seemed to work fine but I get the error above when I try to do the actual install. Do I need to follow different steps since I'm on Wheezy?

Thanks,
Jonathan
Title: Re: Apt Repositories
Post by: JimH on July 18, 2015, 06:15:37 pm
What is the hardware you're using?
Title: Re: Apt Repositories
Post by: jstruebel on July 18, 2015, 07:26:30 pm
It's a VM running under KVM with 64-bit Debian Wheezy installed. It's part of my home server running on an Intel Celeron E3300. I'm planning on using it as a media server. So far I've just been using Media Center on a windows HTPC connected to my TV.
Title: Re: Apt Repositories
Post by: bob on July 19, 2015, 09:54:51 pm
In the repository, wheezy is i386.
If you want amd64 you should use Jessie.
Title: Re: Apt Repositories
Post by: crazikid on July 20, 2015, 06:14:01 am
looking for feedback on installation of MC on my BBB. debian wheezy -

I'm getting a Segmentation fault.

any help would be appreciated.
Title: Re: Apt Repositories
Post by: bob on July 20, 2015, 10:17:51 am
looking for feedback on installation of MC on my BBB. debian wheezy -

I'm getting a Segmentation fault.

any help would be appreciated.
Your last post said you were using arch.

If you are using debian wheezy on your bbb make sure dependencies are satisfied (including installing xfonts-75dpi).
You must also be running in 24 bit video mode, not 16.
MC REQUIRES an XServer.
Title: Re: Apt Repositories
Post by: jstruebel on July 20, 2015, 08:49:15 pm
Ok. So I tried just switching to the Jessie repository, but that broke with the dependencies as I suspected it might. I switched back to the Wheezy repository and ran the command:

Code: [Select]
dpkg --add-architecture i386
as recommended in http://yabb.jriver.com/interact/index.php?topic=85957.msg604793#msg604793. That did the trick and it updated dependencies and installed mediacenter. Now to see if it works.