Hello,
please set libsane and libsane-common on hold with "
apt-mark hold libsane libsane-common".
Otherwise on upgrade (or dist-upgrade) you will get this error for libsane-common 1.0.24-10:
Preparing to unpack .../libsane_1.0.24-10_amd64.deb ...
Unpacking libsane:amd64 (1.0.24-10) over (1.0.24-9+b1) ...
Preparing to unpack .../libsane-common_1.0.24-10_all.deb ...
/var/lib/dpkg/tmp.ci/preinst: 9: /var/lib/dpkg/tmp.ci/preinst: rm_conffile: not found
dpkg: error processing archive /var/cache/apt/archives/libsane-common_1.0.24-10_all.deb (--unpack):
subprocess new pre-installation script returned error exit status 127
After having already been trapped I returned to libsane{-common} 1.0.24-9 from apt cache with
# dpkg -i /var/cache/apt/archives/libsane{,-common}_1.0.24-9_*.deb
Afterwards set them on hold and you can proceed with your dist-upgrade.
greetings
musca
[Edit: modified the wildcard _*.deb to also allow _i386 packages to match.]