2017-03-15 20:22:42 |
Luke L |
bug |
|
|
added bug |
2017-03-15 20:31:07 |
Apport retracing service |
tags |
amd64 apport-package need-duplicate-check package-conflict xenial |
amd64 apport-package package-conflict xenial |
|
2017-03-15 20:31:08 |
Apport retracing service |
bug |
|
|
added subscriber Crash bug triagers for Ubuntu packages |
2017-03-15 20:55:40 |
Launchpad Janitor |
snapd (Ubuntu): status |
New |
Confirmed |
|
2017-03-15 23:36:48 |
mike |
bug |
|
|
added subscriber mike |
2017-03-15 23:45:54 |
Stephen Balaban |
bug |
|
|
added subscriber Stephen Balaban |
2017-03-16 02:18:36 |
Adam Conrad |
snapd (Ubuntu): assignee |
|
Michael Vogt (mvo) |
|
2017-03-16 02:18:42 |
Adam Conrad |
snapd (Ubuntu): importance |
Undecided |
Critical |
|
2017-03-16 02:18:52 |
Adam Conrad |
nominated for series |
|
Ubuntu Xenial |
|
2017-03-16 02:18:52 |
Adam Conrad |
bug task added |
|
snapd (Ubuntu Xenial) |
|
2017-03-16 02:18:52 |
Adam Conrad |
nominated for series |
|
Ubuntu Yakkety |
|
2017-03-16 02:18:52 |
Adam Conrad |
bug task added |
|
snapd (Ubuntu Yakkety) |
|
2017-03-16 02:18:52 |
Adam Conrad |
nominated for series |
|
Ubuntu Trusty |
|
2017-03-16 02:18:52 |
Adam Conrad |
bug task added |
|
snapd (Ubuntu Trusty) |
|
2017-03-16 08:21:26 |
Michael Vogt |
description |
I really don't know what else to add...
ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: snapd 2.23.1
ProcVersionSignature: Ubuntu 4.8.0-36.36~16.04.1-generic 4.8.11
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:snapd:2.23.1
Unpacking snapd (2.23.1) over (2.21) ...
dpkg: error processing archive /target/var/cache/apt/archives/snapd_2.23.1_amd64.deb (--unpack):
trying to overwrite '/etc/apparmor.d/usr.lib.snapd.snap-confine', which is also in package snap-confine 2.23.1
ErrorMessage: trying to overwrite '/etc/apparmor.d/usr.lib.snapd.snap-confine', which is also in package snap-confine 2.23.1
LiveMediaBuild: Ubuntu-GNOME 16.04.2 LTS "Xenial Xerus" - Release amd64 (20170215)
RelatedPackageVersions:
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.d/usr.lib.snapd.snap-confine', which is also in package snap-confine 2.23.1
UpgradeStatus: No upgrade log present (probably fresh install) |
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
Cause:
- unknown but under investigation
---------------------------------------------
I really don't know what else to add...
ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: snapd 2.23.1
ProcVersionSignature: Ubuntu 4.8.0-36.36~16.04.1-generic 4.8.11
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:snapd:2.23.1
Unpacking snapd (2.23.1) over (2.21) ...
dpkg: error processing archive /target/var/cache/apt/archives/snapd_2.23.1_amd64.deb (--unpack):
trying to overwrite '/etc/apparmor.d/usr.lib.snapd.snap-confine', which is also in package snap-confine 2.23.1
ErrorMessage: trying to overwrite '/etc/apparmor.d/usr.lib.snapd.snap-confine', which is also in package snap-confine 2.23.1
LiveMediaBuild: Ubuntu-GNOME 16.04.2 LTS "Xenial Xerus" - Release amd64 (20170215)
RelatedPackageVersions:
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.d/usr.lib.snapd.snap-confine', which is also in package snap-confine 2.23.1
UpgradeStatus: No upgrade log present (probably fresh install) |
|
2017-03-16 09:39:17 |
Vincent Ladeuil |
bug |
|
|
added subscriber Vincent Ladeuil |
2017-03-16 10:18:08 |
Michael Vogt |
description |
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
Cause:
- unknown but under investigation
---------------------------------------------
I really don't know what else to add...
ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: snapd 2.23.1
ProcVersionSignature: Ubuntu 4.8.0-36.36~16.04.1-generic 4.8.11
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:snapd:2.23.1
Unpacking snapd (2.23.1) over (2.21) ...
dpkg: error processing archive /target/var/cache/apt/archives/snapd_2.23.1_amd64.deb (--unpack):
trying to overwrite '/etc/apparmor.d/usr.lib.snapd.snap-confine', which is also in package snap-confine 2.23.1
ErrorMessage: trying to overwrite '/etc/apparmor.d/usr.lib.snapd.snap-confine', which is also in package snap-confine 2.23.1
LiveMediaBuild: Ubuntu-GNOME 16.04.2 LTS "Xenial Xerus" - Release amd64 (20170215)
RelatedPackageVersions:
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.d/usr.lib.snapd.snap-confine', which is also in package snap-confine 2.23.1
UpgradeStatus: No upgrade log present (probably fresh install) |
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
ProcVersionSignature: Ubuntu 4.8.0-36.36~16.04.1-generic 4.8.11
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:snapd:2.23.1
Unpacking snapd (2.23.1) over (2.21) ...
dpkg: error processing archive /target/var/cache/apt/archives/snapd_2.23.1_amd64.deb (--unpack):
trying to overwrite '/etc/apparmor.d/usr.lib.snapd.snap-confine', which is also in package snap-confine 2.23.1
ErrorMessage: trying to overwrite '/etc/apparmor.d/usr.lib.snapd.snap-confine', which is also in package snap-confine 2.23.1
LiveMediaBuild: Ubuntu-GNOME 16.04.2 LTS "Xenial Xerus" - Release amd64 (20170215)
RelatedPackageVersions:
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.d/usr.lib.snapd.snap-confine', which is also in package snap-confine 2.23.1
UpgradeStatus: No upgrade log present (probably fresh install) |
|
2017-03-16 10:48:11 |
Stephen Balaban |
removed subscriber Stephen Balaban |
|
|
|
2017-03-16 15:19:44 |
Michael Vogt |
attachment added |
|
Proposed fix https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1673247/+attachment/4838985/+files/dpkg_1.18.10ubuntu2.debdiff |
|
2017-03-16 15:19:54 |
Michael Vogt |
bug task added |
|
dpkg (Ubuntu) |
|
2017-03-16 15:28:14 |
Luke L |
removed subscriber Luke L |
|
|
|
2017-03-16 15:34:39 |
Michael Vogt |
description |
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
ProcVersionSignature: Ubuntu 4.8.0-36.36~16.04.1-generic 4.8.11
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:snapd:2.23.1
Unpacking snapd (2.23.1) over (2.21) ...
dpkg: error processing archive /target/var/cache/apt/archives/snapd_2.23.1_amd64.deb (--unpack):
trying to overwrite '/etc/apparmor.d/usr.lib.snapd.snap-confine', which is also in package snap-confine 2.23.1
ErrorMessage: trying to overwrite '/etc/apparmor.d/usr.lib.snapd.snap-confine', which is also in package snap-confine 2.23.1
LiveMediaBuild: Ubuntu-GNOME 16.04.2 LTS "Xenial Xerus" - Release amd64 (20170215)
RelatedPackageVersions:
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.d/usr.lib.snapd.snap-confine', which is also in package snap-confine 2.23.1
UpgradeStatus: No upgrade log present (probably fresh install) |
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.d/usr.lib.snapd.snap-confine. The snapd packages declares a breaks/replaces: snapd-confine (<< 2.23) which works correctly on regular upgrades. However it does fail on upgrades with the "--root=/target" that is used by ubiquity.
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
ProcVersionSignature: Ubuntu 4.8.0-36.36~16.04.1-generic 4.8.11
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:snapd:2.23.1
Unpacking snapd (2.23.1) over (2.21) ...
dpkg: error processing archive /target/var/cache/apt/archives/snapd_2.23.1_amd64.deb (--unpack):
trying to overwrite '/etc/apparmor.d/usr.lib.snapd.snap-confine', which is also in package snap-confine 2.23.1
ErrorMessage: trying to overwrite '/etc/apparmor.d/usr.lib.snapd.snap-confine', which is also in package snap-confine 2.23.1
LiveMediaBuild: Ubuntu-GNOME 16.04.2 LTS "Xenial Xerus" - Release amd64 (20170215)
RelatedPackageVersions:
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.d/usr.lib.snapd.snap-confine', which is also in package snap-confine 2.23.1
UpgradeStatus: No upgrade log present (probably fresh install) |
|
2017-03-16 15:37:39 |
Michael Vogt |
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.d/usr.lib.snapd.snap-confine. The snapd packages declares a breaks/replaces: snapd-confine (<< 2.23) which works correctly on regular upgrades. However it does fail on upgrades with the "--root=/target" that is used by ubiquity.
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
ProcVersionSignature: Ubuntu 4.8.0-36.36~16.04.1-generic 4.8.11
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:snapd:2.23.1
Unpacking snapd (2.23.1) over (2.21) ...
dpkg: error processing archive /target/var/cache/apt/archives/snapd_2.23.1_amd64.deb (--unpack):
trying to overwrite '/etc/apparmor.d/usr.lib.snapd.snap-confine', which is also in package snap-confine 2.23.1
ErrorMessage: trying to overwrite '/etc/apparmor.d/usr.lib.snapd.snap-confine', which is also in package snap-confine 2.23.1
LiveMediaBuild: Ubuntu-GNOME 16.04.2 LTS "Xenial Xerus" - Release amd64 (20170215)
RelatedPackageVersions:
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.d/usr.lib.snapd.snap-confine', which is also in package snap-confine 2.23.1
UpgradeStatus: No upgrade log present (probably fresh install) |
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.d/usr.lib.snapd.snap-confine. The snapd packages declares a breaks/replaces: snapd-confine (<< 2.23) which works correctly on regular upgrades. However it does fail on upgrades with the "--root=/target" that is used by ubiquity. After a bit of debugging it turns out the reason is that
src/archives.c:tarobject() has a check for obsolete conffiles in the block
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
ProcVersionSignature: Ubuntu 4.8.0-36.36~16.04.1-generic 4.8.11
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:snapd:2.23.1
Unpacking snapd (2.23.1) over (2.21) ...
dpkg: error processing archive /target/var/cache/apt/archives/snapd_2.23.1_amd64.deb (--unpack):
trying to overwrite '/etc/apparmor.d/usr.lib.snapd.snap-confine', which is also in package snap-confine 2.23.1
ErrorMessage: trying to overwrite '/etc/apparmor.d/usr.lib.snapd.snap-confine', which is also in package snap-confine 2.23.1
LiveMediaBuild: Ubuntu-GNOME 16.04.2 LTS "Xenial Xerus" - Release amd64 (20170215)
RelatedPackageVersions:
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.d/usr.lib.snapd.snap-confine', which is also in package snap-confine 2.23.1
UpgradeStatus: No upgrade log present (probably fresh install) |
|
2017-03-16 16:27:41 |
Ubuntu Foundations Team Bug Bot |
tags |
amd64 apport-package package-conflict xenial |
amd64 apport-package package-conflict patch xenial |
|
2017-03-16 16:52:14 |
Michael Vogt |
attachment added |
|
patch from upstream https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1673247/+attachment/4839009/+files/dpkg-conffile-root-and-divert.patch |
|
2017-03-16 18:06:09 |
lowellsteed |
removed subscriber lowellsteed |
|
|
|
2017-03-17 07:40:28 |
Michael Vogt |
dpkg (Ubuntu): status |
New |
In Progress |
|
2017-03-17 07:40:31 |
Michael Vogt |
dpkg (Ubuntu): importance |
Undecided |
Critical |
|
2017-03-17 07:40:35 |
Michael Vogt |
snapd (Ubuntu): status |
Confirmed |
Invalid |
|
2017-03-17 07:40:40 |
Michael Vogt |
snapd (Ubuntu Trusty): status |
New |
Invalid |
|
2017-03-17 07:40:46 |
Michael Vogt |
snapd (Ubuntu Trusty): status |
Invalid |
In Progress |
|
2017-03-17 07:40:48 |
Michael Vogt |
snapd (Ubuntu): status |
Invalid |
In Progress |
|
2017-03-17 07:45:00 |
Michael Vogt |
attachment added |
|
Testcase for https://anonscm.debian.org/git/dpkg/dpkg-tests.git https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1673247/+attachment/4839251/+files/0001-add-test-for-LP-1673247.patch |
|
2017-03-17 07:45:43 |
Michael Vogt |
attachment added |
|
debdiff for yakkety https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1673247/+attachment/4839252/+files/dpkg_1.18.10ubuntu1.1.debdiff |
|
2017-03-17 07:51:33 |
Michael Vogt |
attachment added |
|
debdiff for trusty https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1673247/+attachment/4839254/+files/dpkg_1.17.5ubuntu5.8.debdiff |
|
2017-03-17 07:52:13 |
Michael Vogt |
attachment added |
|
debdiff for trusty https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1673247/+attachment/4839255/+files/dpkg_1.18.4ubuntu1.2.debdiff |
|
2017-03-17 07:58:53 |
Michael Vogt |
attachment added |
|
debdiff for zesty https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1673247/+attachment/4839256/+files/dpkg_1.18.10ubuntu2.debdiff |
|
2017-03-20 14:17:06 |
Jean-Baptiste Lallement |
bug |
|
|
added subscriber Jean-Baptiste Lallement |
2017-03-20 21:50:41 |
Launchpad Janitor |
dpkg (Ubuntu Trusty): status |
New |
Confirmed |
|
2017-03-20 21:50:41 |
Launchpad Janitor |
dpkg (Ubuntu Xenial): status |
New |
Confirmed |
|
2017-03-20 21:50:41 |
Launchpad Janitor |
snapd (Ubuntu Xenial): status |
New |
Confirmed |
|
2017-03-20 21:50:41 |
Launchpad Janitor |
dpkg (Ubuntu Yakkety): status |
New |
Confirmed |
|
2017-03-20 21:50:41 |
Launchpad Janitor |
snapd (Ubuntu Yakkety): status |
New |
Confirmed |
|
2017-05-14 20:07:32 |
Adam Conrad |
nominated for series |
|
Ubuntu Zesty |
|
2017-05-14 20:07:32 |
Adam Conrad |
bug task added |
|
dpkg (Ubuntu Zesty) |
|
2017-05-14 20:07:32 |
Adam Conrad |
bug task added |
|
snapd (Ubuntu Zesty) |
|
2017-06-30 09:48:37 |
Reinhardt Pflanz |
dpkg (Ubuntu Xenial): assignee |
|
Reinhardt Pflanz (sajaha-e) |
|
2017-07-05 17:40:49 |
Néstor O. Gozza |
dpkg (Ubuntu Trusty): assignee |
|
Néstor O. Gozza (mangosta11) |
|
2017-07-08 06:29:25 |
Launchpad Janitor |
dpkg (Ubuntu Zesty): status |
New |
Confirmed |
|
2017-07-08 06:29:25 |
Launchpad Janitor |
snapd (Ubuntu Zesty): status |
New |
Confirmed |
|
2018-02-06 15:07:53 |
dino99 |
dpkg (Ubuntu Trusty): assignee |
Néstor O. Gozza (mangosta11) |
|
|
2018-02-06 15:08:09 |
dino99 |
dpkg (Ubuntu Xenial): assignee |
Reinhardt Pflanz (sajaha-e) |
|
|
2018-02-06 15:08:27 |
dino99 |
dpkg (Ubuntu Yakkety): status |
Confirmed |
Invalid |
|
2018-02-06 15:08:40 |
dino99 |
snapd (Ubuntu Yakkety): status |
Confirmed |
Invalid |
|
2019-10-29 22:08:43 |
Zygmunt Krynicki |
bug task added |
|
snapd |
|
2019-10-30 11:59:52 |
Michael Vogt |
snapd: status |
New |
Won't Fix |
|
2020-03-13 19:05:29 |
a59ff5 |
snapd (Ubuntu Zesty): assignee |
|
Slavik (slavikstar) |
|
2020-06-19 09:49:47 |
a59ff5 |
information type |
Public |
Private |
|
2020-06-19 09:50:49 |
a59ff5 |
removed subscriber mike |
|
|
|
2020-06-19 09:50:49 |
a59ff5 |
removed subscriber Crash bug triagers for Ubuntu packages |
|
|
|
2020-06-19 09:50:49 |
a59ff5 |
removed subscriber Vincent Ladeuil |
|
|
|
2020-06-19 09:50:49 |
a59ff5 |
removed subscriber Jean-Baptiste Lallement |
|
|
|
2020-06-19 09:50:49 |
a59ff5 |
removed subscriber Reinhardt Pflanz |
|
|
|
2021-03-28 05:51:14 |
a59ff5 |
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.d/usr.lib.snapd.snap-confine. The snapd packages declares a breaks/replaces: snapd-confine (<< 2.23) which works correctly on regular upgrades. However it does fail on upgrades with the "--root=/target" that is used by ubiquity. After a bit of debugging it turns out the reason is that
src/archives.c:tarobject() has a check for obsolete conffiles in the block
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
ProcVersionSignature: Ubuntu 4.8.0-36.36~16.04.1-generic 4.8.11
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:snapd:2.23.1
Unpacking snapd (2.23.1) over (2.21) ...
dpkg: error processing archive /target/var/cache/apt/archives/snapd_2.23.1_amd64.deb (--unpack):
trying to overwrite '/etc/apparmor.d/usr.lib.snapd.snap-confine', which is also in package snap-confine 2.23.1
ErrorMessage: trying to overwrite '/etc/apparmor.d/usr.lib.snapd.snap-confine', which is also in package snap-confine 2.23.1
LiveMediaBuild: Ubuntu-GNOME 16.04.2 LTS "Xenial Xerus" - Release amd64 (20170215)
RelatedPackageVersions:
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.d/usr.lib.snapd.snap-confine', which is also in package snap-confine 2.23.1
UpgradeStatus: No upgrade log present (probably fresh install) |
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.d/usr.lib.snapd.snap-confine. The snapd packages declares a breaks/replaces: snapd-confine (<< 2.23) which works correctly on regular upgrades. However it does fail on upgrades with the "--root=/target" that is used by ubiquity. After a bit of debugging it turns out the reason is that
src/archives.c:tarobject() has a check for obsolete conffiles in the block
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
ProcVersionSignature: Ubuntu 4.8.0-36.36~16.04.1-generic 4.8.11
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:snapd:2.23.1
Unpacking snapd (2.23.1) over (2.21) ...
dpkg: error processing archive /target/var/cache/apt/archives/snapd_2.23.1_amd64.deb (--unpack):
trying to overwrite '/etc/apparmor.d/usr.lib.snapd.snap-confine', which is also in package snap-confine 2.23.1
ErrorMessage: trying to overwrite '/etc/apparmor.d/usr.lib.snapd.snap-confine', which is also in package snap-confine 2.23.1
LiveMediaBuild: Ubuntu-GNOME 16.04.2 LTS "Xenial Xerus" - Release amd64 (20170215)
RelatedPackageVersions:
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.d/usr.lib.snapd.snap-confine', which is also in package snap-confine 2.23.1
UpgradeStatus: No upgrade log present (probably fresh install) |
|
2021-03-28 06:02:15 |
a59ff5 |
snapd (Ubuntu Xenial): status |
Confirmed |
In Progress |
|
2021-03-28 06:03:04 |
a59ff5 |
snapd (Ubuntu Zesty): status |
Confirmed |
In Progress |
|
2021-03-28 06:03:25 |
a59ff5 |
dpkg (Ubuntu Trusty): status |
Confirmed |
In Progress |
|
2021-03-28 06:03:49 |
a59ff5 |
dpkg (Ubuntu Xenial): status |
Confirmed |
In Progress |
|
2021-03-28 06:04:12 |
a59ff5 |
dpkg (Ubuntu Zesty): status |
Confirmed |
In Progress |
|
2021-03-28 06:37:16 |
a59ff5 |
snapd (Ubuntu Yakkety): status |
Invalid |
In Progress |
|
2021-03-28 06:37:50 |
a59ff5 |
snapd (Ubuntu Zesty): assignee |
a59ff5 (a59ff5a59ff5) |
|
|
2021-03-28 06:38:08 |
a59ff5 |
snapd (Ubuntu): assignee |
Michael Vogt (mvo) |
|
|
2021-03-28 06:38:30 |
a59ff5 |
dpkg (Ubuntu Yakkety): status |
Invalid |
In Progress |
|
2021-03-29 19:40:37 |
a59ff5 |
information type |
Private |
Public |
|
2021-03-29 19:41:13 |
a59ff5 |
snapd (Ubuntu): status |
In Progress |
Fix Released |
|
2021-03-29 19:42:07 |
a59ff5 |
dpkg (Ubuntu): status |
In Progress |
Fix Released |
|
2021-03-29 19:43:16 |
a59ff5 |
dpkg (Ubuntu Trusty): status |
In Progress |
Fix Released |
|
2021-03-29 19:43:29 |
a59ff5 |
dpkg (Ubuntu Xenial): status |
In Progress |
Fix Released |
|
2021-03-29 19:43:46 |
a59ff5 |
dpkg (Ubuntu Yakkety): status |
In Progress |
Fix Released |
|
2021-03-29 19:45:16 |
a59ff5 |
snapd (Ubuntu Trusty): status |
In Progress |
Fix Released |
|
2021-03-29 19:45:42 |
a59ff5 |
snapd (Ubuntu Xenial): status |
In Progress |
Fix Released |
|
2021-03-29 19:45:57 |
a59ff5 |
snapd (Ubuntu Yakkety): status |
In Progress |
Fix Released |
|
2021-03-29 19:46:17 |
a59ff5 |
snapd (Ubuntu Zesty): status |
In Progress |
Fix Released |
|
2021-03-29 20:01:50 |
a59ff5 |
dpkg (Ubuntu Zesty): status |
In Progress |
Fix Released |
|
2021-03-29 20:50:26 |
Colin Watson |
snapd (Ubuntu Xenial): status |
Fix Released |
Confirmed |
|
2021-03-29 20:50:46 |
Colin Watson |
snapd (Ubuntu Zesty): status |
Fix Released |
Confirmed |
|
2021-03-29 20:51:07 |
Colin Watson |
dpkg (Ubuntu Trusty): status |
Fix Released |
Confirmed |
|
2021-03-29 20:51:25 |
Colin Watson |
dpkg (Ubuntu Xenial): status |
Fix Released |
Confirmed |
|
2021-03-29 20:51:36 |
Colin Watson |
dpkg (Ubuntu Zesty): status |
Fix Released |
Confirmed |
|
2021-03-29 20:52:03 |
Colin Watson |
snapd (Ubuntu Yakkety): status |
Fix Released |
Invalid |
|
2021-03-29 20:52:30 |
Colin Watson |
snapd (Ubuntu): assignee |
|
Michael Vogt (mvo) |
|
2021-03-29 20:53:03 |
Colin Watson |
dpkg (Ubuntu Yakkety): status |
Fix Released |
Invalid |
|
2021-03-29 20:54:00 |
Colin Watson |
snapd (Ubuntu): status |
Fix Released |
In Progress |
|
2021-03-29 20:54:40 |
Colin Watson |
dpkg (Ubuntu): status |
Fix Released |
In Progress |
|
2021-03-29 20:55:34 |
Colin Watson |
snapd (Ubuntu Trusty): status |
Fix Released |
In Progress |
|