Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The following packages have unmet dependencies: kodi : Depends: kodi-bin #1

Open
mYnDstrEAm opened this issue Oct 23, 2020 · 19 comments

Comments

@mYnDstrEAm
Copy link

mYnDstrEAm commented Oct 23, 2020

When running sudo apt-get install kodi after completing the other steps of the guide I get:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 kodi : Depends: kodi-bin (>= 2:19.0~git20200831.4fec842+dfsg1-1~bpo10+1) but 2:17.6+dfsg1-4+b1 is to be installed
E: Unable to correct problems, you have held broken packages.

After fully removing the previously installed version of Kodi with sudo apt autoremove I get:

The following packages have unmet dependencies:
 kodi : Depends: kodi-bin (>= 2:19.0~git20200831.4fec842+dfsg1-1~bpo10+1) but it is not going to be installed
        Depends: kodi-bin (< 2:19.0~git20200831.4fec842+dfsg1-1~bpo10+1.1~) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Also when I run sudo echo "deb http://deb.debian.org/debian/ buster-backports main contrib" > /etc/apt/sources.list.d/buster-backports.list (I would not add non-free) I get bash: /etc/apt/sources.list.d/buster-backports.list: Permission denied.

@basilgello
Copy link
Owner

basilgello commented Oct 24, 2020

"deb http://deb.debian.org/debian/ buster-backports main contrib" > /etc/apt/sources.list.d/buster-backports.list

Try this instead

echo "deb http://deb.debian.org/debian/ buster-backports main contrib" | sudo tee /etc/apt/sources.list.d/buster-backports.list

Also please show the output of apt policy kodi kodi-bin and the contents of:

  • /etc/apt/preferences.d/01kodi-nightly-debian-repo
  • /etc/apt/sources.list.d/buster-backports.list

@mYnDstrEAm
Copy link
Author

Try this instead [...]

Thanks, this worked. This should probably be replaced in the guide.

Also please show the output of apt policy kodi kodi-bin

kodi:
  Installed: (none)
  Candidate: 2:19.0~git20200831.4fec842+dfsg1-1~bpo10+1
  Version table:
     2:19.0~git20200831.4fec842+dfsg1-1~bpo10+1 500
        500 https://basilgello.github.io/kodi-nightly-debian-repo buster-backports/main amd64 Packages
        500 https://basilgello.github.io/kodi-nightly-debian-repo buster-backports/main i386 Packages
     2:17.6+dfsg1-4+b1 500
        500 http://ftp.12.debian.org/debian buster/main amd64 Packages
kodi-bin:
  Installed: (none)
  Candidate: 2:19.0~git20200831.4fec842+dfsg1-1~bpo10+1
  Version table:
     2:19.0~git20200831.4fec842+dfsg1-1~bpo10+1 500
        500 https://basilgello.github.io/kodi-nightly-debian-repo buster-backports/main amd64 Packages
     2:17.6+dfsg1-4+b1 500
        500 http://ftp.12.debian.org/debian buster/main amd64 Packages

(12 = country-code)

and the contents of:
* /etc/apt/preferences.d/01kodi-nightly-debian-repo

Package: *
Pin: release l=kodi-nightly-debian-repo
Pin-Priority: 1
Package: kodi*
Pin: release l=kodi-nightly-debian-repo
Pin-Priority: 500
* /etc/apt/sources.list.d/buster-backports.list

deb http://deb.debian.org/debian/ buster-backports main contrib

