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

Installation error of Kodi: post-installation script fails #6703

Closed
joshi0531 opened this issue Oct 22, 2023 · 10 comments
Closed

Installation error of Kodi: post-installation script fails #6703

joshi0531 opened this issue Oct 22, 2023 · 10 comments
Labels
Bookworm External bug 🐞 For bugs which are not caused by DietPi. Raspberry Pi Workaround available 🆗 Workaround is available/has been implemented, but a definite solution should be found when possible.
Milestone

Comments

@joshi0531
Copy link

joshi0531 commented Oct 22, 2023

Creating a bug report/issue

Required Information

  • DietPi version
    G_DIETPI_VERSION_CORE=8
    G_DIETPI_VERSION_SUB=23
    G_DIETPI_VERSION_RC=3
    G_GITBRANCH='master'
    G_GITOWNER='MichaIng'
    G_LIVE_PATCH_STATUS[0]='applied'
  • Distro version "bookworm 0"
  • Kernel version Linux kkodi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
  • SBC model "RPi 4 Model B (aarch64)"
  • Power supply used "5V 2A Nintendo switch power supply"
  • SD card used "usb sata m.2 ssd"

Additional Information (if applicable)

  • Software title "Samba-client, FFmpeg, youtube-dl, Python 3 pip"
  • clean install of the dietpi OS
  • yes with every fresh installation of the dietpi os or directly after the auto setup.
  • Bug report ID "7d60558b-02b6-4c6a-8aa2-ff83f621b8c2"

Steps to reproduce

  1. Install Kodi with the command sudo apt-get install kodi or over the dietpi-software ui.
  2. The error occurs when the post-installation script is executed.

Expected behaviour

Kodi should be successfully installed and configured.

Actual behaviour

The error "dpkg: error processing package kodi (--configure): installed kodi package post-installation script subprocess returned error exit status 1" occurs.

Extra details

  • DietPi Version: [insert your DietPi version here]

  • Kodi Version: 3:20.2-2~bookworm

  • Excerpt from dpkg --configure -a log:

    Setting up kodi (3:20.2-2~bookworm) ...
    dpkg: error processing package kodi (--configure):
    installed kodi package post-installation script subprocess returned error exit status 1
    Errors were encountered while processing:
    kodi

  • Excerpt from the post-installation script:

    sudo sh -x /var/lib/dpkg/info/kodi.postinst configure

    • set -e
    • [ configure = configure ]
    • which update-menus
    • [ -x ]
    • [ ! -f /etc/sudoers.d/020_kodi ]
    • [ ! -f /etc/udev/rules.d/99-kodi.rules ]
    • [ ! -f /etc/polkit-1/localauthority/50-local.d/kodi.pkla ]
    • tee -a /etc/polkit-1/localauthority/50-local.d/kodi.pkla
@MichaIng
Copy link
Owner

MichaIng commented Oct 22, 2023

Strange, this looks like this ancient error which happened only with the 32-bit package on Buster: RPi-Distro/repo#153

Ah, indeed the missing directory is not even shipped anymore on Bookworm, as it has been obsoleted. So there is an update required now by the RPi maintainers.

Workaround:

sudo mkdir -p /etc/polkit-1/localauthority/50-local.d

@MichaIng MichaIng added External bug 🐞 For bugs which are not caused by DietPi. Waiting for external fix ⏳ and removed Investigating 🤔 labels Oct 22, 2023
@MichaIng MichaIng added this to the v8.24 milestone Oct 22, 2023
@MichaIng MichaIng added the Workaround available 🆗 Workaround is available/has been implemented, but a definite solution should be found when possible. label Oct 22, 2023
@leckye
Copy link

leckye commented Oct 23, 2023

another workaround i found yesterday was uninstall kodi-repository-kodi:
sudo apt remove kodi-repository-kodi

then retry the dietpi-software kodi script (with success).

@MichaIng
Copy link
Owner

If kodi-repository-kodi was installed, then you had a very different issue and faced another error 😄. However, if on v8.22 Kodi was installed from the Debian repo along with kodi-repository-kodi, and with v8.23 the RPi repo is moved to Bookworm and then the kodi package from the RPi repo installed on top, this might indeed conflict, as both packages ship the same files. I guess you do not have the error message anymore, do you?

@joshi0531
Copy link
Author

it had been a cleaner installation because I wanted to set up kodi again and then came these errors that, the autoinstall has completely scraped. i have then made it with after install and have taken as help chatgpt. now everything walks, but that can still change, after which it looks but not yet.

@MichaIng
Copy link
Owner

@joshi0531
I was addressing leckye only 😉. Your (different) issue is a bug in the RPi Kodi package, which I linked and the workaround I posted above.

@leckye
Copy link

leckye commented Nov 6, 2023

If kodi-repository-kodi was installed, then you had a very different issue and faced another error 😄. However, if on v8.22 Kodi was installed from the Debian repo along with kodi-repository-kodi, and with v8.23 the RPi repo is moved to Bookworm and then the kodi package from the RPi repo installed on top, this might indeed conflict, as both packages ship the same files. I guess you do not have the error message anymore, do you?

@MichaIng: No after i uninstalled kodi-repository-kodi, there is no error message anymore (and you are right, kodi was installed on Dietpi 8.22). Sorry i thought my issue was linked with joshi0531's one. Should i delete my messages to avoid any confusion?

@MichaIng
Copy link
Owner

MichaIng commented Nov 7, 2023

No problem. This commit should solve the package conflict, so Kodi can upgrade to the build from the RPi repo without file conflicts: 5365581

@MichaIng MichaIng modified the milestones: v8.24, v8.25 Nov 19, 2023
@freemanpt
Copy link

freemanpt commented Dec 1, 2023

Hello, I dont want to hijack this thread but maybe this is somewhat related to my problem, I was getting this error on rpi 3b, and it was fixed with the workaround posted previously, but the problem that I have is that I can't seem to make Kodi install with hardware acceleration support because all my media files when playing use 100% of the CPU and that didnt happen with 19.4 and bullseye, I tried this using rpi3b 1.2V both with dietpi bookworm 64bit and dietpi bookworm armhf I doubt this bug is directly related to dietpi but this makes upgrading out of the question for now.

@natevns08
Copy link

Strange, this looks like this ancient error which happened only with the 32-bit package on Buster: RPi-Distro/repo#153

Ah, indeed the missing directory is not even shipped anymore on Bookworm, as it has been obsoleted. So there is an update required now by the RPi maintainers.

Workaround:

sudo mkdir -p /etc/polkit-1/localauthority/50-local.d

Wanted to throw my name in the hat, this worked for me as well.

@MichaIng
Copy link
Owner

@freemanpt
Since the hardware acceleration issue is unrelated to the installation issue, can you please open a new issue about this?

I re-added the workaround for Bookworm to dietpi-software.

MichaIng added a commit that referenced this issue Dec 14, 2023
- DietPi-Software | Kodi: Worked around an issue on RPi Bookworm systems where installing Kodi failed due to a missing directory. Many thanks to @joshi0531 for reporting this issue: #6703
- DietPi-Software | Update fallback URLs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bookworm External bug 🐞 For bugs which are not caused by DietPi. Raspberry Pi Workaround available 🆗 Workaround is available/has been implemented, but a definite solution should be found when possible.
Projects
None yet
Development

No branches or pull requests

5 participants