8.23.3 Fail Update on RPI4

Hello,

Getting this error message when I just ran the latest upgrade:

[ INFO ] DietPi-Update | APT upgrade, please wait...
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
The following packages were automatically installed and are no longer required:
  kodi-data libcrossguid0 libcurl3-gnutls libdate-tz3 libfmt9 libfontenc1
  libice6 libjs-iscroll libjs-jquery libkissfft-float131 libsm6 libsndio7.0
  libspdlog1.10 libva-wayland2 libxaw7 libxcb-shape0 libxcomposite1 libxft2
  libxi6 libxinerama1 libxkbfile1 libxmu6 libxmuu1 libxpm4 libxt6 libxtst6
  libxv1 libxxf86dga1 python3-pycryptodome x11-common x11-utils
Use 'apt autoremove' to remove them.
The following packages will be upgraded:
  kodi kodi-bin
debconf: delaying package configuration, since apt-utils is not installed
2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
                                                              51 not fully installed or removed.
                Need to get 0 B/37.4 MB of archives.
                                                    After this operation, 54.1 MB of additional disk space will be used.
(Reading database ... 28762 files and directories currently installed.)
Preparing to unpack .../kodi_3%3a20.2-2~bookworm_all.deb ...
Unpacking kodi (3:20.2-2~bookworm) over (2:20.1+dfsg-1) ...
dpkg: error processing archive /var/cache/apt/archives/kodi_3%3a20.2-2~bookworm_all.deb (--unpack):
 trying to overwrite '/usr/lib/firewalld/services/kodi-eventserver.xml', which is also in package kodi-data 2:20.1+dfsg-1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../kodi-bin_3%3a20.2-2~bookworm_arm64.deb ...
Unpacking kodi-bin (3:20.2-2~bookworm) over (2:20.1+dfsg-1) ...
dpkg: error processing archive /var/cache/apt/archives/kodi-bin_3%3a20.2-2~bookworm_arm64.deb (--unpack):
 trying to overwrite '/usr/bin/kodi', which is also in package kodi 2:20.1+dfsg-1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/kodi_3%3a20.2-2~bookworm_all.deb
 /var/cache/apt/archives/kodi-bin_3%3a20.2-2~bookworm_arm64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
[FAILED] DietPi-Update | APT upgrade
 - Command: apt-get -y --with-new-pkgs upgrade
root@DietPi:/tmp/DietPi-Update#

Any help will be appreciated on what I need to do to fix it.

Thanks

Sounds like this one Kodi renistall fails (v7.9.3)

Hopefully solution is similar

apt purge --autoremove kodi
dietpi-software reinstall 31

Hi @Joulinar,

I run in the same issue. Tried your two lines. Removing was fine, but when I run

dietpi-software reinstall 31

I run in (Reference code: f9f9bc45-801c-414f-8f31-6d0a3410f8d8):

Details:

  • Date | Mon Oct 23 09:43:03 CEST 2023
  • Bug report | f9f9bc45-801c-414f-8f31-6d0a3410f8d8
  • DietPi version | v8.21.1 (MichaIng/master)
  • Image creator |
  • Pre-image |
  • Hardware | RPi 4 Model B (aarch64) (ID=4)
  • Kernel version | Linux RPi4V2 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
  • Distro | bookworm (ID=7,RASPBIAN=0)
  • Command | apt-get -y --allow-change-held-packages install kodi libgl1-mesa-dri
  • Exit code | 100
  • Software title | DietPi-Software

Steps to reproduce:

Expected behaviour:

Actual behaviour:

Extra details:

Additional logs:

Reading package lists...
Building dependency tree...
Reading state information...
kodi is already the newest version (3:20.2-2~bookworm).
libgl1-mesa-dri is already the newest version (23.2.1-0+rpt2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
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
E: Sub-process /usr/bin/dpkg returned an error code (1)

probably this one in addition Installation error of Kodi: post-installation script fails · Issue #6703 · MichaIng/DietPi · GitHub

That works. Kodi is updated, the dietpi system too.

Later today I can check if Kodi still works.

Thanks @Joulinar

Thank you that worked. I had to do the reinstall of Kodi after the dietpi update.