(I also had backports enabled in /etc/apt/sources.list already so creating that last file was redundant, maybe this should also go into the guide; commenting out that second backports didn't help with the problem)

@basilgello
Copy link
Owner

OK let me reproduce the issue and fix the guide. I will commit it after I update the repo (~3-6h hopefully)

@basilgello
Copy link
Owner

@mYnDstrEAm I updated the repo and the instruction. Since your apt policy kodi kodi-bin show expected values, just update your apt and install Kodi:

sudo apt update
sudo apt install --install-recommends -t buster-backports kodi

@mYnDstrEAm
Copy link
Author

mYnDstrEAm commented Oct 24, 2020

Great that worked! It didn't install all packages so I had to use Apper to install the rest (e.g. libpostproc55 and ffmpeg; this also happened with other packages with apt-get upgrade).

Now I'll try to get the addons for reddit and lutris working (the youtube addon currently requires logging in and, unlike the reddit addon, doesn't allow watching videos without doing so). The Kodi-Lutris addon didn't work so far: RobLoach/lutris-kodi-addon#46
Other than that I'm interested in how the authenticity of the installed packages can be guaranteed with this setup (could debsums be used for this?). Is there any way to use hashes to verify authenticity of the packages in the repo / downloaded from your repo?
Once these 3 things are working in a good way (e.g. these packages get moved into official backports and at least the 2 addons, if not for youtube, are working) I'd consider Kodi to run 'completely' under Debian (and hence there'll be a FOSS comprehensive/all-in-one media center - including gaming - on Debian).
All of these things are separate issues at most so you could close this issue. Thank you!

@basilgello
Copy link
Owner

basilgello commented Oct 24, 2020 via email

@basilgello
Copy link
Owner

basilgello commented Oct 24, 2020 via email

@mYnDstrEAm
Copy link
Author

mYnDstrEAm commented Oct 26, 2020

Sounds great!

For the verification of builds: do you know of a tool to compare hashes of all files within all the relevant git repos with all files of all other relevant git repos (the official kodi source code and all dependencies that are also downloaded from your repo) and to display a diff (all diferences)? Probably git can be used for this somehow - I'm not sure how such verification could be done in practice and how reproducible builds are currently verified.

Also how does this work with the addon "Version check" that's apparently been added to the official Team Kodi Add-on repository now (it displays under Add-ons to update but when opening it, it only has the Install button, not the Update button, enabled)? Furthermore, why does Apper display v17.6 is installed even though I ran sudo apt-get remove kodi before installing v19 via your repo (it does display the correct version when running firejail kodi)? I think the reddit addon was in the addons in v19 before but now I can't find it with the search.

Lutris is amazing - it's one of the best GNU/Linux software there is. It doesn't violate any copyright laws. Not sure why it's not in the official Kodi Add-on repository. I'll ask about it. Maybe because it's not working good enough as is also indicated by not working on any Kodi version I tried under Debian so far. It would be nice if you could install and test it.

@basilgello
Copy link
Owner

basilgello commented Oct 26, 2020 via email

@mYnDstrEAm
Copy link
Author

mYnDstrEAm commented Oct 28, 2020

Thanks! I'll look into it later or at least I hope I find some time for it. diffoscope sounds really useful but it has a ton of dependencies, even android ones, and is 300 MB so I'm a bit skeptical of it currently. I'll see if there are any good alternatives to it - things like this could also be useful for backup-related tools (as well as maybe history-, archiving- and security/IDS-related ones).

For the Lutris-Kodi addon I have updated the linked issue: when installing the addon and running it without firejail I get failed to open zone.tab and libva info: va_openDriver() returns 0 (see full output at the linked issue) so it might be a problem with libva (and tzdata?).

@mYnDstrEAm
Copy link
Author

mYnDstrEAm commented Oct 28, 2020

As it displayed 17.6 and not 19 in Apper I uninstalled the built version and removed the package on one of my machines. I went through the guide a second time. After the command to install I got this at the bottom of the installation output:

Errors were encountered while processing:
 /tmp/apt-dpkg-install-HWztW5/13-libavcodec58_7%3a4.3.1-5.1~bpo10+1_amd64.deb
 /tmp/apt-dpkg-install-HWztW5/16-libswresample3_7%3a4.3.1-5.1~bpo10+1_i386.deb
 /tmp/apt-dpkg-install-HWztW5/19-libavresample4_7%3a4.3.1-5.1~bpo10+1_i386.deb
 /tmp/apt-dpkg-install-HWztW5/27-libavutil56_7%3a4.3.1-5.1~bpo10+1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Methods 1-3 here did not work to resolve this.

When I run sudo apt remove kodi and with the other commands I get:

Try apt --fix-broken install ...  
The following packages have unresolved dependencies:
ffmpeg: depends on: libavcodec58
[...]

And when I run sudo apt --fix-broken install it asks me to remove even packages like dolphin and chromium.

