Ubuntu – DPKG error message with libsane while installing WineHQ-stable

dpkgwine

With a fresh copy of 17.10 ubuntu installed. I have found a repeatable error which I believe is messing up my wine installation permanently. After the error I simply format the system and retry another time. The error message is encountered when installing winehq. Both stable and staging versions run into the exact same problem.

I cannot find an answer on the internet. Please help if you can.

Selecting previously unselected package libtxc-dxtn-s2tc:i386.
Preparing to unpack .../150-libtxc-dxtn-s2tc_1.0+git20151227-2_i386.deb ...
Unpacking libtxc-dxtn-s2tc:i386 (1.0+git20151227-2) ...
Errors were encountered while processing:
 /tmp/apt-dpkg-install-mh7wRK/137-libsane1_1.0.27-1~experimental2ubuntu1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Best Answer

I met the same problem and solve it. This is caused by a bug in sane-backends.

First, remove Wine, then execute:

sudo apt-get -o Dpkg::Options::="--force-overwrite" install libsane1:i386

and then install Wine again.