try removing each
sudo apt remove --purge codeblocks-wxcontrib-headers
sudo apt remove --purge codeblocks-wxcontrib-dev
sudo apt remove --purge codeblocks-libwxcontrib0
sudo apt remove --purge codeblocks-headers
The Title edit got a laugh out of me.
But I also accept the challenge. We can beat this. that lock in /var/lib is being stubborn but if it comes down to it- We can manually remove that lock if needs be. I prefer to not go right to that yet, though. it’s better to let dpkg manage the package than to Force the package.
But if the above removals don’t work, you may try Force Install with
sudo apt install -f
If THAT fails, we will try removing the lock, then installing synaptic, then using Synaptic to remove the offending Codeblocks package. Which is an iddity on its own as the codeblocks-common package Is In The Repository- I already checked.
