package snapd (not installed) failed to install/upgrade: trying to overwrite '/usr/share/man/man1/snap.1.gz', which is also in package snap 2013-11-29-1ubuntu2

Bug #1571989 reported by Håkan Carlsson
606
This bug affects 114 people
Affects Status Importance Assigned to Milestone
snap (Ubuntu)
Fix Released
Medium
Unassigned
Xenial
Fix Released
Medium
Unassigned
Yakkety
Won't Fix
Medium
Unassigned
snapd (Ubuntu)
Fix Released
Medium
Unassigned
Xenial
Fix Released
Medium
Unassigned
Yakkety
Won't Fix
Medium
Unassigned

Bug Description

TEST CASE:
1. install snapd
2. install snap
3. verify that there is a file conflict error
4. install snap from xenial-proposed
5. verify that there is no longer a file conflict

Regression potential:
- low, only the man-page for snap(-dna) package got renamed which now actually matches the binary of the snap(-dna) package.

Ran 'sudo apt install snapd' on a clean installation of Ubuntu 16.04 Beta 2.

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: snapd (not installed)
ProcVersionSignature: Ubuntu 4.4.0-15.31-generic 4.4.6
Uname: Linux 4.4.0-15-generic x86_64
ApportVersion: 2.20-0ubuntu3
Architecture: amd64
Date: Tue Apr 19 08:40:57 2016
DuplicateSignature:
 Unpacking snapd (2.0.1) ...
 dpkg: error processing archive /var/cache/apt/archives/snapd_2.0.1_amd64.deb (--unpack):
  trying to overwrite '/usr/share/man/man1/snap.1.gz', which is also in package snap 2013-11-29-1ubuntu2
