package dub (not installed) failed to install/upgrade: trying to overwrite '/usr/bin/dub', which is also in package dmd 2.074.1-0

Bug #1700650 reported by Simon Farre
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
dub (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Description: Ubuntu 17.04
Release: 17.04

dub:
  Installed: (none)
  Candidate: 1.2.0-1ubuntu1
  Version table:
     1.2.0-1ubuntu1 500
        500 http://se.archive.ubuntu.com/ubuntu zesty/universe amd64 Packages

I was installing DCD for Vim, so that i can write source code for D in Vim
Nothing seemed to happen.

ProblemType: Package
DistroRelease: Ubuntu 17.04
Package: dub (not installed)
ProcVersionSignature: Ubuntu 4.10.0-24.28-generic 4.10.15
Uname: Linux 4.10.0-24-generic x86_64
ApportVersion: 2.20.4-0ubuntu4.1
AptOrdering:
 dub:amd64: Install
 NULL: ConfigurePending
Architecture: amd64
Date: Mon Jun 26 22:22:42 2017
DpkgTerminalLog:
 Preparing to unpack .../dub_1.2.0-1ubuntu1_amd64.deb ...
 Unpacking dub (1.2.0-1ubuntu1) ...
 dpkg: error processing archive /var/cache/apt/archives/dub_1.2.0-1ubuntu1_amd64.deb (--unpack):
  trying to overwrite '/usr/bin/dub', which is also in package dmd 2.074.1-0
ErrorMessage: trying to overwrite '/usr/bin/dub', which is also in package dmd 2.074.1-0
InstallationDate: Installed on 2017-06-19 (6 days ago)
InstallationMedia: Ubuntu-Budgie 17.04 "Zesty Zapus" - Beta amd64 (20170404)
RelatedPackageVersions:
 dpkg 1.18.10ubuntu2
 apt 1.4
SourcePackage: dub
Title: package dub (not installed) failed to install/upgrade: trying to overwrite '/usr/bin/dub', which is also in package dmd 2.074.1-0
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Simon Farre (simon-farre-x) wrote :
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

Thanks for taking your time to report this issue and help making Ubunt better.

The underlying issue for this bug seems to be that two packages both include the file '/usr/bin/dub'. This is usually fixed by removing duplicates (if both packages contain the exact same file) or by marking them as conflicting so that they cannot be installed on the same system if both packages try to install unrelated files with the same name.

I tried to also mark dmd as affected by this issue, but I couldn't find it in Launchpad? Is that package from the Ubuntu archive, or installed from some third-party service?

Changed in dub (Ubuntu):
status: New → Incomplete
tags: added: package-conflict
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for dub (Ubuntu) because there has been no activity for 60 days.]

Changed in dub (Ubuntu):
status: Incomplete → Expired
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.