package snapd 2.23.1 failed to install/upgrade: trying to overwrite '/etc/apparmor.d/usr.lib.snapd.snap-confine', which is also in package snap-confine 2.23.1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Won't Fix
|
Undecided
|
Unassigned | ||
dpkg (Ubuntu) |
In Progress
|
Critical
|
Unassigned | ||
Trusty |
Confirmed
|
Undecided
|
Unassigned | ||
Xenial |
Confirmed
|
Undecided
|
Unassigned | ||
Yakkety |
Invalid
|
Undecided
|
Unassigned | ||
Zesty |
Confirmed
|
Undecided
|
Unassigned | ||
snapd (Ubuntu) |
In Progress
|
Critical
|
Michael Vogt | ||
Trusty |
In Progress
|
Undecided
|
Unassigned | ||
Xenial |
Confirmed
|
Undecided
|
Unassigned | ||
Yakkety |
Invalid
|
Undecided
|
Unassigned | ||
Zesty |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
When the ubuntu installer runs it has an option to download updates during the install. When this happens snapd/snap-confine 2.22.6 are installed on /target. The upgrade brings in snapd/snap-confine 2.23.1 which has a conffile in /etc/apparmor.
src/archives.
around "Is the file an obsolete conffile ...". There is a stat() here that
checks that the conff->name and the fnamevb are the same file. This check
fails to take the instdir into account and therefore the loop does not
continue but falls through to the "does_replace()" checks.
-------
Snap 2.23.1 fails to upgrade from 2.21.
Known facts:
- reporters (and apport) indicate it fails during the install via the live-cd
- not reproducible so far on an already installed system
- breaks/replaces of snapd are correct
- When adding "xenial-proposed" to apt-setup in ubiquity and installing
Cause:
- when ubiquity runs it uses "dpkg --root=/target --unpack ..." - however when doing the conffile checking dpkg does not handle the "--root" parameter correctly and checks something against "/" instead of "/target".
-------
I really don't know what else to add...
ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: snapd 2.23.1
ProcVersionSign
Uname: Linux 4.8.0-36-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.5
Architecture: amd64
CasperVersion: 1.376.2
Date: Wed Mar 15 16:03:33 2017
DuplicateSignature:
package:
Unpacking snapd (2.23.1) over (2.21) ...
dpkg: error processing archive /target/
trying to overwrite '/etc/apparmor.
ErrorMessage: trying to overwrite '/etc/apparmor.
LiveMediaBuild: Ubuntu-GNOME 16.04.2 LTS "Xenial Xerus" - Release amd64 (20170215)
RelatedPackageV
dpkg 1.18.4ubuntu1.1
apt 1.2.19
SourcePackage: snapd
Title: package snapd 2.23.1 failed to install/upgrade: trying to overwrite '/etc/apparmor.
UpgradeStatus: No upgrade log present (probably fresh install)
tags: | removed: need-duplicate-check |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
tags: | added: patch |
Changed in dpkg (Ubuntu Trusty): | |
assignee: | nobody → Néstor O. Gozza (mangosta11) |
Changed in dpkg (Ubuntu Trusty): | |
assignee: | Néstor O. Gozza (mangosta11) → nobody |
Changed in dpkg (Ubuntu Xenial): | |
assignee: | Reinhardt Pflanz (sajaha-e) → nobody |
Changed in dpkg (Ubuntu Yakkety): | |
status: | Confirmed → Invalid |
Changed in snapd (Ubuntu Yakkety): | |
status: | Confirmed → Invalid |
Changed in snapd (Ubuntu Zesty): | |
assignee: | nobody → Slavik (slavikstar) |
information type: | Public → Private |
description: | updated |
Changed in snapd (Ubuntu Xenial): | |
status: | Confirmed → In Progress |
Changed in snapd (Ubuntu Zesty): | |
status: | Confirmed → In Progress |
Changed in dpkg (Ubuntu Trusty): | |
status: | Confirmed → In Progress |
Changed in dpkg (Ubuntu Xenial): | |
status: | Confirmed → In Progress |
Changed in dpkg (Ubuntu Zesty): | |
status: | Confirmed → In Progress |
Changed in snapd (Ubuntu Yakkety): | |
status: | Invalid → In Progress |
Changed in snapd (Ubuntu Zesty): | |
assignee: | a59ff5 (a59ff5a59ff5) → nobody |
Changed in snapd (Ubuntu): | |
assignee: | Michael Vogt (mvo) → nobody |
Changed in dpkg (Ubuntu Yakkety): | |
status: | Invalid → In Progress |
information type: | Private → Public |
Changed in snapd (Ubuntu): | |
status: | In Progress → Fix Released |
Changed in dpkg (Ubuntu): | |
status: | In Progress → Fix Released |
Changed in dpkg (Ubuntu Trusty): | |
status: | In Progress → Fix Released |
Changed in dpkg (Ubuntu Xenial): | |
status: | In Progress → Fix Released |
Changed in dpkg (Ubuntu Yakkety): | |
status: | In Progress → Fix Released |
Changed in snapd (Ubuntu Trusty): | |
status: | In Progress → Fix Released |
Changed in snapd (Ubuntu Xenial): | |
status: | In Progress → Fix Released |
Changed in snapd (Ubuntu Yakkety): | |
status: | In Progress → Fix Released |
Changed in snapd (Ubuntu Zesty): | |
status: | In Progress → Fix Released |
Changed in dpkg (Ubuntu Zesty): | |
status: | In Progress → Fix Released |
Changed in snapd (Ubuntu Xenial): | |
status: | Fix Released → Confirmed |
Changed in snapd (Ubuntu Zesty): | |
status: | Fix Released → Confirmed |
Changed in dpkg (Ubuntu Trusty): | |
status: | Fix Released → Confirmed |
Changed in dpkg (Ubuntu Xenial): | |
status: | Fix Released → Confirmed |
Changed in dpkg (Ubuntu Zesty): | |
status: | Fix Released → Confirmed |
Changed in snapd (Ubuntu Yakkety): | |
status: | Fix Released → Invalid |
Changed in snapd (Ubuntu): | |
assignee: | nobody → Michael Vogt (mvo) |
Changed in dpkg (Ubuntu Yakkety): | |
status: | Fix Released → Invalid |
Changed in snapd (Ubuntu): | |
status: | Fix Released → In Progress |
Changed in dpkg (Ubuntu): | |
status: | Fix Released → In Progress |
Changed in snapd (Ubuntu Trusty): | |
status: | Fix Released → In Progress |
Status changed to 'Confirmed' because the bug affects multiple users.