Kodi Community Forum

Full Version: unable to install latest kodi release on ubuntu 17
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I upgraded ubuntu and then attempted to upgrade kodi. I've done a purge of kodi. Here's what I get when do sudo apt install kodi:

(Reading database ... 217766 files and directories currently installed.)
Preparing to unpack .../kodi_2%3a17.1+git20170416.2032-final-0zesty_all.deb ...
Unpacking kodi (2:17.1+git20170416.2032-final-0zesty) over (2:17.1+dfsg1-1) ...
dpkg: error processing archive /var/cache/apt/archives/kodi_2%3a17.1+git20170416.2032-final-0zesty_all.deb (--unpack):
trying to overwrite '/usr/share/man/man1/kodi.bin.1.gz', which is also in package kodi-bin:amd64 2:17.1+dfsg1-1
Preparing to unpack .../kodi-bin_2%3a17.1+git20170416.2032-final-0zesty_amd64.deb ...
Unpacking kodi-bin (2:17.1+git20170416.2032-final-0zesty) over (2:17.1+dfsg1-1) ...
dpkg: error processing archive /var/cache/apt/archives/kodi-bin_2%3a17.1+git20170416.2032-final-0zesty_amd64.deb (--unpack):
trying to overwrite '/usr/bin/kodi', which is also in package kodi 2:17.1+dfsg1-1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/kodi_2%3a17.1+git20170416.2032-final-0zesty_all.deb
/var/cache/apt/archives/kodi-bin_2%3a17.1+git20170416.2032-final-0zesty_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


I'm stuck, any help would be appreciated.
apt remove --purge kodi kodi-bin
debian decided to change our packaging conventions and swapt around package names for architecture specific binaries and arch independent data files.
The result is that you can no longer cleanly upgrade from our PPAs over already installed kodi packages from the ubuntu/debian repos....
(2017-05-07, 10:23)wsnipex Wrote: [ -> ]debian decided to change our packaging conventions and swapt around package names for architecture specific binaries and arch independent data files.
The result is that you can no longer cleanly upgrade from our PPAs over already installed kodi packages from the ubuntu/debian repos....

So what's the next step?
Nothing ... use --force-overwrite to forcefully overwrite their packages or remove them completely befoer installing from our ppa.
(2017-05-27, 17:05)fritsch Wrote: [ -> ]Nothing ... use --force-overwrite to forcefully overwrite their packages or remove them completely befoer installing from our ppa.

Would that be

Code:
sudo apt update --force-overwrite

Or something else?
Something else.
Code:
sudo apt purge kodi kodi.bin
rm -rf ~/.kodi
sudo add-apt-repository ppa:team-xbmc/ppa
sudo apt update
sudo apt install kodi

That should remove your existing kodi installation, it will remove your current .kodi folder with all settings and addons, then it will add the kodi repository, update it and will install Kodi in the end.
that won't solve the conflict, it's kodi-data that must be removed.
(2017-05-27, 17:05)fritsch Wrote: [ -> ]Nothing ... use --force-overwrite to forcefully overwrite their packages or remove them completely befoer installing from our ppa.

^^
and THEN...?
Try this:

Code:
sudo add-apt-repository ppa:team-xbmc/kodi-old
sudo apt remove kodi kodi-bin kodi-data
sudo add-apt-repository -r ppa:team-xbmc/kodi-old
sudo add-apt-repository ppa:team-xbmc/ppa
sudo apt update
sudo apt install kodi
for your old version:

Code:
sudo dpkg -i --force-all /var/cache/apt/archives/kodi_2%3a17.1+git20170416.2032-final-0zesty_all.deb /var/cache/apt/archives/kodi-bin_2%3a17.1+git20170416.2032-final-0zesty_amd64.deb

If you now have a newer version laying in /var/cache/apt/archives, please switch on the thinking mode and replace the two files with your new files after dpkg -i command ....