ErrorMessage: trying to overwrite '/usr/share/man/man1/snap.1.gz', which is also in package snap 2013-11-29-1ubuntu2
InstallationDate: Installed on 2016-04-19 (0 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Beta amd64 (20160323)
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1
 apt 1.2.7
SourcePackage: snapd
Title: package snapd (not installed) failed to install/upgrade: trying to overwrite '/usr/share/man/man1/snap.1.gz', which is also in package snap 2013-11-29-1ubuntu2
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Håkan Carlsson (admkenshin) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Håkan Carlsson (admkenshin) wrote :

To recreate:

# When trying to run the command snap, ubuntu suggests to install this package:
sudo apt install snap

# After, it's not possible to run snap, it says that the package 'snap' is not installed. So, I tried to install snapd:
sudo apt install snapd

# this is when the problem occured. Removing the package snap then allows me to install snapd:
sudo apt autoremove
sudo apt remove snap
sudo apt install snapd

# Now it works! It appears that the package 'snap' shouldn't be the one suggested when trying to run the snap command?

Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for the bugreport. We need to update the "snap" package to have a different man-page name (snap-dna).

Changed in snapd (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Changed in snap (Ubuntu):
status: New → Confirmed
Revision history for this message
Seth Arnold (seth-arnold) wrote :

Michael, it might make more sense to rename the snap package to "snap-dna" while you're at it -- I suspect most of the people filing or clicking "I'm affected" on this bug and its many duplicates probably want to use the package manager and not the DNA analysis tool.

Thanks

Changed in snap (Ubuntu):
importance: Undecided → Medium
Changed in snapd (Ubuntu):
status: Triaged → Invalid
Changed in snap (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
Seth Arnold (seth-arnold) wrote :

Alberto, I've been filing this bug against both snap and snapd packages because either package could reasonably do something to avoid this issue. Both packages should be updated to prevent this situation.

Thanks

Changed in snapd (Ubuntu):
status: Invalid → Confirmed
tags: added: yakkety
Revision history for this message
Seth Arnold (seth-arnold) wrote :

This mess may take some time to clean up; if you run into it, hopefully the following advice can get you on the right path again:

First, you have to decide if you want to use the snap DNA analysis tool or if you want to use the snappy packaging format. There's currently no way for the two to co-exist on a system short of using a VM or LXC/LXD container.

Second, apt-get purge the one that you _don't_ want:
- sudo apt-get purge snap # if you want to keep the packaging system
- sudo apt-get purge snapd # if you want to keep the DNA analysis tool

Third, you'll probably have to clean up the remaining package. Try something like:
- sudo apt-get --reinstall install snapd # if you want to keep the packaging system
- sudo apt-get --reinstall install snap # if you want to keep the DNA analysis tool

Fourth, you may have other unrelated apt problems; try something like:
- sudo apt-get install -f
- sudo apt-get upgrade

Hopefully this will result in a happy apt package status again. If not please ask for help on <email address hidden>.

Thanks

Michael Vogt (mvo)
Changed in snap (Ubuntu Xenial):
status: New → In Progress
Changed in snap (Ubuntu Yakkety):
status: New → In Progress
Revision history for this message
Michael Vogt (mvo) wrote :

TEST CASE:
1. install snapd
2. install snap
3. verify that there is a file conflict error
4. install snap from xenial-proposed
5. verify that there is no longer a file conflict

Regression potential:
- low, only the man-page for snap(-dna) package got renamed which now actually matches the binary of the snap(-dna) package.

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

This bug was fixed in the package snap - 2013-11-29-1ubuntu6

---------------
snap (2013-11-29-1ubuntu6) zesty; urgency=medium

  * debian/patches/werror-indent
    - fix another -Werror indent error that actually looks like
      a real coding error

 -- Michael Vogt <email address hidden> Mon, 05 Dec 2016 12:55:03 +0100

Changed in snap (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in snapd (Ubuntu Xenial):
status: New → Confirmed
Changed in snapd (Ubuntu Yakkety):
status: New → Confirmed
Revision history for this message
Adam Conrad (adconrad) wrote :

mvo: I notice you reuploaded to xenial (thanks), but not to yakkety. We need both to go ahead here.

Also, if the intent is only to do the rename in snap, your fix is incomplete. snapd will also want a Breaks/Replaces on snap (<< fixed-version). Please make sure that lands in the packaging for the next snapd stable uploads (which I expect are in flight nowish?)

Conveniently, actually, since everything in X/Y/Z forked from ubuntu2, you should be able to just consistently use (<= ubuntu2) and not have to fork that bit between packaging branches. Well, until this whole mess tries to head back to trusty, at any rate. :/

Revision history for this message
Mark Shuttleworth (sabdfl) wrote : Re: [Bug 1571989] Re: package snapd (not installed) failed to install/upgrade: trying to overwrite '/usr/share/man/man1/snap.1.gz', which is also in package snap 2013-11-29-1ubuntu2

Thanks Adam, good feedback.

Mathew Hodson (mhodson)
Changed in snap (Ubuntu Xenial):
importance: Undecided → Medium
Changed in snap (Ubuntu Yakkety):
importance: Undecided → Medium
Changed in snapd (Ubuntu Xenial):
importance: Undecided → Medium
Changed in snapd (Ubuntu Yakkety):
importance: Undecided → Medium
Revision history for this message
Steve Langasek (vorlon) wrote : Please test proposed package

Hello Håkan, or anyone else affected,

Accepted snap into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/snap/2013-11-29-1ubuntu2.16.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, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

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

Changed in snap (Ubuntu Xenial):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
Doug McMahon (mc3man) wrote :

16.04.1 proposed snap package installs ok

tags: added: verification-done
removed: verification-needed
opajue (opajue)
Changed in snap (Ubuntu Xenial):
status: Fix Committed → Incomplete
Changed in snapd (Ubuntu Xenial):
status: Confirmed → Opinion
Changed in snap (Ubuntu Xenial):
status: Incomplete → Invalid
status: Invalid → In Progress
Revision history for this message
Hans Joachim Desserud (hjd) wrote :

opajue: Could you comment a bit on the status changes and why they changed?

Revision history for this message
Alexandre Silveira (alexbrmgx) wrote : Re: [Bug 1571989] Re: package snapd (not installed) failed to install/upgrade: trying to overwrite '/usr/share/man/man1/snap.1.gz', which is also in package snap 2013-11-29-1ubuntu2

Better questions;who is making the final scripting and packing the
official packages to the the repositories ? what are the ckeck and
balances of this critical proccess ? who is in the control of critical
process and teams on canonical ?
Make a check list of this questions.

Em 01/02/2017 16:04, Hans Joachim Desserud escreveu:
> opajue: Could you comment a bit on the status changes and why they
> changed?
>

Changed in snapd (Ubuntu Xenial):
status: Opinion → Confirmed
Changed in snap (Ubuntu Xenial):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package snap - 2013-11-29-1ubuntu2.16.04.1

---------------
snap (2013-11-29-1ubuntu2.16.04.1) xenial; urgency=medium

  * rename snap.1.gz to snap-dna.1.gz (LP: #1571989)

 -- Michael Vogt <email address hidden> Tue, 06 Dec 2016 08:20:05 +0100

Changed in snap (Ubuntu Xenial):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : Update Released

The verification of the Stable Release Update for snap has completed successfully and the package has now been 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.

Mathew Hodson (mhodson)
Changed in snap (Ubuntu Yakkety):
status: In Progress → Won't Fix
Changed in snapd (Ubuntu Yakkety):
status: Confirmed → Won't Fix
Changed in snapd (Ubuntu):
status: Confirmed → Fix Released
Changed in snapd (Ubuntu Xenial):
status: Confirmed → Fix Released
To post a comment you must log in.