Fresh install of chromium-browser during installer-like process, in a chroot fails (when preparing machines prior to first boot)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
chromium-browser (Ubuntu) |
Fix Released
|
Medium
|
Olivier Tilloy | ||
Focal |
Fix Released
|
Medium
|
Olivier Tilloy |
Bug Description
[Impact]
Users trying to install chromium-browser with apt in a chroot will see the preinst script hang for 30min, and eventually fail.
This use case is important as chroots are used by sysadmins to prepare installers.
[Test Case]
Create a focal chroot (for example using "pcreate -a amd64 -d focal focal-amd64"), enter the chroot and run "apt install chromium-browser".
Expected outcome: the installation succeeds, even though the chromium snap is not being installed because snapd cannot run in the chroot.
Incorrect (current) outcome: the installation hangs during 30 minutes while trying to contact the snap store, and eventually fails.
[Regression Potential]
As this change modifies the chromium-browser preinstallation script, it should be verified that installing the package on systems that are capable of running snapd (e.g. virtual machines or bare metal) still works as expected.
[Original Description]
Since snapd integration, chromium-browser package fails to install in a post kickstart chroot.
As APT obfuscate snap installation, I worry about auto installation off any other snap package.
When a user is running the installer, and instructs to install chromium-browser with apt in the /target chroot the experience is extremely bad.
There are timeouts, there is critical debconf prompt, and no explanation as to what is happening.
This is not an upgrade, and no conversion from deb2snap is needed.
It is in a chroot, because this is how installers work.
It feels like as if on fresh install of chromium-browser it should try "snap install --now-or-
Overall, imho on new installations of the package, if there is no snapd running, it should be skipped without asking any questions or popping up any dialogues.
summary: |
- install chromium-browser in a chroot fails + Fresh install of chromium-browser during installer-like process, in a + chroot fails (when preparing machines prior to first boot) |
Changed in chromium-browser (Ubuntu Focal): | |
assignee: | nobody → Olivier Tilloy (osomon) |
importance: | Undecided → Medium |
status: | New → In Progress |
description: | updated |
That's a debconf note. How did you invoke installation?
All package installation is interactive. If you want non-interactive package installation one has to pass options to apt to "do not disturb me" and accept defaults to any questions around installation or upgrades.
DEBIAN_ FRONTEND= noninteractive chroot $MY_CHROOT apt-get -y install $packages
is the better way to install packages non-interactively. Does doing something like that sufficient to complete chromium-browser package installation?