Kodi upgrade?

Questions about applications and software
Forum rules
Before you post please read how to get help
GoldNugget
Level 1
Level 1
Posts: 20
Joined: Mon Jan 01, 2007 6:51 pm

Kodi upgrade?

Postby GoldNugget » Thu May 25, 2017 3:50 am

I've been limping along with the out of date Kodi in the repositories for quite a while (14.2). I have tried to upgrade manually but so far I've had no luck. Today I received a notice that a serious security flaw has been discovered and I need to upgrade to the latest version ASAP (17.3).

Are there any plans to upgrade the version in the LMDE repositories? What are other users planning to do? I use this program every day and I'm afraid I will have to uninstall it If I can't upgrade.

sgtor
Level 2
Level 2
Posts: 81
Joined: Sat May 13, 2017 9:39 pm

Re: Kodi upgrade?

Postby sgtor » Thu May 25, 2017 10:44 am

All the info you would need is here:
http://kodi.wiki/view/HOW-TO:Install_Kodi_for_Linux

I did it that way myself and had no problems. Of course that comes with the caveat of it being an untrusted PPA.
It's up to you if you trust the kodi development team or not.

kevinthefixer
Level 4
Level 4
Posts: 242
Joined: Thu Jul 23, 2015 10:36 pm

Re: Kodi upgrade?

Postby kevinthefixer » Thu May 25, 2017 9:38 pm

This is LMDE, don't try to use PPAs. You should be able to find the .deb file and download it manually, though.

User avatar
trytip
Level 5
Level 5
Posts: 865
Joined: Tue Jul 05, 2016 1:20 pm

Re: Kodi upgrade?

Postby trytip » Thu May 25, 2017 9:46 pm

The installation if you are using Debian (Jessie), you can use the debian-backports repository.

Add the following lines to your /etc/apt/sources.list file, as superuser (sudo)

Code: Select all

# kodi repos
# starting with debian jessie, debian provides kodi via its backports repository
# remember: those packages are not supported by team kodi
deb http://http.debian.net/debian jessie-backports main

And then, update APT and install Kodi.

sudo apt-get update
sudo apt-get install kodi
I love Windows, they give my walls personality.

sgtor
Level 2
Level 2
Posts: 81
Joined: Sat May 13, 2017 9:39 pm

Re: Kodi upgrade?

Postby sgtor » Fri May 26, 2017 12:59 am

kevinthefixer wrote:This is LMDE, don't try to use PPAs. You should be able to find the .deb file and download it manually, though.


There is advice for Debian too at 3.1
Thanks for pointing it out though because I assumed it was Ubuntu.
I need to watch those forum headers more closely.

GoldNugget
Level 1
Level 1
Posts: 20
Joined: Mon Jan 01, 2007 6:51 pm

Re: Kodi upgrade?

Postby GoldNugget » Sun May 28, 2017 3:15 pm

Thanks for the replies. I've added the jessie backports and pinned/upgraded to testing but it still says I've got the latest version (14.2). I read somewhere online that kodi 17 is in the sid repositories but I'm not sure if its safe to make the big jump to the unstable package repositories to get Kodi 17.

I wish I could find a .deb file. That would solve the problem for all of us.

Have any other LMDE users successfully upgraded to v.17x or to the 17.3 version, which is required for the security patch?

Penn
Level 5
Level 5
Posts: 660
Joined: Tue Jun 10, 2014 1:12 pm

Re: Kodi upgrade?

Postby Penn » Mon May 29, 2017 4:32 pm

Kodi 17.3 isn't available for Debian 8 which LMDE 2 is based on. A few possible solutions. The first 2 might not work on LMDE 2 since you will need some updated dependencies that might conflict with your current install so trying this could break your system unless you really know what you are doing. So do you know how to work with dependencies?

Get the Ubuntu debs. Yes, that is plural for a reason because you need multiple components. The official Kodi page on Launchpad https://launchpad.net/~team-xbmc/+archive/ubuntu/ppa

or

Get the Debian 9 debs from http://deb-multimedia.org/

or

Just don't use an automatic subtitle downloader. This is the method I recommend. The only security vulnerability is in those downloaders when they are unzipping the subtitles. If you use a different method to obtain the subtitles such as directly download the zip files and extract the text files or use files you already have you will be fine, to my understanding.

