package libjpeg-turbo8-dev (not installed) failed to install/upgrade: tentative de remplacement de « /usr/include/jerror.h », qui appartient aussi au paquet libjpeg9-dev:amd64 1:9b-1

Bug #1570105 reported by Stéphane Gourichon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libjpeg-turbo (Ubuntu)
New
Undecided
Unassigned

Bug Description

Was installing opencv-dev with aptitude.

Aptitude offered to resolve a conflict between libjpeg packages.

I accepted the offered solution.

Next time I opened aptitude, it sad opencv-dev packaged were not fully installed.

Seems like error is permanent (i.e. will not resolve itself just with upgrade instructions

Dépaquetage de libjpeg-turbo8-dev:amd64 (1.4.2-0ubuntu3) ...
dpkg: erreur de traitement de l'archive /var/cache/apt/archives/libjpeg-turbo8-dev_1.4.2-0ubuntu3_amd64.deb (--unpack) :
 tentative de remplacement de « /usr/include/jerror.h », qui appartient aussi au paquet libjpeg9-dev:amd64 1:9b-1
dpkg-deb : erreur : le sous-processus coller a été tué par le signal (Relais brisé (pipe))
Des erreurs ont été rencontrées pendant l'exécution :
 /var/cache/apt/archives/libjpeg-turbo8-dev_1.4.2-0ubuntu3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Impossible d'effectuer l'opération demandée sur le paquet. Essai de récupération :
...

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: libjpeg-turbo8-dev (not installed)
ProcVersionSignature: Ubuntu 4.4.0-18.34-generic 4.4.6
Uname: Linux 4.4.0-18-generic x86_64
ApportVersion: 2.20.1-0ubuntu1
Architecture: amd64
Date: Wed Apr 13 23:20:56 2016
ErrorMessage: tentative de remplacement de « /usr/include/jerror.h », qui appartient aussi au paquet libjpeg9-dev:amd64 1:9b-1
InstallationDate: Installed on 2016-02-03 (70 days ago)
InstallationMedia: Xubuntu 16.04 LTS "Xenial Xerus" - Alpha amd64 (20160203)
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1
 apt 1.2.10
SourcePackage: libjpeg-turbo
Title: package libjpeg-turbo8-dev (not installed) failed to install/upgrade: tentative de remplacement de « /usr/include/jerror.h », qui appartient aussi au paquet libjpeg9-dev:amd64 1:9b-1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Stéphane Gourichon (stephane-gourichon-lpad) wrote :
Revision history for this message
Stéphane Gourichon (stephane-gourichon-lpad) wrote :
Download full text (3.5 KiB)

apt-get dist-upgrade

Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 libopencv-highgui-dev : Depends: libjpeg-dev
 libtiff5-dev : Depends: libjpeg-dev
E: Unmet dependencies. Try using -f.

apt-get dist-upgrade -f

Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
Calculating upgrade... Done
The following NEW packages will be installed:
  libjpeg-turbo8-dev
The following packages will be upgraded:
  apparmor console-setup console-setup-linux isc-dhcp-client isc-dhcp-common keyboard-configuration libapparmor-perl libapparmor1 libpam-systemd
  libqt5core5a libqt5dbus5 libqt5gui5 libqt5network5 libqt5widgets5 libsmbclient libsystemd-dev libsystemd0 libudev-dev libudev1 libwbclient0
  python-samba samba-common samba-common-bin samba-libs systemd systemd-sysv ubuntu-minimal ubuntu-standard udev
29 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
12 not fully installed or removed.
Need to get 0 B/22.2 MB of archives.
After this operation, 1604 kB of additional disk space will be used.
Do you want to continue? [Y/n]
Reading changelogs... Done
Preconfiguring packages ...
(Reading database ... 255625 files and directories currently installed.)
Preparing to unpack .../libjpeg-turbo8-dev_1.4.2-0ubuntu3_amd64.deb ...
Unpacking libjpeg-turbo8-dev:amd64 (1.4.2-0ubuntu3) ...
dpkg: error processing archive /var/cache/apt/archives/libjpeg-turbo8-dev_1.4.2-0ubuntu3_amd64.deb (--unpack):
 trying to overwrite '/usr/include/jerror.h', which is also in package libjpeg9-dev:amd64 1:9b-1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Preparing to unpack .../libsystemd-dev_229-4ubuntu4_amd64.deb ...
Unpacking libsystemd-dev:amd64 (229-4ubuntu4) over (229-4ubuntu1) ...
Preparing to unpack .../libudev-dev_229-4ubuntu4_amd64.deb ...
Unpacking libudev-dev:amd64 (229-4ubuntu4) over (229-4ubuntu1) ...
Preparing to unpack .../libsystemd0_229-4ubuntu4_amd64.deb ...
Unpacking libsystemd0:amd64 (229-4ubuntu4) over (229-4ubuntu1) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for libc-bin (2.23-0ubuntu2) ...
Errors were encountered while processing:
 /var/cache/apt/archives/libjpeg-turbo8-dev_1.4.2-0ubuntu3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

...
...
...

apt-get dist-upgrade -f

Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
Calculating upgrade... Done
The following NEW packages will be installed:
  libjpeg-turbo8-dev
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
36 not fully installed or removed.
Need to get 0 B/254 kB of archives.
After this operation, 1418 kB of additional disk space will be used.
Do you want to continue? [Y/n]
(Reading database ... 255626 files and directories currently installed.)
Preparing to unpack .../libjpeg-turbo8-dev_1.4.2-0ubuntu3_amd64.deb ...
Unpacking libjpeg-turbo8-dev:amd64 (1.4.2-0ubuntu3) ...
dpkg: error processing archive...

Read more...

Revision history for this message
Stéphane Gourichon (stephane-gourichon-lpad) wrote :

I tried this:

dpkg --purge libjpeg9-dev:amd64

(Reading database ... 255624 files and directories currently installed.)
Removing libjpeg9-dev:amd64 (1:9b-1) ...

but it did not completely fixed.

By making sure both libjpeg-turbo8-dev:amd64 and libjpeg8-dev:amd64 were selected, then it seemed to fix the problem.

Terminal logs availab!e.

tags: added: has-workaround
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.