Can't remover incorrect package
I got my model of Raspberry Pi wrong :-( I tried to install the arm7 version - teamviewer-iot-agent-armv7_2.8.18_armhf.deb but my Pi has a an armv61 processor. Not surpisingly, I got an illegal instruction error.
Now I want to uninstall this package so I can install the armv5 one, which looks like is should work. I have tried dpkt with -r and -P options but I get the same error (The --force option has been depreciated - I tried that too):
[email protected]:~/teamviewer $ sudo dpkg -r teamviewer-iot-agent-armv7
(Reading database ... 55352 files and directories currently installed.)
Removing teamviewer-iot-agent-armv7 (2.8.18) ...
dpkg: error processing package teamviewer-iot-agent-armv7 (--remove):
installed teamviewer-iot-agent-armv7 package pre-removal script subprocess returned error exit status 1
Any suggestions please?