GoldNugget
Level 1
Level 1
Posts: 20
Joined: Mon Jan 01, 2007 6:51 pm

Re: Kodi upgrade?

Postby GoldNugget » Mon May 29, 2017 8:54 pm

Thank you for the clear answer. I will continue to avoid subtitles and hope for a security update soon. Even bypassing this vulnerability, this software is seriously out of date and one by one, the addons are dropping off. Eventually, I will have to find another solution. Here's hoping we can get an upgrade soon.

youstupiddarkness
Level 1
Level 1
Posts: 21
Joined: Sat Jun 17, 2017 8:29 pm

Re: Kodi upgrade?

Postby youstupiddarkness » Sat Jun 17, 2017 8:35 pm

You could try this multimedia backport repo for Jessie...won't break anything like some deb-multimedia packages can: http://forums.debian.net/viewtopic.php?f=6&t=127574

GoldNugget
Level 1
Level 1
Posts: 20
Joined: Mon Jan 01, 2007 6:51 pm

Re: Kodi upgrade?

Postby GoldNugget » Wed Jun 21, 2017 2:05 am

Thank you for the suggestion. I added the repos and upgraded. Everything went fine but Kodi is still stuck at 14.2 and claims it is the newest version. Now several more addons have quit working. This version is nearly useless and all attempts at upgrading have failed. I'm definitely going to have to find another media solution.

youstupiddarkness
Level 1
Level 1
Posts: 21
Joined: Sat Jun 17, 2017 8:29 pm

Re: Kodi upgrade?

Postby youstupiddarkness » Fri Jun 23, 2017 7:09 pm

What does

Code: Select all

apt-cache policy kodi


show as available versions?

If the newer ones don't show up, show us your repositories with

Code: Select all

inxi -r

GoldNugget
Level 1
Level 1
Posts: 20
Joined: Mon Jan 01, 2007 6:51 pm

Re: Kodi upgrade?

Postby GoldNugget » Fri Jun 23, 2017 9:22 pm

Thanks for the suggestion. OK..It shows here:

blah@blah ~ $ apt-cache policy kodi
kodi:
Installed: 5:14.2+repack-dmo1b2
Candidate: 5:14.2+repack-dmo1b2
Version table:
*** 5:14.2+repack-dmo1b2 0
500 http://www.deb-multimedia.org/ jessie/main amd64 Packages
100 /var/lib/dpkg/status
2:17.3.dfsg1-1~bpo8 0
500 http://download.opensuse.org/repositori ... ebian_8.0/ Packages
2:17.1+dfsg1-3 0
300 http://httpredir.debian.org/debian/ testing/main amd64 Packages
16.1+dfsg1-2~bpo8+2 0
400 http://http.debian.net/debian/ jessie-backports/main amd64 Packages

But Synaptic still lists 14.2 as the latest version and running apt-get in a terminal just gives this:
sudo apt-get upgrade kodi
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... kodi is already the newest version.

So...how to complete the upgrade?

Penn
Level 5
Level 5
Posts: 660
Joined: Tue Jun 10, 2014 1:12 pm

Re: Kodi upgrade?

Postby Penn » Sat Jun 24, 2017 1:34 pm

GoldNugget wrote:Thanks for the suggestion. OK..It shows here:

blah@blah ~ $ apt-cache policy kodi
kodi:
Installed: 5:14.2+repack-dmo1b2
Candidate: 5:14.2+repack-dmo1b2
Version table:
*** 5:14.2+repack-dmo1b2 0
500 http://www.deb-multimedia.org/ jessie/main amd64 Packages
100 /var/lib/dpkg/status
2:17.3.dfsg1-1~bpo8 0
500 http://download.opensuse.org/repositori ... ebian_8.0/ Packages
2:17.1+dfsg1-3 0
300 http://httpredir.debian.org/debian/ testing/main amd64 Packages
16.1+dfsg1-2~bpo8+2 0
400 http://http.debian.net/debian/ jessie-backports/main amd64 Packages

But Synaptic still lists 14.2 as the latest version and running apt-get in a terminal just gives this:
sudo apt-get upgrade kodi
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... kodi is already the newest version.

So...how to complete the upgrade?