On another machine the Kodi from your repository is still installed and it also displays v 19 in Apper.

@basilgello
Copy link
Owner

basilgello commented Oct 28, 2020 via email

@mYnDstrEAm
Copy link
Author

mYnDstrEAm commented Oct 28, 2020

That's a ton of packages after The following packages were automatically installed and are no longer required and quite a few (including vlc for example) after The following packages will be REMOVED. I don't think the specific package-names would be useful. It's on the order of 1 GB in total. I get the same output when running sudo apt --fix-broken install. Note that I went through the guide 1:1 after having gone through it once earlier. I noticed that I had 2 entries for buster-backports afterwards (the one I already had in sources.list and the one added to /etc/apt/sources.list.d/buster-backports.list via the guide as the respective grep did not find the previous in sources.list due to usage of http) but this shouldn't have caused the problem. I had about 1 GB of disk space available and the language configured with tzdata also shouldn't be a problem hence I don't have any idea what might have caused this. Did you mean to ask about the output of sudo apt-get install -f kodi or maybe sudo dpkg --configure -a?

@basilgello
Copy link
Owner

basilgello commented Oct 28, 2020

Please post both logs: sudo apt-get install -f and sudo apt-get install -f kodi. You can send me an email with them if you dont want to make it public - I totally understand that!

@mYnDstrEAm
Copy link
Author

mYnDstrEAm commented Oct 29, 2020

Here's the output of sudo dpkg --configure -a (I edited my recent comment):

dpkg: dependency problems prevent configuration of libavutil-dev:amd64:
 libavutil-dev:amd64 depends on libavutil56 (= 7:4.3.1-5.1~bpo10+1); however:
  Version of libavutil56:amd64 on system is 7:4.1.6-1~deb10u1.

dpkg: error processing package libavutil-dev:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libswresample-dev:amd64:
 libswresample-dev:amd64 depends on libavutil-dev (= 7:4.3.1-5.1~bpo10+1); however:
  Package libavutil-dev:amd64 is not configured yet.

dpkg: error processing package libswresample-dev:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libavformat58:amd64:
 libavformat58:amd64 depends on libavcodec58 (= 7:4.3.1-5.1~bpo10+1); however:
  Version of libavcodec58:amd64 on system is 7:4.1.6-1~deb10u1.
 libavformat58:amd64 depends on libavutil56 (= 7:4.3.1-5.1~bpo10+1); however:
  Version of libavutil56:amd64 on system is 7:4.1.6-1~deb10u1.

dpkg: error processing package libavformat58:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libavcodec-dev:amd64:
 libavcodec-dev:amd64 depends on libavcodec58 (= 7:4.3.1-5.1~bpo10+1); however:
  Version of libavcodec58:amd64 on system is 7:4.1.6-1~deb10u1.
 libavcodec-dev:amd64 depends on libavutil-dev (= 7:4.3.1-5.1~bpo10+1); however:
  Package libavutil-dev:amd64 is not configured yet.
 libavcodec-dev:amd64 depends on libswresample-dev (= 7:4.3.1-5.1~bpo10+1); however:
  Package libswresample-dev:amd64 is not configured yet.

dpkg: error processing package libavcodec-dev:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libpostproc-dev:amd64:
 libpostproc-dev:amd64 depends on libavutil-dev (= 7:4.3.1-5.1~bpo10+1); however:
  Package libavutil-dev:amd64 is not configured yet.

dpkg: error processing package libpostproc-dev:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libavfilter-dev:amd64:
 libavfilter-dev:amd64 depends on libavcodec-dev (= 7:4.3.1-5.1~bpo10+1); however:
  Package libavcodec-dev:amd64 is not configured yet.
 libavfilter-dev:amd64 depends on libavutil-dev (= 7:4.3.1-5.1~bpo10+1); however:
  Package libavutil-dev:amd64 is not configured yet.
 libavfilter-dev:amd64 depends on libpostproc-dev (= 7:4.3.1-5.1~bpo10+1); however:
  Package libpostproc-dev:amd64 is not configured yet.
 libavfilter-dev:amd64 depends on libswresample-dev (= 7:4.3.1-5.1~bpo10+1); however:
  Package libswresample-dev:amd64 is not configured yet.

