Found a FIX for this issue here:
https://askubuntu.com/questions/976187/dpkg-error-message-with-libsane-while-installing-winehq-stable

~ Step-by-step Guide for the Fix (using Terminal commands) ~
1. Remove wine
sudo apt-add-repository --remove ppa:ubuntu-wine/ppa
sudo apt purge winehq-stable wine-mono wine-gecko winetricks 
sudo rm -rf /var/lib/apt/lists/*
sudo apt clean
sudo apt autoremove
sudo apt update

2. Install libsane1:i386
sudo apt-get -o Dpkg::Options::="--force-overwrite" install libsane1:i386
sudo dpkg --configure -a

3. Re-Install wine-staging
wget -nc https://dl.winehq.org/wine-builds/Release.key
sudo apt-key add Release.key
sudo apt-add-repository 'https://dl.winehq.org/wine-builds/ubuntu/'
sudo apt-get update
sudo apt-get install --install-recommends winehq-stable
sudo apt-get install --install-recommends winehq-devel
sudo apt-get install --install-recommends winehq-staging
winecfg
sudo apt update

No error messages reported. Worked great.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to sane-backends in Ubuntu.
https://bugs.launchpad.net/bugs/1795330

Title:
  package libsane1 1.0.27-1~experimental2ubuntu2.1 failed to
  install/upgrade while installing winehq-staging: trying to overwrite
  shared '/lib/udev/hwdb.d/20-sane.hwdb', which is different from other
  instances of package libsane1:i386

Status in sane-backends package in Ubuntu:
  New

Bug description:
  package libsane1 1.0.27-1~experimental2ubuntu2.1 failed to
  install/upgrade while installing winehq-staging: trying to overwrite
  shared '/lib/udev/hwdb.d/20-sane.hwdb'. After performing '$ sudo apt-
  get install --install-recommends winehq-staging' in the Terminal, all
  went well until:

  Preparing to unpack .../52-libsane1_1.0.27-1~experimental2ubuntu2.1_i386.deb 
...
  Unpacking libsane1:i386 (1.0.27-1~experimental2ubuntu2.1) ...
  dpkg: error processing archive 
/tmp/apt-dpkg-install-WKhFcN/52-libsane1_1.0.27-1~experimental2ubuntu2.1_i386.deb
 (--unpack):
   trying to overwrite shared '/lib/udev/hwdb.d/20-sane.hwdb', which is 
different from other instances of package libsane1:i386
  dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)

  Errors were encountered while processing:
   
/tmp/apt-dpkg-install-WKhFcN/52-libsane1_1.0.27-1~experimental2ubuntu2.1_i386.deb
  E: Sub-process /usr/bin/dpkg returned an error code (1)

  ---------------------
  results for 'lsb_release -rd':
  $ lsb_release -rd
  Description:  Ubuntu 17.10
  Release:      17.10

  results for 'apt-cache policy pkgname':
  N: Unable to locate package pkgname

  Expected to happen?
  For the update to wine staging to install with no issues.

  What happened instead?
  Of course it's with dpkg. Had issues with that before.

  ProblemType: Package
  DistroRelease: Ubuntu 17.10
  Package: libsane1 1.0.27-1~experimental2ubuntu2.1
  ProcVersionSignature: Ubuntu 4.13.0-46.51-generic 4.13.16
  Uname: Linux 4.13.0-46-generic x86_64
  ApportVersion: 2.20.7-0ubuntu3.9
  Architecture: amd64
  Date: Mon Oct  1 03:55:35 2018
  DuplicateSignature:
   package:libsane1:1.0.27-1~experimental2ubuntu2.1
   Unpacking libsane1:i386 (1.0.27-1~experimental2ubuntu2.1) ...
   dpkg: error processing archive 
/tmp/apt-dpkg-install-WKhFcN/52-libsane1_1.0.27-1~experimental2ubuntu2.1_i386.deb
 (--unpack):
    trying to overwrite shared '/lib/udev/hwdb.d/20-sane.hwdb', which is 
different from other instances of package libsane1:i386
  ErrorMessage: trying to overwrite shared '/lib/udev/hwdb.d/20-sane.hwdb', 
which is different from other instances of package libsane1:i386
  InstallationDate: Installed on 2018-02-14 (228 days ago)
  InstallationMedia: Xubuntu 17.10 "Artful Aardvark" - Release amd64 (20180105)
  Python3Details: /usr/bin/python3.6, Python 3.6.3, python3-minimal, 
3.6.3-0ubuntu3
  PythonDetails: /usr/bin/python2.7, Python 2.7.14, python-minimal, 
2.7.14-2ubuntu1
  RelatedPackageVersions:
   dpkg 1.18.24ubuntu1
   apt  1.5.2
  SourcePackage: sane-backends
  Title: package libsane1 1.0.27-1~experimental2ubuntu2.1 failed to 
install/upgrade: trying to overwrite shared '/lib/udev/hwdb.d/20-sane.hwdb', 
which is different from other instances of package libsane1:i386
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sane-backends/+bug/1795330/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to