package libsane 1.0.25+git20150528-1ubuntu2 [modified: lib/udev/rules.d/40-libsane.rules] failed to install/upgrade: trying to overwrite shared '/lib/udev/rules.d/40-libsane.rules', which is different from other instances of package libsane:i386

Bug #1533780 reported by Raveendranath
316
This bug affects 62 people
Affects Status Importance Assigned to Milestone
sane-backends (Ubuntu)
Fix Released
High
Unassigned

Bug Description

***********
to get a workaround, try:

sudo apt-get -o Dpkg::Options::="--force-overwrite" install --reinstall libsane1:i386 (or your real package name)

***************

sane-backends-extras

ProblemType: Package
DistroRelease: Ubuntu 15.10
Package: libsane 1.0.25+git20150528-1ubuntu2 [modified: lib/udev/rules.d/40-libsane.rules]
ProcVersionSignature: Ubuntu 4.2.0-23.28-generic 4.2.6
Uname: Linux 4.2.0-23-generic x86_64
ApportVersion: 2.19.1-0ubuntu5
Architecture: amd64
Date: Wed Jan 13 23:33:09 2016
DuplicateSignature: package:libsane:1.0.25+git20150528-1ubuntu2 [modified: lib/udev/rules.d/40-libsane.rules]:trying to overwrite shared '/lib/udev/rules.d/40-libsane.rules', which is different from other instances of package libsane:i386
ErrorMessage: trying to overwrite shared '/lib/udev/rules.d/40-libsane.rules', which is different from other instances of package libsane:i386
InstallationDate: Installed on 2015-12-22 (22 days ago)
InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
RelatedPackageVersions:
 dpkg 1.18.2ubuntu5.1
 apt 1.0.10.2ubuntu1
SourcePackage: sane-backends
Title: package libsane 1.0.25+git20150528-1ubuntu2 [modified: lib/udev/rules.d/40-libsane.rules] failed to install/upgrade: trying to overwrite shared '/lib/udev/rules.d/40-libsane.rules', which is different from other instances of package libsane:i386
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Raveendranath (raveendranathvs) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in sane-backends (Ubuntu):
status: New → Confirmed
Revision history for this message
Guy Taylor (thebiggerguy) wrote :

I ran into this when installing an i386 sane backend on a x64 install

running "sudo apt-get install --reinstall libsane:i386" fixed the issue.

Changed in sane-backends (Ubuntu):
importance: Undecided → High
Revision history for this message
Emmanuel JL (ejl-o) wrote :

"sudo apt-get install --reinstall libsane:i386"

Did not fix for me on 16.04. Received same error in terminal after running

Unpacking libsane:i386 (1.0.25+git20150528-1ubuntu2) ...
dpkg: error processing archive /var/cache/apt/archives/libsane_1.0.25+git20150528-1ubuntu2_i386.deb (--unpack):
 trying to overwrite shared '/lib/udev/rules.d/40-libsane.rules', which is different from other instances of package libsane:i386
Errors were encountered while processing:
 /var/cache/apt/archives/libsane_1.0.25+git20150528-1ubuntu2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Rolf Leggewie (r0lf) wrote :

google only finds a bunch of bug reports for "failed to install/upgrade: trying to overwrite shared" but no explanation.

bug 1533780
bug 1574351
bug 1279192
bug 1490282
bug 1290155
bug 1464735
bug 1471677

Could be an issue of a missing "Replaces"-declaration somewhere. Possibly related to multiarch, too. https://bugs.launchpad.net/ubuntu/+source/icedtea-web/+bug/1471677/comments/3 strongly suggests this.

Revision history for this message
Rolf Leggewie (r0lf) wrote :

bug 1528678 and bug 1533780 are very similar

dino99 (9d9)
Changed in sane-backends (Ubuntu):
status: Confirmed → Incomplete
dino99 (9d9)
description: updated
Revision history for this message
Adam Conrad (adconrad) wrote :

sane-backends (1.0.27-1~experimental3ubuntu2) bionic; urgency=medium

  * debian/rules: Drop timestamps from conflicting multiarch:same files
    hwdb.d/20-sane.hwdb and rules.d/60-libsane1.rules (closes: #880391)

 -- Adam Conrad <email address hidden> Sat, 03 Feb 2018 14:26:39 -0700

Changed in sane-backends (Ubuntu):
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.