package libxfont-dev (not installed) failed to install/upgrade: trying to overwrite '/usr/share/doc/libxfont-dev/fontlib.html', which is also in package libxfont1-dev 1:1.5.1-1ubuntu0.16.04.1

Bug #1709684 reported by Aryeh Gregor
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libxfont2 (Ubuntu)
New
Undecided
Unassigned

Bug Description

$ sudo apt -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  linux-headers-4.10.0-27 linux-headers-4.10.0-27-generic linux-headers-4.8.0-36
  linux-headers-4.8.0-36-generic linux-image-4.10.0-27-generic linux-image-4.8.0-36-generic
  linux-image-extra-4.10.0-27-generic linux-image-extra-4.8.0-36-generic
  linux-signed-image-4.10.0-27-generic snap-confine
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libxfont-dev
The following NEW packages will be installed:
  libxfont-dev
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
31 not fully installed or removed.
Need to get 0 B/124 kB of archives.
After this operation, 494 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 305731 files and directories currently installed.)
Preparing to unpack .../libxfont-dev_1%3a2.0.1-3~ubuntu16.04.1_amd64.deb ...
Unpacking libxfont-dev (1:2.0.1-3~ubuntu16.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/libxfont-dev_1%3a2.0.1-3~ubuntu16.04.1_amd64.deb (--unpack):
 trying to overwrite '/usr/share/doc/libxfont-dev/fontlib.html', which is also in package libxfont1-dev 1:1.5.1-1ubuntu0.16.04.1
Errors were encountered while processing:
 /var/cache/apt/archives/libxfont-dev_1%3a2.0.1-3~ubuntu16.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: libxfont-dev (not installed)
ProcVersionSignature: Ubuntu 4.10.0-28.32~16.04.2-generic 4.10.17
Uname: Linux 4.10.0-28-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.10
Architecture: amd64
Date: Wed Aug 9 20:45:28 2017
DuplicateSignature:
 package:libxfont-dev:(not installed)
 Unpacking libxfont-dev (1:2.0.1-3~ubuntu16.04.1) ...
 dpkg: error processing archive /var/cache/apt/archives/libxfont-dev_1%3a2.0.1-3~ubuntu16.04.1_amd64.deb (--unpack):
  trying to overwrite '/usr/share/doc/libxfont-dev/fontlib.html', which is also in package libxfont1-dev 1:1.5.1-1ubuntu0.16.04.1
ErrorMessage: trying to overwrite '/usr/share/doc/libxfont-dev/fontlib.html', which is also in package libxfont1-dev 1:1.5.1-1ubuntu0.16.04.1
InstallationDate: Installed on 2017-07-26 (13 days ago)
InstallationMedia: Ubuntu 16.04.2 LTS "Xenial Xerus" - Release amd64 (20170215.2)
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.2
 apt 1.2.24
SourcePackage: libxfont2
Title: package libxfont-dev (not installed) failed to install/upgrade: trying to overwrite '/usr/share/doc/libxfont-dev/fontlib.html', which is also in package libxfont1-dev 1:1.5.1-1ubuntu0.16.04.1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Aryeh Gregor (simetrical+launchpad) wrote :
tags: removed: need-duplicate-check
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.