[Bug 2033308] Re: conffile prompt in upgrade from 29 -> 29.2
John Chittum
2033308 at bugs.launchpad.net
Fri Sep 1 14:36:07 UTC 2023
I worked up a reproducer of things operating as expected, which makes me
believe it's a timing issue around when `livecd-rootfs` and `live-build`
do cleanup. on livecd-rootfs:ubuntu/master, i added the following to
`live-build/ubuntu-cpc/hooks.d/base/create-root-dir.binary`
env DEBIAN_FRONTEND=noninteractive chroot $rootfs_dir apt-get --purge remove --assume-yes ubuntu-advantage-tools
env DEBIAN_FRONTEND=noninteractive chroot $rootfs_dir apt-get autoremove --purge --assume-yes
env DEBIAN_FRONTEND=noninteractive chroot $rootfs_dir apt-get install --assume-yes ubuntu-advantage-tools
I then ran a build of `PROJECT=ubuntu-cpc IMAGE_TARGET=tarball`
afterwards, registered an lxc container locally with the lxd metadata
from cloud-images.ubuntu.com (http://cloud-
images.ubuntu.com/mantic/20230823/mantic-server-cloudimg-
amd64-lxd.tar.xz)
lxc image import mantic-server-cloudimg-amd64-lxd.tar.xz livecd.ubuntu-
cpc.rootfs.tar.xz --alias mantic-ua-manual-install
lxc shell immortal-bobcat
root at immortal-bobcat:~# dpkg -l | grep ubuntu-ad
ii ubuntu-advantage-tools 29.3 amd64 management tools for Ubuntu Pro
root at immortal-bobcat:~# ls /etc/apt/preferences.d/
ubuntu-pro-esm-apps ubuntu-pro-esm-infra
root at immortal-bobcat:~# cat /etc/cloud/build.info
build_name: server
serial: 20230901.1405
I'm now going to see if i can work up a reproducer of it _failing_ on
Jammy by adding a proposed install during `auto/build` rather than a
hook.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to livecd-rootfs in Ubuntu.
https://bugs.launchpad.net/bugs/2033308
Title:
conffile prompt in upgrade from 29 -> 29.2
Status in livecd-rootfs package in Ubuntu:
New
Status in ubuntu-advantage-tools package in Ubuntu:
New
Bug description:
When updating ubuntu-advantage-tools from 29 -> 29.2, a conffile prompt is seen.
This is on a system that is presumed to not have modified the relevant files.
Setting up ubuntu-advantage-tools (29.2) ...
Configuration file '/etc/apt/preferences.d/ubuntu-pro-esm-apps'
==> Deleted (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** ubuntu-pro-esm-apps (Y/I/N/O/D/Z) [default=N] ?
Configuration file '/etc/apt/preferences.d/ubuntu-pro-esm-infra'
==> Deleted (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** ubuntu-pro-esm-infra (Y/I/N/O/D/Z) [default=N] ?
steps to reproduce (at least today):
lxc launch ubuntu-daily:mantic
in container:
apt update
apt install ubuntu-advantage-tools
Discovered in subiquity CI -
https://github.com/canonical/subiquity/actions/runs/6003040269/job/16280611441?pr=1773#step:3:1080
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/2033308/+subscriptions
More information about the foundations-bugs
mailing list