dpkg: error processing package libavfilter-dev:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of kodi-x11:amd64:
 kodi-x11:amd64 depends on libavcodec58 (>= 7:4.2.2); however:
  Version of libavcodec58:amd64 on system is 7:4.1.6-1~deb10u1.
 kodi-x11:amd64 depends on libavformat58 (>= 7:4.2.2); however:
  Package libavformat58:amd64 is not configured yet.
 kodi-x11:amd64 depends on libavutil56 (>= 7:4.2.2); however:
  Version of libavutil56:amd64 on system is 7:4.1.6-1~deb10u1.

dpkg: error processing package kodi-x11:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libavresample-dev:amd64:
 libavresample-dev:amd64 depends on libavutil-dev (= 7:4.3.1-5.1~bpo10+1); however:
  Package libavutil-dev:amd64 is not configured yet.

dpkg: error processing package libavresample-dev:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libavformat-dev:amd64:
 libavformat-dev:amd64 depends on libavcodec-dev (= 7:4.3.1-5.1~bpo10+1); however:
  Package libavcodec-dev:amd64 is not configured yet.
 libavformat-dev:amd64 depends on libavformat58 (= 7:4.3.1-5.1~bpo10+1); however:
  Package libavformat58:amd64 is not configured yet.
 libavformat-dev:amd64 depends on libavutil-dev (= 7:4.3.1-5.1~bpo10+1); however:
  Package libavutil-dev:amd64 is not configured yet.
 libavformat-dev:amd64 depends on libswresample-dev (= 7:4.3.1-5.1~bpo10+1); however:
  Package libswresample-dev:amd64 is not configured yet.

dpkg: error processing package libavformat-dev:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: error processing package libswresample3:amd64 (--configure):
 package libswresample3:amd64 7:4.3.1-5.1~bpo10+1 cannot be configured because libswresample3:i386 is at a different version (7:4.1.6-1~deb
10u1)
dpkg: error processing package libavresample4:amd64 (--configure):
 package libavresample4:amd64 7:4.3.1-5.1~bpo10+1 cannot be configured because libavresample4:i386 is at a different version (7:4.1.6-1~deb
10u1)
dpkg: error processing package libavutil56:i386 (--configure):
 package libavutil56:i386 7:4.3.1-5.1~bpo10+1 cannot be configured because libavutil56:amd64 is at a different version (7:4.1.6-1~deb10u1)
dpkg: dependency problems prevent configuration of libswscale-dev:amd64:
 libswscale-dev:amd64 depends on libavutil-dev (= 7:4.3.1-5.1~bpo10+1); however:
  Package libavutil-dev:amd64 is not configured yet.

dpkg: error processing package libswscale-dev:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libpostproc55:amd64:
 libpostproc55:amd64 depends on libavutil56 (= 7:4.3.1-5.1~bpo10+1); however:
  Version of libavutil56:amd64 on system is 7:4.1.6-1~deb10u1.

dpkg: error processing package libpostproc55:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libavdevice58:amd64:
 libavdevice58:amd64 depends on libavcodec58 (= 7:4.3.1-5.1~bpo10+1); however:
  Version of libavcodec58:amd64 on system is 7:4.1.6-1~deb10u1.
 libavdevice58:amd64 depends on libavformat58 (= 7:4.3.1-5.1~bpo10+1); however:
  Package libavformat58:amd64 is not configured yet.
 libavdevice58:amd64 depends on libavutil56 (= 7:4.3.1-5.1~bpo10+1); however:
  Version of libavutil56:amd64 on system is 7:4.1.6-1~deb10u1.

dpkg: error processing package libavdevice58:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of kodi-bin:
 kodi-bin depends on kodi-x11 (= 2:19.0~git20201024.b619a44+dfsg1-1~bpo10+1) | kodi-wayland (= 2:19.0~git20201024.b619a44+dfsg1-1~bpo10+1) 
| kodi-gbm (= 2:19.0~git20201024.b619a44+dfsg1-1~bpo10+1); however:
  Package kodi-x11:amd64 is not configured yet.
  Package kodi-wayland is not installed.
  Package kodi-gbm is not installed.

