sudo apt install ./stlink-1.6.1-1_amd64.deb
from the directory the deb is in.
Here is the error that resulted.: (lots deleted that went just fine.)
Needless to say, the offending dev rule is NOT in /etc/udev/rules.d.The following NEW packages will be installed:
0 upgraded, 1 newly installed, 0 to remove and 258 not upgraded.
8 not fully installed or removed.
Need to get 0 B/165 kB of archives.
After this operation, 846 kB of additional disk space will be used.
Get:1 /home/jim/Downloads/stlink-1.6.1-1_amd64.deb stlink amd64 1.6.1-1 [165 kB]
(Reading database ... 515962 files and directories currently installed.)
Preparing to unpack .../stlink-1.6.1-1_amd64.deb ...
Unpacking stlink (1.6.1-1) ...
dpkg: error processing archive /home/jim/Downloads/stlink-1.6.1-1_amd64.deb (--unpack):
trying to overwrite '/etc/udev/rules.d/49-stlinkv2-1.rules', which is also in package st-stlink-udev-rules 1.0.0
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
I'm hung out to dry until this is resolved. Any help much appreciated.ls /etc/udev/rules.d
25-vc500.rules 49-node.rules 70-snap.core.rules
49-arduino.rules 49-stlinkv2.rules 70-snap.obs-studio.rules
49-cameo.rules 49-stlinkv3.rules 80-canon_mfp2.rules
49-ftdi.rules 49-teensy.rules 99-jlink.rules