Did not fix for me on 16.04. Received same error in terminal after running
Unpacking libsane:i386 (1.0.25+git20150528-1ubuntu2) ...
dpkg: error processing archive /var/cache/apt/archives/libsane_1.0.25+git20150528-1ubuntu2_i386.deb (--unpack):
trying to overwrite shared '/lib/udev/rules.d/40-libsane.rules', which is different from other instances of package libsane:i386
Errors were encountered while processing:
/var/cache/apt/archives/libsane_1.0.25+git20150528-1ubuntu2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
"sudo apt-get install --reinstall libsane:i386"
Did not fix for me on 16.04. Received same error in terminal after running
Unpacking libsane:i386 (1.0.25+ git20150528- 1ubuntu2) ... apt/archives/ libsane_ 1.0.25+ git20150528- 1ubuntu2_ i386.deb (--unpack): rules.d/ 40-libsane. rules', which is different from other instances of package libsane:i386 apt/archives/ libsane_ 1.0.25+ git20150528- 1ubuntu2_ i386.deb
dpkg: error processing archive /var/cache/
trying to overwrite shared '/lib/udev/
Errors were encountered while processing:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)