The numbering system screws up the methods to automatically detect which is the most recent version. Notice how the numbering is different for the official dmo version. When synaptic or apt reads 5:14.2 it appears to be more recent than the other versions. Once you get a more recent version installed you will need to "pin" that version in Synaptic and right click to choose to ignore updates to Kodi in Update Manager.

One issue you may be running into is installing a different version isn't just a normal install process. Software Manager, to my understanding, will only have one version at any given time for install. Synaptic requires using "Force Version" but not all versions will show. apt or apt-get with a standard install command won't pull from the more recent version.

Above you were given directions for adding backports and from what is above I see it (and others) are there. The install command was incorrect because you have to tell apt to install from the backports and not the main repo.

Code: Select all

sudo apt-get -t jessie-backports install kodi


There is a similar command for testing and probably for the opensuse repo.

If some of the addons that aren't working are third party an upgrade may not fix it. DirectTV sued the largest third party repo and as a result it is currently shut down. Pressure from elsewhere means Kodi is helping reduce piracy and the simple truth is that means some legitimate third party addons are breaking and upgrading might not fix them.

youstupiddarkness
Level 1
Level 1
Posts: 21
Joined: Sat Jun 17, 2017 8:29 pm

Re: Kodi upgrade?

Postby youstupiddarkness » Sat Jun 24, 2017 2:08 pm

dmo version is from deb-multimedia, not an official Debian repo. They tacked on a "5:" epoch number to the front so their older version always looks to be the highest, even when you're trying to upgrade. There is some more information about possible problems from DMO here: https://wiki.debian.org/DebianMultimedi ... mon_issues

I used the same method to make the 0.8.14 compiz-reloaded in another one of my OBS repos look higher than the inferior (in many user's opinions) compiz-0.9.13 in Stretch: http://forums.debian.net/viewtopic.php?f=16&t=133561

The OBS repo doesn't have any fancy pinning like jessie-backports, so Kodi 17.1 would just show up as an upgrade if that dmo version wasn't squatting in the way.

GoldNugget
Level 1
Level 1
Posts: 20
Joined: Mon Jan 01, 2007 6:51 pm

Re: Kodi upgrade?

Postby GoldNugget » Sat Jun 24, 2017 2:56 pm

:(
So close and yet so far..

goldnugget@agra-jag ~ $ sudo apt-get -t jessie-backports install kodi
[sudo] password for goldnugget:
Reading package lists... Done
Building dependency tree
Reading state information... Done
kodi is already the newest version.

Penn
Level 5
Level 5
Posts: 660
Joined: Tue Jun 10, 2014 1:12 pm

Re: Kodi upgrade?

Postby Penn » Sun Jun 25, 2017 1:14 am

Well if you have 14.2 installed and the comments above tell you that incorrectly show as the more recent version I would think you need to uninstall that version. Maybe even purge.

Code: Select all

sudo apt-get purge kodi && sudo apt-get autoremove

youstupiddarkness
Level 1
Level 1
Posts: 21
Joined: Sat Jun 17, 2017 8:29 pm

Re: Kodi upgrade?

Postby youstupiddarkness » Sun Jun 25, 2017 2:47 pm

Jessie backports version is 16.1+dfsg1-2~bpo8+2. I have found that aptitude is good for installing specific versions:

Code: Select all

aptitude install kodi=16.1+dfsg1-2~bpo8+2


Remember that aptitude can try multiple solutions, so read the output CAREFULLY to see what it proposes, and hit "n" to tell it to try another solution.

Post the proposed solution here first if you really don't understand what it's going to do.

However, your first post says you want 17.3, and that's only in my repo. However, the subtitles file flaw can only affect you if you have an addon that downloads subtitles from the Net, so won't affect you if that's not the case.

GoldNugget
Level 1
Level 1
Posts: 20
Joined: Mon Jan 01, 2007 6:51 pm

Re: Kodi upgrade?

Postby GoldNugget » Sun Jun 25, 2017 5:11 pm

Well, that one came close. There is an incompatibility with kodi-bin, as it wants to install the old version*

goldnugget@agra-jag ~ $ sudo aptitude install kodi=16.1+dfsg1-2~bpo8+2
The following packages will be DOWNGRADED:
kodi{b}
The following packages are RECOMMENDED but will NOT be installed:
kodi-visualization-spectrum
0 packages upgraded, 0 newly installed, 1 downgraded, 0 to remove and 12 not upgraded.
Need to get 16.4 kB of archives. After unpacking 90.1 kB will be freed.
The following packages have unmet dependencies:
kodi : Depends: kodi-bin (< 16.1+dfsg1-2~bpo8+2.1~) but 5:14.2+repack-dmo1b2 is installed.
The following actions will resolve these dependencies:

Remove the following packages:
1) kodi


I allowed it to remove the existing kodi and then attempted a clean reinstall of 16.1+... but it wants to use the old version of kodi-bin and it won't complete the upgrade.


goldnugget@agra-jag ~ $ sudo aptitude install kodi=16.1+dfsg1-2~bpo8+2
The following NEW packages will be installed:
kodi{b} kodi-bin{a} kodi-data{a} libcec2{a} liblockdev1{a}
libmicrohttpd10{a}
The following packages are RECOMMENDED but will NOT be installed:
kodi-visualization-spectrum libhdhomerun1 libnfs8 libshairplay0
0 packages upgraded, 6 newly installed, 0 to remove and 12 not upgraded.
Need to get 16.4 kB/16.2 MB of archives. After unpacking 58.3 MB will be used.
The following packages have unmet dependencies:
kodi : Depends: kodi-bin (< 16.1+dfsg1-2~bpo8+2.1~) but 5:14.2+repack-dmo1b2 is to be installed.
The following actions will resolve these dependencies:

Keep the following packages at their current version:
1) kodi [Not Installed]

