Have you looked to into using the command dpkg and one of its command line options "-f" to force it?
My Knoppix-Debian server has on it a package called KDEBLUETOOTH. I don't know why it's there; I assume it came with the basic Knoppix installation. There is no Bluetooth device on the server, nor ever likely to be.
Recently, every attempt to update anything on the machine fails with error messages about KDEBLUETOOTH. The problem is, I can't remove it either. This is what I get:
Removing kdebluetooth ...
dpkg-divert: mismatch on divert-to
when removing `diversion of /usr/bin/kdesktop_lock to /usr/bin/kdesktop_lock_nobt by kdebluetooth'
found `diversion of /usr/bin/kdesktop_lock to /usr/bin/kdesktop_lock.orig by kdelock-knoppix'
dpkg: error processing kdebluetooth (--remove):
subprocess post-removal script returned error exit status 2
Errors were encountered while processing:
kdebluetooth
E: Sub-process /usr/bin/dpkg returned an error code (1)
RESULT=100
I've tried everything I can think of - including apt-get remove kdelock-knoppix, but that gives the same message that KDEBLUETOOTH needs something.
I don't want to have to wipe the machine and start again but it's soon going to be necessary. Even then, I can't use Knoppix because I fear I'll end up in the same place again.
HOW do I get rid of KDEBLUETOOTH?
Have you looked to into using the command dpkg and one of its command line options "-f" to force it?
I've tried dpkg --remove kdebluetooth and get the same error-message as above. I've not found a dpkg --force command to remove software - I'm not a guru in this sort of stuff. Linux is a bit like secret code - I have a folder with useful tips, getting fatter all the time, but it's a bit like pushing snowballs uphill.
I've browsed deeply, and found lots of other folks with this same problem. None of those seems to have found a fix, either. None reports "I cracked it!.
Sounds like it's a "feature" to live with, or go back to WIndows 2000.
I edited the file /var/lib/dpkg/info/kdebluetooth.postrm, commenting out the dpkg-divert lines (29 & 30). Seems to have done the trick.
"Sounds like it's a "feature" to live with, or go back to WIndows 2000."
How about trying one of the some hundred odd distros meant to be installed for desktop use:
http://shots.osdir.com/
search for all bluetooth and comment with # in those lines.
i deleted the file itself for installing new softwares.
probably knoppix intented it to be used as is live cd.
once that lock is removed it will do but problems can come with unoptimised installation.
I managed to fix the very same pb:
apt-get remove kdelock-knoppix kdebluetooth
you mentioned having tried a similar command
but the trick is to re-enter this 3 times so that it stops at different stages
and eventually succeeds!
good luck,
Jay
HP ProLiant DL380 Gen9 8SFF Server - E5-2698 v3 - 32Cores - 128GB Ram - 1TB HDD
$299.00
HP ProLiant ML350 Gen 9 Server 64GB RAM 2.4GHz Xeon 12-Core E5-2667 v3
$300.00
HP ProLiant DL380 Gen9 Server 1x Xeon E5-2620V3 2.40 GHz 16 GB RAM No OS No HDD
$114.95
Lenovo SR530 Server (Intel Xeon Silver 4110) (3x 800GB SSD) (NO OS) (48GB RAM)
$599.00
Dell PowerEdge R620 Dual Intel Xeon E5-2697 v2 @2.70GHz 128GB RAM No HDD S110
$144.50
Dell PowerEdge R620 Server 2x E5-2660 v2 2.2GHz 20 Cores 256GB RAM 1x 480GB SSD
$130.49
Dell PowerEdge R430 - E5-2640 v3 2.60GHz 16GB RAM - NO HDDs
$119.99
CTO Dell PowerEdge R630 Server, 2x Xeon E5-2620V4, 64GB- 512GB RAM, 480GB SSDs
$320.80
Lenovo ThinkSystem ST50 V2 Tower Server Intel Xeon E-2324G 3.10 GHz 16 GB RAM
$774.99
IBM Power S822 8284-22A 12SFF Power8 3.89GHz 6Core 64GB RAM No HDD Server System
$359.99