You are not logged in.

#1 2015-01-10 01:51:05

tiprya
Member
Registered: 2012-10-14
Posts: 7

Unable to install kodi

Hey,
When I try to upgrade my xbmc to kodi I get this message:

error: failed to commit transaction (conflicting files)
kodi: /usr/share/xbmc exists in filesystem
Errors occurred, no packages were upgraded.

The only reference to this error in google suggests it is a problem with pacman versions prior to 4.2, but my pacman (and the rest of my system) is all up-to-date.

Any help would be appreciated.

Thanks.

Last edited by tiprya (2015-01-10 01:51:58)

Offline

#2 2015-01-10 05:17:04

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Unable to install kodi

Either your package database is broken - post the output of

stat --format "%n %s" /var/lib/pacman/local/kodi-*/files
stat --format "%n %s" /var/lib/pacman/local/xbmc-*/files

to find out - or maybe it's https://bbs.archlinux.org/viewtopic.php … 5#p1491515

Offline

#3 2015-01-10 16:57:34

Knute
Member
From: Minot, ND
Registered: 2009-03-17
Posts: 604

Re: Unable to install kodi

So force it.


Knute

Offline

#4 2015-01-11 00:24:14

tiprya
Member
Registered: 2012-10-14
Posts: 7

Re: Unable to install kodi

stat: cannot stat ‘/var/lib/pacman/local/kodi-*/files’: No such file or directory
/var/lib/pacman/local/xbmc-13.2-6/files 202360

I guess I'll just force it...

unable to --force directory-file conflicts
kodi: /usr/share/xbmc exists in filesystem
Errors occurred, no packages were upgraded.

Really not sure what to do now...

Last edited by tiprya (2015-01-11 00:26:24)

Offline

#5 2015-01-11 00:37:51

Knute
Member
From: Minot, ND
Registered: 2009-03-17
Posts: 604

Re: Unable to install kodi

My next step, and I'm not sure if this would be good to do or not, would be to simply remove the directory /usr/share/xbmc.  Your upgrade should recreate it, and all your personal settings should be stored in your home directory.


Knute

Offline

#6 2015-01-11 11:41:10

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: Unable to install kodi

Why don't you remove xbmc first? Contrary to what the Kodi wiki says, you don't need the XBMC package to migrate to Kodi. Uninstall XBMC, install Kodi.

EDIT: Really, really never suggest using force in such a situation. Only use --force, if you can anticipate the exact result of the action. In this case you didn't.

EDIT2: The problem is how the transition is being handled in the kodi PKGBUILD:

Provides:     xbmc
Replaces:     xbmc
Conflicts:     xbmc

This is prone to fail in this scenario. It is, however, the safe solution, because people might try to install XBMC from a different source or repository over their kodi package.

Last edited by Awebb (2015-01-11 11:47:54)

Offline

#7 2015-01-11 11:51:31

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,729
Website

Re: Unable to install kodi

Don't force it.  Did you update pacman and your database?  Version 4.2 should not throw those errors.  If so, just remove XBMC and then install kodi.

Offline

#8 2015-01-13 07:42:05

tiprya
Member
Registered: 2012-10-14
Posts: 7

Re: Unable to install kodi

Thanks for the help everyone.

Even after removing XBMC, it gave the same error, so I backed up and removed /usr/share/xbmc and then kodi installed perfectly and migrated all my user settings.

Last edited by tiprya (2015-01-13 07:42:26)

Offline

#9 2015-01-13 08:27:18

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: Unable to install kodi

Out of curiosity: Did you run the command that moves your package database to the pacman 4.2 format?

Offline

#10 2015-01-13 10:51:09

forumache
Member
From: Netherlands
Registered: 2011-09-02
Posts: 57

Re: Unable to install kodi

tiprya wrote:

Thanks for the help everyone.

Even after removing XBMC, it gave the same error, so I backed up and removed /usr/share/xbmc and then kodi installed perfectly and migrated all my user settings.

Just a guess...

Maybe you added something in /usr/share/xbmc directory, xbmc uninstall did not remove /usr/share/xbmc because it was not empty (had your own files inside) and then kodi installation failed, finding that /usr/share/xbmc directory still exists...

Offline

Board footer

Powered by FluxBB