[SRU] update app: Package failed to install: Error while installing package: trying to overwrite '/usr/bin/disco', which is also in package discodos 1.0~rc2-2

Bug #2039074 reported by rgonnering
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
discodos (Debian)
Fix Released
Unknown
discodos (Ubuntu)
Fix Released
Undecided
Unassigned
Jammy
Fix Released
Undecided
Unassigned
Mantic
Won't Fix
Undecided
Unassigned
Noble
Fix Released
Undecided
Unassigned
plasma-discover (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

[ Impact ]

discodos will fail to install for all users who have "mono-devel" installed on their system.
similarly users who already have "discodos" installed will see failure in installation of "mono-devel".

In both cases the error seen will be either of these two:

dpkg: error processing archive /tmp/apt-dpkg-install-WT1p4H/155-mono-devel_6.8.0.105+dfsg-3.2_all.deb (--unpack):
 trying to overwrite '/usr/bin/disco', which is also in package discodos 1.0~rc2-2

or

dpkg: error processing archive /tmp/apt-dpkg-install-0kKmMe/18-discodos_1.0~rc2-2_all.deb (--unpack):
 trying to overwrite '/usr/bin/disco', which is also in package mono-devel 6.8.0.105+dfsg-3.2

[ Test Plan ]

test-1:
1. install mono-devel
2. install discodos

test-2:
1. install discodos
2. install mono-devel

If the package is not fixed it will result in the install failure with the above error.
With the fixed package both packages will be installed.

[ Where problems could occur ]

There is no change in code, but the executable is changing from "/usr/bin/disco" to "/usr/bin/discodos" which can affect if any user is using "disco" in any of their scripts.

[ Other Info ]

This has been already fixed in Debian and Noble/Oracular already has the renamed binary.
As is done in Debian, the manpage is also renamed to discodos.

[ Original Bug Description ]

Update Issue
There was an issue installing this update. Please try again later.
See technical details

If you would like to report the update issue to your distribution's packagers, innclude this information:

Package failed to install:

Error while installing package: trying to overwrite '/usr/bin/disco', which is also in package discodos 1.0~rc2-2

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: plasma-discover 5.24.7-0ubuntu0.1
ProcVersionSignature: Ubuntu 5.15.0-83.92-lowlatency 5.15.116
Uname: Linux 5.15.0-83-lowlatency x86_64
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: KDE
Date: Wed Oct 11 09:50:42 2023
ExecutablePath: /usr/bin/plasma-discover
InstallationDate: Installed on 2023-02-01 (251 days ago)
InstallationMedia: Ubuntu-Studio 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220809)
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: plasma-discover
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
rgonnering (roger-gonnering) wrote :
Revision history for this message
Scarlett Gately Moore (scarlettmoore) wrote :

This is a packaging problem with discodos not a plasma-discover issue.

Changed in plasma-discover (Ubuntu):
status: New → Invalid
Revision history for this message
Sudip Mukherjee (sudipmuk) wrote :

I can reproduce the issue in Jammy and Mantic.

Changed in discodos (Ubuntu):
status: New → In Progress
assignee: nobody → Sudip Mukherjee (sudipmuk)
no longer affects: plasma-discover (Ubuntu Jammy)
no longer affects: plasma-discover (Ubuntu Mantic)
Changed in discodos (Ubuntu Jammy):
status: New → In Progress
Changed in discodos (Ubuntu Mantic):
status: New → In Progress
Changed in discodos (Ubuntu Jammy):
assignee: nobody → Sudip Mukherjee (sudipmuk)
Changed in discodos (Ubuntu Mantic):
assignee: nobody → Sudip Mukherjee (sudipmuk)
Changed in discodos (Ubuntu):
assignee: Sudip Mukherjee (sudipmuk) → nobody
status: In Progress → Fix Released
no longer affects: plasma-discover (Ubuntu Noble)
Changed in discodos (Ubuntu Noble):
status: New → Fix Released
Changed in discodos (Debian):
status: Unknown → Fix Released
summary: - update app: Package failed to install: Error while installing
+ [SRU] update app: Package failed to install: Error while installing
package: trying to overwrite '/usr/bin/disco', which is also in package
discodos 1.0~rc2-2
description: updated
Changed in discodos (Ubuntu Jammy):
assignee: Sudip Mukherjee (sudipmuk) → nobody
Changed in discodos (Ubuntu Mantic):
assignee: Sudip Mukherjee (sudipmuk) → nobody
Changed in discodos (Ubuntu Jammy):
status: In Progress → Confirmed
Changed in discodos (Ubuntu Mantic):
status: In Progress → Confirmed
Changed in discodos (Ubuntu Jammy):
status: Confirmed → In Progress
Changed in discodos (Ubuntu Mantic):
status: Confirmed → In Progress
Revision history for this message
Timo Aaltonen (tjaalton) wrote : Please test proposed package

Hello rgonnering, or anyone else affected,

Accepted discodos into jammy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/discodos/1.0~rc2-2ubuntu0.22.04.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-jammy to verification-done-jammy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-jammy. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in discodos (Ubuntu Jammy):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-jammy
Changed in discodos (Ubuntu Mantic):
status: In Progress → Won't Fix
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

mantic is eol soon

Revision history for this message
Sudip Mukherjee (sudipmuk) wrote :

I can confirm that discodos from jammy-proposed has fixed the bug for me.

Test done:

install mono-devel and then install discodos and confirm that it fails to install.

Added jammy-proposed to apt sources.
install discodos from jammy-proposed.

Confirm that discodos now installs properly.

As a basic sanity test, tried "discodos --help" and confirm that the help is displayed.

Package tested:

$ apt-cache policy discodos
discodos:
  Installed: 1.0~rc2-2ubuntu0.22.04.1
  Candidate: 1.0~rc2-2ubuntu0.22.04.1
  Version table:
 *** 1.0~rc2-2ubuntu0.22.04.1 500
        500 http://gb.archive.ubuntu.com/ubuntu jammy-proposed/universe amd64 Packages
        500 http://gb.archive.ubuntu.com/ubuntu jammy-proposed/universe i386 Packages
        100 /var/lib/dpkg/status
     1.0~rc2-2 500
        500 http://gb.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
        500 http://gb.archive.ubuntu.com/ubuntu jammy/universe i386 Packages

tags: added: verification-done verification-done-jammy
removed: verification-needed verification-needed-jammy
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for discodos has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package discodos - 1.0~rc2-2ubuntu0.22.04.1

---------------
discodos (1.0~rc2-2ubuntu0.22.04.1) jammy; urgency=medium

  * rename script 'disco' -> 'discodos' to fix install failure. (LP: #2039074)

 -- Sudip Mukherjee <email address hidden> Mon, 24 Jun 2024 21:44:17 +0100

Changed in discodos (Ubuntu Jammy):
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.