Accept this solution? [Y/n/q/?] y
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 12 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.


Same issue with 17.3:
goldnugget@agra-jag ~ $ sudo aptitude install kodi=2:17.1+dfsg1-3
The following packages will be DOWNGRADED:
kodi{b}
The following packages are RECOMMENDED but will NOT be installed:
kodi-visualization-spectrum
0 packages upgraded, 0 newly installed, 1 downgraded, 0 to remove and 12 not upgraded.
Need to get 17.1 kB of archives. After unpacking 129 kB will be freed.
The following packages have unmet dependencies:
kodi : Depends: kodi-bin (< 2:17.1+dfsg1-3.1~) but 5:14.2+repack-dmo1b2 is installed.
The following actions will resolve these dependencies:

Remove the following packages:
1) kodi

Accept this solution? [Y/n/q/?]



*I would love to install 17.3 if I could make it work and am grateful for the suggestions here. I was about to give up as I had been struggling with this problem for months with no luck. The problem persists, but it feels less hopeless now. Thanks.

Monsta
Level 9
Level 9
Posts: 2998
Joined: Fri Aug 19, 2011 3:46 am

Re: Kodi upgrade?

Postby Monsta » Mon Jun 26, 2017 5:01 am

Don't give up :)

Code: Select all

sudo aptitude install kodi=16.1+dfsg1-2~bpo8+2 kodi-bin=16.1+dfsg1-2~bpo8+2 kodi-data=16.1+dfsg1-2~bpo8+2

Penn
Level 5
Level 5
Posts: 660
Joined: Tue Jun 10, 2014 1:12 pm

Re: Kodi upgrade?

Postby Penn » Mon Jun 26, 2017 11:45 am

Monsta wrote:Don't give up :)

Code: Select all

sudo aptitude install kodi=16.1+dfsg1-2~bpo8+2 kodi-bin=16.1+dfsg1-2~bpo8+2 kodi-data=16.1+dfsg1-2~bpo8+2

Don't give up is right. But..

You need to make sure 14.2 is removed so the command I gave earlier does that.

Code: Select all

sudo apt-get purge kodi


However, what Monsta put up there should tell you Kodi is in more than one component or dependencies and in this case kodi-bin (the dependency) is in the way. The fastest to get rid of unused dependencies for all uninstalled programs is the second part of the command line I recommended.

Code: Select all

sudo apt-get autoremove


The aptitude line Monsta gave should work but a quicker line is the original line I gave since both will give you the same version

Code: Select all

sudo apt-get -t jessie-backports install kodi


This worked for me twice (the second time was a system reinstall and I forgot the backport version existed and installed 14.2).

If you really want 17.3 and you still have the repo as the policy command indicates replacing the full name of all 3 components the same way Monsta indicates from that source should install it.


Return to “Software & Applications”