dpkg: error processing package kodi-bin (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libavfilter7:amd64:
 libavfilter7:amd64 depends on libavcodec58 (= 7:4.3.1-5.1~bpo10+1); however:
  Version of libavcodec58:amd64 on system is 7:4.1.6-1~deb10u1.
 libavfilter7:amd64 depends on libavformat58 (= 7:4.3.1-5.1~bpo10+1); however:
  Package libavformat58:amd64 is not configured yet.
 libavfilter7:amd64 depends on libavutil56 (= 7:4.3.1-5.1~bpo10+1); however:
  Version of libavutil56:amd64 on system is 7:4.1.6-1~deb10u1.
 libavfilter7:amd64 depends on libpostproc55 (= 7:4.3.1-5.1~bpo10+1); however:
  Package libpostproc55:amd64 is not configured yet.
 libavfilter7:amd64 depends on libswresample3 (= 7:4.3.1-5.1~bpo10+1); however:
  Package libswresample3:amd64 is not configured yet.

dpkg: error processing package libavfilter7:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: error processing package libavcodec58:i386 (--configure):
 package libavcodec58:i386 7:4.3.1-5.1~bpo10+1 cannot be configured because libavcodec58:amd64 is at a different version (7:4.1.6-1~deb10u1)
dpkg: dependency problems prevent configuration of libswscale5:amd64:
 libswscale5:amd64 depends on libavutil56 (= 7:4.3.1-5.1~bpo10+1); however:
  Version of libavutil56:amd64 on system is 7:4.1.6-1~deb10u1.

dpkg: error processing package libswscale5:amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ffmpeg:
 ffmpeg depends on libavcodec58 (= 7:4.3.1-5.1~bpo10+1); however:
  Version of libavcodec58:amd64 on system is 7:4.1.6-1~deb10u1.
 ffmpeg depends on libavdevice58 (= 7:4.3.1-5.1~bpo10+1); however:
  Package libavdevice58:amd64 is not configured yet.
 ffmpeg depends on libavfilter7 (= 7:4.3.1-5.1~bpo10+1); however:
  Package libavfilter7:amd64 is not configured yet.
 ffmpeg depends on libavformat58 (= 7:4.3.1-5.1~bpo10+1); however:
  Package libavformat58:amd64 is not configured yet.
 ffmpeg depends on libavresample4 (= 7:4.3.1-5.1~bpo10+1); however:
  Package libavresample4:amd64 is not configured yet.
 ffmpeg depends on libavutil56 (= 7:4.3.1-5.1~bpo10+1); however:
  Version of libavutil56:amd64 on system is 7:4.1.6-1~deb10u1.
 ffmpeg depends on libpostproc55 (= 7:4.3.1-5.1~bpo10+1); however:
  Package libpostproc55:amd64 is not configured yet.
 ffmpeg depends on libswresample3 (= 7:4.3.1-5.1~bpo10+1); however:
  Package libswresample3:amd64 is not configured yet.
 ffmpeg depends on libswscale5 (= 7:4.3.1-5.1~bpo10+1); however:
  Package libswscale5:amd64 is not configured yet.

dpkg: error processing package ffmpeg (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of kodi:
 kodi depends on kodi-bin (>= 2:19.0~git20201024.b619a44+dfsg1-1~bpo10+1); however:
  Package kodi-bin is not configured yet.
 kodi depends on kodi-bin (<< 2:19.0~git20201024.b619a44+dfsg1-1~bpo10+1.1~); however:
  Package kodi-bin is not configured yet.

dpkg: error processing package kodi (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libavutil-dev:amd64
 libswresample-dev:amd64
 libavformat58:amd64
 libavcodec-dev:amd64
 libpostproc-dev:amd64
 libavfilter-dev:amd64
 kodi-x11:amd64
 libavresample-dev:amd64
 libavformat-dev:amd64
 libswresample3:amd64
 libavresample4:amd64
 libavutil56:i386
 libswscale-dev:amd64
 libpostproc55:amd64
 libavdevice58:amd64
 kodi-bin
 libavfilter7:amd64
 libavcodec58:i386
 libswscale5:amd64
 ffmpeg
 kodi

Here's the output of sudo apt-get install -f kodi:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
kodi is already the newest version (2:19.0~git20201024.b619a44+dfsg1-1~bpo10+1).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 ffmpeg : Depends: libavcodec58 (= 7:4.3.1-5.1~bpo10+1)
          Depends: libavutil56 (= 7:4.3.1-5.1~bpo10+1) but 7:4.1.6-1~deb10u1 is to be installed
 kodi-x11 : Depends: libavcodec58 (>= 7:4.2.2)
            Depends: libavutil56 (>= 7:4.2.2) but 7:4.1.6-1~deb10u1 is to be installed
 libavcodec-dev : Depends: libavcodec58 (= 7:4.3.1-5.1~bpo10+1)
 libavcodec58 : Depends: libswresample3 (= 7:4.1.6-1~deb10u1) but 7:4.3.1-5.1~bpo10+1 is to be installed
                Breaks: libavcodec58:i386 (!= 7:4.1.6-1~deb10u1)
 libavcodec58:i386 : Depends: libswresample3:i386 (= 7:4.3.1-5.1~bpo10+1) but 7:4.1.6-1~deb10u1 is to be installed
                     Breaks: libavcodec58 (!= 7:4.3.1-5.1~bpo10+1)
 libavdevice58 : Depends: libavcodec58 (= 7:4.3.1-5.1~bpo10+1)
                 Depends: libavutil56 (= 7:4.3.1-5.1~bpo10+1) but 7:4.1.6-1~deb10u1 is to be installed
 libavfilter7 : Depends: libavcodec58 (= 7:4.3.1-5.1~bpo10+1)
                Depends: libavutil56 (= 7:4.3.1-5.1~bpo10+1) but 7:4.1.6-1~deb10u1 is to be installed
 libavformat58 : Depends: libavcodec58 (= 7:4.3.1-5.1~bpo10+1)
                 Depends: libavutil56 (= 7:4.3.1-5.1~bpo10+1) but 7:4.1.6-1~deb10u1 is to be installed
 libavresample4 : Depends: libavutil56 (= 7:4.3.1-5.1~bpo10+1) but 7:4.1.6-1~deb10u1 is to be installed
                  Breaks: libavresample4:i386 (!= 7:4.3.1-5.1~bpo10+1) but 7:4.1.6-1~deb10u1 is to be installed
 libavresample4:i386 : Depends: libavutil56:i386 (= 7:4.1.6-1~deb10u1) but 7:4.3.1-5.1~bpo10+1 is to be installed
                       Breaks: libavresample4 (!= 7:4.1.6-1~deb10u1) but 7:4.3.1-5.1~bpo10+1 is to be installed
 libavutil-dev : Depends: libavutil56 (= 7:4.3.1-5.1~bpo10+1) but 7:4.1.6-1~deb10u1 is to be installed
 libavutil56 : Breaks: libavutil56:i386 (!= 7:4.1.6-1~deb10u1) but 7:4.3.1-5.1~bpo10+1 is to be installed
 libavutil56:i386 : Breaks: libavutil56 (!= 7:4.3.1-5.1~bpo10+1) but 7:4.1.6-1~deb10u1 is to be installed
 libpostproc55 : Depends: libavutil56 (= 7:4.3.1-5.1~bpo10+1) but 7:4.1.6-1~deb10u1 is to be installed
 libswresample3 : Depends: libavutil56 (= 7:4.3.1-5.1~bpo10+1) but 7:4.1.6-1~deb10u1 is to be installed
                  Breaks: libswresample3:i386 (!= 7:4.3.1-5.1~bpo10+1) but 7:4.1.6-1~deb10u1 is to be installed
 libswresample3:i386 : Depends: libavutil56:i386 (= 7:4.1.6-1~deb10u1) but 7:4.3.1-5.1~bpo10+1 is to be installed
                       Breaks: libswresample3 (!= 7:4.1.6-1~deb10u1) but 7:4.3.1-5.1~bpo10+1 is to be installed
 libswscale5 : Depends: libavutil56 (= 7:4.3.1-5.1~bpo10+1) but 7:4.1.6-1~deb10u1 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

Should I maybe edit /var/lib/dpkg/status as described here?

Also mpv is not running anymore when I run mpv I get: mpv: relocation error: /usr/lib/x86_64-linux-gnu/libavformat.so.58: symbol av_log_once version LIBAVUTIL_56 not defined in file libavutil.so.56 with link time reference and I can't open files with mpv but I still have one instance of mpv open and it still plays the track. VLC still works.

@basilgello
Copy link
Owner

basilgello commented Oct 29, 2020 via email

@mYnDstrEAm
Copy link
Author

mYnDstrEAm commented Oct 29, 2020

When I run sudo apt install -t buster-backports libavutil56 I get:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 ffmpeg : Depends: libavcodec58 (= 7:4.3.1-5.1~bpo10+1)
 kodi-x11 : Depends: libavcodec58 (>= 7:4.2.2)
 libavcodec-dev : Depends: libavcodec58 (= 7:4.3.1-5.1~bpo10+1)
 libavcodec58 : Depends: libavutil56 (= 7:4.1.6-1~deb10u1) but 7:4.3.1-5.1~bpo10+1 is to be installed
                Depends: libswresample3 (= 7:4.1.6-1~deb10u1) but 7:4.3.1-5.1~bpo10+1 is to be installed
                Breaks: libavcodec58:i386 (!= 7:4.1.6-1~deb10u1)
 libavcodec58:i386 : Depends: libswresample3:i386 (= 7:4.3.1-5.1~bpo10+1) but 7:4.1.6-1~deb10u1 is to be installed
                     Breaks: libavcodec58 (!= 7:4.3.1-5.1~bpo10+1)
 libavdevice58 : Depends: libavcodec58 (= 7:4.3.1-5.1~bpo10+1)
 libavfilter7 : Depends: libavcodec58 (= 7:4.3.1-5.1~bpo10+1)
 libavformat58 : Depends: libavcodec58 (= 7:4.3.1-5.1~bpo10+1)
 libavresample4 : Breaks: libavresample4:i386 (!= 7:4.3.1-5.1~bpo10+1) but 7:4.1.6-1~deb10u1 is to be installed
 libavresample4:i386 : Depends: libavutil56:i386 (= 7:4.1.6-1~deb10u1) but 7:4.3.1-5.1~bpo10+1 is to be installed
                       Breaks: libavresample4 (!= 7:4.1.6-1~deb10u1) but 7:4.3.1-5.1~bpo10+1 is to be installed
 libswresample3 : Breaks: libswresample3:i386 (!= 7:4.3.1-5.1~bpo10+1) but 7:4.1.6-1~deb10u1 is to be installed
 libswresample3:i386 : Depends: libavutil56:i386 (= 7:4.1.6-1~deb10u1) but 7:4.3.1-5.1~bpo10+1 is to be installed
                       Breaks: libswresample3 (!= 7:4.1.6-1~deb10u1) but 7:4.3.1-5.1~bpo10+1 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

I get the same output as the second output of the previous comment when I run sudo apt-get remove kodi.

@mYnDstrEAm
Copy link
Author

mYnDstrEAm commented Oct 29, 2020

When I run sudo apt install -t buster-backports libavutil56 libavcodec58 libswresample3 libavresample4:i386 libavutil56:i386 libswresample3:i386 I get:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
libswresample3 is already the newest version (7:4.3.1-5.1~bpo10+1).
libswresample3 set to manually installed.
libavutil56:i386 is already the newest version (7:4.3.1-5.1~bpo10+1).
libavutil56:i386 set to manually installed.
The following package was automatically installed and is no longer required:
  libcrystalhd3:i386
Use 'sudo apt autoremove' to remove it.
The following packages will be upgraded:
  libavcodec58 libavresample4:i386 libavutil56 libswresample3:i386
4 upgraded, 0 newly installed, 0 to remove and 232 not upgraded.
21 not fully installed or removed.
Need to get 0 B/5,460 kB of archives.
After this operation, 639 kB of additional disk space will be used.

when I run it I get:

Do you want to continue? [Y/n] y
Reading changelogs... Done
apt-listchanges: Do you want to continue? [Y/n] y
apt-listchanges: Mailing root: apt-listchanges: changelogs for hostname
(Reading database ... 427758 files and directories currently installed.)
Preparing to unpack .../libavcodec58_7%3a4.3.1-5.1~bpo10+1_amd64.deb ...
Unpacking libavcodec58:amd64 (7:4.3.1-5.1~bpo10+1) over (7:4.1.6-1~deb10u1) ...
dpkg: error processing archive /var/cache/apt/archives/libavcodec58_7%3a4.3.1-5.1~bpo10+1_amd64.deb (--unpack):
 trying to overwrite shared '/usr/share/doc/libavcodec58/changelog.Debian.gz', which is different from other instances of package libavcodec58:amd64
Preparing to unpack .../libswresample3_7%3a4.3.1-5.1~bpo10+1_i386.deb ...
Unpacking libswresample3:i386 (7:4.3.1-5.1~bpo10+1) over (7:4.1.6-1~deb10u1) ...
dpkg: error processing archive /var/cache/apt/archives/libswresample3_7%3a4.3.1-5.1~bpo10+1_i386.deb (--unpack):
 trying to overwrite shared '/usr/share/doc/libswresample3/changelog.Debian.gz', which is different from other instances of package libswresample3:i386
Preparing to unpack .../libavresample4_7%3a4.3.1-5.1~bpo10+1_i386.deb ...
Unpacking libavresample4:i386 (7:4.3.1-5.1~bpo10+1) over (7:4.1.6-1~deb10u1) ...
dpkg: error processing archive /var/cache/apt/archives/libavresample4_7%3a4.3.1-5.1~bpo10+1_i386.deb (--unpack):
 trying to overwrite shared '/usr/share/doc/libavresample4/changelog.Debian.gz', which is different from other instances of package libavresample4:i386
Preparing to unpack .../libavutil56_7%3a4.3.1-5.1~bpo10+1_amd64.deb ...
Unpacking libavutil56:amd64 (7:4.3.1-5.1~bpo10+1) over (7:4.1.6-1~deb10u1) ...
dpkg: error processing archive /var/cache/apt/archives/libavutil56_7%3a4.3.1-5.1~bpo10+1_amd64.deb (--unpack):
 trying to overwrite shared '/usr/share/doc/libavutil56/changelog.Debian.gz', which is different from other instances of package libavutil56:amd64
Errors were encountered while processing:
 /var/cache/apt/archives/libavcodec58_7%3a4.3.1-5.1~bpo10+1_amd64.deb
 /var/cache/apt/archives/libswresample3_7%3a4.3.1-5.1~bpo10+1_i386.deb
 /var/cache/apt/archives/libavresample4_7%3a4.3.1-5.1~bpo10+1_i386.deb
 /var/cache/apt/archives/libavutil56_7%3a4.3.1-5.1~bpo10+1_amd64.deb
[ Rootkit Hunter version 1.4.6 ]
File updated: searched for 181 files, found 146
E: Sub-process /usr/bin/dpkg returned an error code (1)

If using --force-overwrite or removing the changelog files or moving the directory with the problematic files solves this problem it should probably be prevented somehow. I'll see if it also occurs on another machine. Probably it has to do with the removal of the built and installed kodi versions of kodi.

@mYnDstrEAm
Copy link
Author

mYnDstrEAm commented Oct 29, 2020

The solution was:

sudo rm /usr/share/doc/libavcodec58/changelog.Debian.gz
sudo rm /usr/share/doc/libswresample3/changelog.Debian.gz
sudo rm /usr/share/doc/libavresample4/changelog.Debian.gz
sudo rm /usr/share/doc/libavutil56/changelog.Debian.gz
sudo apt install -t buster-backports libavutil56 libavcodec58 libswresample3 libavresample4:i386 libavutil56:i386 libswresample3:i386

I'll put the above outputs into pastebins. This probably should be prevented somehow but maybe one only needs to make sure all Kodis are removed before installing from your repo.


The Lutris-Kodi addon does display games on one of my machines now. I have edited the issue there with an error I get on another machine where it does not display any games.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants