Manual upgrade does not work

Since a couple of years I use 2 commands to upgrade osmc manually. It always worked fine, but this time I have a problem that I cannot solve.

Here is what I get:


osmc@osmc:~$ sudo apt-get update
Hit:1 http://security.debian.org buster/updates InRelease
Hit:2 http://ftp.debian.org/debian buster InRelease
Hit:3 http://ftp.debian.org/debian buster-updates InRelease
Hit:4 http://ftp.fau.de/osmc/osmc/apt buster InRelease
Reading package lists... Done
osmc@osmc:~$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  python-pil python-unidecode rbp2-image-4.19.122-1-osmc
Use 'sudo apt autoremove' to remove them.
The following packages will be upgraded:
  rbp2-mediacenter-osmc
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
Need to get 0 B/152 MB of archives.
After this operation, 11.2 MB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.
osmc@osmc:~$ sudo apt autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  libpython3.7 python3-pil python3-unidecode rbp2-image-4.19.122-1-osmc
  rbp2-mesa-osmc
0 upgraded, 0 newly installed, 5 to remove and 1 not upgraded.
4 not fully installed or removed.
After this operation, 84.9 MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 41383 files and directories currently installed.)
Removing libpython3.7:armhf (3.7.3-2+deb10u3) ...
Removing python3-pil:armhf (5.4.1-2+deb10u2) ...
Removing python3-unidecode (1.0.23-1) ...
Removing rbp2-mesa-osmc (20.2.0-2) ...
Removing rbp2-image-4.19.122-1-osmc (1) ...
Examining /etc/kernel/prerm.d.
Examining /etc/kernel/postrm.d .
Processing triggers for libc-bin (2.28-110.1) ...
Processing triggers for mime-support (3.62) ...
osmc@osmc:~$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  python-pil python-unidecode
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  libpython3.7 python3-pil python3-unidecode rbp2-mesa-osmc
The following packages will be upgraded:
  rbp2-mediacenter-osmc
1 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/157 MB of archives.
After this operation, 26.4 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Selecting previously unselected package python3-pil:armhf.
(Reading database ... 38988 files and directories currently installed.)
Preparing to unpack .../python3-pil_5.4.1-2+deb10u2_armhf.deb ...
Unpacking python3-pil:armhf (5.4.1-2+deb10u2) ...
Selecting previously unselected package python3-unidecode.
Preparing to unpack .../python3-unidecode_1.0.23-1_all.deb ...
Unpacking python3-unidecode (1.0.23-1) ...
Selecting previously unselected package libpython3.7:armhf.
Preparing to unpack .../libpython3.7_3.7.3-2+deb10u3_armhf.deb ...
Unpacking libpython3.7:armhf (3.7.3-2+deb10u3) ...
Selecting previously unselected package rbp2-mesa-osmc.
Preparing to unpack .../rbp2-mesa-osmc_20.2.0-2_armhf.deb ...
Unpacking rbp2-mesa-osmc (20.2.0-2) ...
Preparing to unpack .../rbp2-mediacenter-osmc_19.1.0-14_armhf.deb ...
Unpacking rbp2-mediacenter-osmc (19.1.0-14) over (18.9.0-4) ...
dpkg: error processing archive /var/cache/apt/archives/rbp2-mediacenter-osmc_19.1.0-1                                                                                                                                                                                                                                        4_armhf.deb (--unpack):
 trying to overwrite '/usr/share/kodi/addons/visualization.spectrum/addon.xml', which                                                                                                                                                                                                                                         is also in package kodi-visualization-spectrum:armhf 1.1.1-1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/rbp2-mediacenter-osmc_19.1.0-14_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
osmc@osmc:~$ 

I have deleted /usr/share/kodi/addons/visualization.spectrum/ but this did not solve the issue.
Please help :slight_smile:

You may have other Kodi packages on your system.
Full logs should show this.

Here they are https://paste.osmc.tv/nojiteloko

You installed: kodi-visualization-spectrum. You should remove this pakcage.

That is somehow problematic…

osmc@osmc:~$ sudo apt-get --purge remove kodi-visualization-spectrum
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:
 rbp2-device-osmc : Depends: rbp2-mediacenter-osmc but it is not going to be ins                   talled
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or speci                   fy a solution).
osmc@osmc:~$ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  python-pil python-unidecode
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  rbp2-mediacenter-osmc
The following NEW packages will be installed:
  rbp2-mediacenter-osmc
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
Need to get 0 B/152 MB of archives.
After this operation, 307 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 32875 files and directories currently installed.)
Preparing to unpack .../rbp2-mediacenter-osmc_19.1.0-14_armhf.deb ...
Unpacking rbp2-mediacenter-osmc (19.1.0-14) ...
dpkg: error processing archive /var/cache/apt/archives/rbp2-mediacenter-osmc_19.                   1.0-14_armhf.deb (--unpack):
 trying to overwrite '/usr/share/kodi/addons/visualization.spectrum/addon.xml',                    which is also in package kodi-visualization-spectrum:armhf 1.1.1-1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/rbp2-mediacenter-osmc_19.1.0-14_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
osmc@osmc:~$