Error showed up while intalling Wine on Lubuntu 18.04.

Asked by Robert Demming Broere

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 error shows in a bug report when i attempt to install Wine. I follow all instructions from the installation page on the site, but this continuously happens.

I first typed out
sudo dpkg --add-architecture i386
This changed the architecture to allow installation of the program., followed by the repository key.
wget -nc https://dl.winehq.org/wine-builds/Release.key
sudo apt-key add Release.key
sudo apt-add-repostiory https://dl.winehq.org/wine-builds/ubuntu (Lubuntu is similar to Ubuntu, or so I think)

Then I updated the packages.

sudo apt-get update

After it updated, I typed the below command to install the stable version.

sudo apt-get install --install-recoommends winehq-stable

Then it asked if I wanted to contunre the process after it archived an item that I can't find in the log before installation, and I said yes.

Then it installed and came up with the error shown above.

Any help would be appreciated. If this is something that anyone could do, I apologise for the embarrasment.

Question information

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

This seems to be Bug #1762827

For diagnostic purposes please provide the output of the commands

uname -a
lsb_release -crid
apt-cache policy libsane1 libsane1:i386

The following command might help as a workaround:
sudo apt -o Dpkg::Options::="--force-overwrite" install libsane1

Can you help with this problem?

Provide an answer of your own, or ask Robert Demming Broere for more information if necessary.

To post a message you must log in.