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

Bug #1738664 reported by Kanhu Majhi
94
This bug affects 14 people
Affects Status Importance Assigned to Milestone
dpkg (Ubuntu)
Invalid
Undecided
Unassigned
sane-backends (Debian)
Fix Released
Unknown
sane-backends (Ubuntu)
Fix Released
High
Adam Conrad

Bug Description

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

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

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

An error occured
error:broken count>0

ProblemType: Package
DistroRelease: Ubuntu 17.10
Package: libsane1 1.0.27-1~experimental2ubuntu2.1
ProcVersionSignature: Ubuntu 4.13.0-19.22-generic 4.13.13
Uname: Linux 4.13.0-19-generic x86_64
NonfreeKernelModules: nvidia_uvm nvidia_drm nvidia_modeset nvidia
ApportVersion: 2.20.7-0ubuntu3.6
Architecture: amd64
Date: Mon Dec 18 01:06:19 2017
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-baiIM1/11-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 2017-12-16 (1 days ago)
InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Release amd64 (20171018)
Python3Details: /usr/bin/python3.6, Python 3.6.3, python3-minimal, 3.6.3-0ubuntu2
PythonDetails: /usr/bin/python2.7, Python 2.7.14, python-minimal, 2.7.14-2ubuntu1
RelatedPackageVersions:
 dpkg 1.18.24ubuntu1
 apt 1.5.1
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)

Revision history for this message
Kanhu Majhi (1skala) wrote :
Revision history for this message
Seth Arnold (seth-arnold) wrote : Bug is not a security issue

Thanks for taking the time to report this bug and helping to make Ubuntu better. We appreciate the difficulties you are facing, but this appears to be a "regular" (non-security) bug. I have unmarked it as a security issue since this bug does not show evidence of allowing attackers to cross privilege boundaries nor directly cause loss of data/privacy. Please feel free to report any other bugs you may find.

information type: Private Security → Public
Revision history for this message
Seth Arnold (seth-arnold) wrote :

If you're going to install both the amd64 and i386 versions of a package, you have to make sure both are the same version. I'll leave this bug open for the time being incase there's something that sane-backends is doing to encourage making this mistake.

Thanks

Changed in sane-backends (Ubuntu):
status: New → Incomplete
tags: removed: need-duplicate-check
Changed in sane-backends (Ubuntu):
importance: Undecided → High
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

The versions for both arch is the same

root@ubuntu:~# apt install libsane1:i386
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
Paquets suggérés :
  hplip:i386
Les NOUVEAUX paquets suivants seront installés :
  libsane1:i386
0 mis à jour, 1 nouvellement installés, 0 à enlever et 0 non mis à jour.
Il est nécessaire de prendre 0 o/2 181 ko dans les archives.
Après cette opération, 10,8 Mo d'espace disque supplémentaires seront utilisés.
(Lecture de la base de données... 128472 fichiers et répertoires déjà installés.)
Préparation du dépaquetage de .../libsane1_1.0.27-1~experimental3ubuntu1_i386.deb ...
Dépaquetage de libsane1:i386 (1.0.27-1~experimental3ubuntu1) ...
dpkg: erreur de traitement de l'archive /var/cache/apt/archives/libsane1_1.0.27-1~experimental3ubuntu1_i386.deb (--unpack) :
 tentative de remplacement de « /lib/udev/hwdb.d/20-sane.hwdb », qui est différent d'autres instances du paquet libsane1:i386
dpkg-deb: erreur: coller subprocess was killed by signal (Relais brisé (pipe))
Des erreurs ont été rencontrées pendant l'exécution :
 /var/cache/apt/archives/libsane1_1.0.27-1~experimental3ubuntu1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

root@ubuntu:~# apt policy libsane1:amd64 libsane1:i386
libsane1:
  Installé : 1.0.27-1~experimental3ubuntu1
  Candidat : 1.0.27-1~experimental3ubuntu1
 Table de version :
 *** 1.0.27-1~experimental3ubuntu1 500
        500 http://fr.archive.ubuntu.com/ubuntu bionic/main amd64 Packages
        100 /var/lib/dpkg/status
libsane1:i386:
  Installé : (aucun)
  Candidat : 1.0.27-1~experimental3ubuntu1
 Table de version :
     1.0.27-1~experimental3ubuntu1 500
        500 http://fr.archive.ubuntu.com/ubuntu bionic/main i386 Packages

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

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

Changed in dpkg (Ubuntu):
status: New → Confirmed
Adam Conrad (adconrad)
Changed in dpkg (Ubuntu):
status: Confirmed → Invalid
Changed in sane-backends (Ubuntu):
assignee: nobody → Adam Conrad (adconrad)
Changed in sane-backends (Debian):
status: Unknown → New
Adam Conrad (adconrad)
Changed in sane-backends (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
dino99 (9d9) wrote :

@Adam

thanks for the bionic fix; Please backport it to other releases too: see lp:1725928 for example

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: Fix Committed → Fix Released
Changed in sane-backends (Debian):
status: New → Fix Committed
Changed in sane-backends (Debian):
status: Fix Committed → 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.