Error installing: armv7-toolchain-osmc (1.4.3)

I know just enough about building executables in OSMC to be dangerous, but not enough to get myself out of my own messes … as evidenced by my problem.

I’m pretty sure that I’m encountering this because I installed armv7-toolchain-osmc to build my own copy of kodi.bin (see Comskip/EDL processing bug in KODI (?))

When trying to upgrade, I get the message on the screen “Error installing: armv7-toolchain-osmc (1.4.3)”

In the logs (https://paste.osmc.tv/ibaviquqew) I see this …

Preparing to unpack .../armv7-toolchain-osmc_1.4.3_all.deb ...
e[1mdpkg:e[0m error processing archive /var/cache/apt/archives/armv7-toolchain-osmc_1.4.3_all.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1

I tried removing the package but got this …

osmc@osmc:~ $ sudo apt-get remove armv7-toolchain-osmc
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
 [long list of packages]
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  armv7-toolchain-osmc
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 250 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 50949 files and directories currently installed.)
Removing armv7-toolchain-osmc (1.4.0) ...
dpkg: error processing package armv7-toolchain-osmc (--remove):
 subprocess installed pre-removal script returned error exit status 1
Errors were encountered while processing:
 armv7-toolchain-osmc
E: Sub-process /usr/bin/dpkg returned an error code (1)
osmc@osmc:~ $

Short of a fresh clean install of OSMC … any ideas?

Would need to see all APT history.
Easiest way is to clear /opt/osmc-tc directory, and edit /var/lib/dpkg/status manually so the package is no longer considered to be installed

Sam

That did the trick … thanks