So the .maintscript is not quite correct. I attach a diff with the fix. However, there is still a ugly warning when this gets installed, I think because "ubuntu-core-launcher" switches from arch:any to arch:all:
root@bod:/tmp# dpkg -i ubuntu-core-launcher_1.0.38-0ubuntu0.16.04.2_all.deb snap-confine_1.0.38-0ubuntu0.16.04.2_amd64.deb
(Reading database ... 13773 files and directories currently installed.)
Preparing to unpack ubuntu-core-launcher_1.0.38-0ubuntu0.16.04.2_all.deb ...
dpkg-query: package 'ubuntu-core-launcher' is not installed
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
Unpacking ubuntu-core-launcher (1.0.38-0ubuntu0.16.04.2) over (1.0.27.1) ...
Selecting previously unselected package snap-confine.
Preparing to unpack snap-confine_1.0.38-0ubuntu0.16.04.2_amd64.deb ...
Unpacking snap-confine (1.0.38-0ubuntu0.16.04.2) ...
Setting up snap-confine (1.0.38-0ubuntu0.16.04.2) ...
Setting up ubuntu-core-launcher (1.0.38-0ubuntu0.16.04.2) ...
Run with "sh -ex": /etc/apparmor. d/usr.lib. snapd.snap- confine d/usr.lib. snapd.snap- confine ] PROFILE= /etc/apparmor. d/local/ usr.lib. snapd.snap- confine d/local/ usr.lib. snapd.snap- confine tmp.BKsvA38yfB d/local/ usr.lib. snapd.snap- confine d/local d/local/ usr.lib. snapd.snap- confine d/local/ usr.lib. snapd.snap- confine t-helper rm_conffile /etc/apparmor. d/usr.bin. snap-confine 1.0.36-1~ -- configure -- configure
+ [ configure = configure ]
+ APP_PROFILE=
+ [ -f /etc/apparmor.
+ LOCAL_APP_
+ test -e /etc/apparmor.
+ mktemp
+ tmp=/tmp/
+ cat
+ dirname /etc/apparmor.
+ mkdir /etc/apparmor.
+ true
+ mv -f /tmp/tmp.BKsvA38yfB /etc/apparmor.
+ chmod 644 /etc/apparmor.
+ aa-status --enabled
+ dpkg-maintscrip
So the .maintscript is not quite correct. I attach a diff with the fix. However, there is still a ugly warning when this gets installed, I think because "ubuntu- core-launcher" switches from arch:any to arch:all:
root@bod:/tmp# dpkg -i ubuntu- core-launcher_ 1.0.38- 0ubuntu0. 16.04.2_ all.deb snap-confine_ 1.0.38- 0ubuntu0. 16.04.2_ amd64.deb core-launcher_ 1.0.38- 0ubuntu0. 16.04.2_ all.deb ... core-launcher' is not installed core-launcher (1.0.38- 0ubuntu0. 16.04.2) over (1.0.27.1) ... 1.0.38- 0ubuntu0. 16.04.2_ amd64.deb ... 0ubuntu0. 16.04.2) ... 0ubuntu0. 16.04.2) ... core-launcher (1.0.38- 0ubuntu0. 16.04.2) ...
(Reading database ... 13773 files and directories currently installed.)
Preparing to unpack ubuntu-
dpkg-query: package 'ubuntu-
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
Unpacking ubuntu-
Selecting previously unselected package snap-confine.
Preparing to unpack snap-confine_
Unpacking snap-confine (1.0.38-
Setting up snap-confine (1.0.38-
Setting up ubuntu-