libsane1 not installing

Asked by Leo Kerr

So wine and practically everything else i use in the terminal requires libsane1 but it refuses to install coming out with a error code 1 every time i attempt to install it. Anyone know a fix or something? A copy of the terminal is below if you're interested.

silentstorm@Boop:~$ sudo apt-get install libsane1
[sudo] password for silentstorm:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  fonts-wine libgtkmm-2.4-1v5 libwine libwine:i386 ocl-icd-libopencl1
  ocl-icd-libopencl1:i386 qml-module-qtgraphicaleffects
  qml-module-qtquick-controls qml-module-qtquick-dialogs
  qml-module-qtquick-layouts qml-module-qtquick-privatewidgets
  qml-module-qtquick-window2 qml-module-qtquick2 wine32:i386 wine64
Use 'sudo apt autoremove' to remove them.
Suggested packages:
  avahi-daemon hplip
The following NEW packages will be installed:
  libsane1
0 to upgrade, 1 to newly install, 0 to remove and 0 not to upgrade.
6 not fully installed or removed.
Need to get 0 B/2,093 kB of archives.
After this operation, 10.4 MB of additional disk space will be used.
(Reading database ... 45%
(Reading database ... 129732 files and directories currently installed.)
Preparing to unpack .../libsane1_1.0.27-1~experimental2ubuntu2.1_amd64.deb ...
Unpacking libsane1:amd64 (1.0.27-1~experimental2ubuntu2.1) ...
dpkg: error processing archive /var/cache/apt/archives/libsane1_1.0.27-1~experimental2ubuntu2.1_amd64.deb (--unpack):
 trying to overwrite shared '/lib/udev/hwdb.d/20-sane.hwdb', which is different from other instances of package libsane1:amd64
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/libsane1_1.0.27-1~experimental2ubuntu2.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
silentstorm@Boop:~$

I'm running Lubuntu 17.10 on a ASUS 1101PX if that helps.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Best Manfred Hampl (m-hampl) said :
#1

For diagnostic purposes please provide the output of the commands

uname -a
lsb_release -crid
dpkg -l | grep sane

This may be a packaging error, and it should be possible to install the package with an additional option
sudo apt-get -o Dpkg::Options::="--force-overwrite" install libsane1

Revision history for this message
Leo Kerr (silentstormer) said :
#2

Thanks Manfred Hampl, that solved my question.