Updated bug description to include #8 in test plan.

> I was expecting to see version 1:1snap1-0ubuntu8.1 instead of
1:1snap1-0ubuntu9.1. 9.1 still works, since stonking has ubuntu10, but
it's odd and should have been caught at sponsoring time, or at least
explained here in the bug.

I figured both would work too; preferred the latter because in the
current archive state, version ubuntu8 is just a no-change rebuild
whereas version ubuntu9 is the one introducing the change I'd like to
backport to 26.04.

> NOTE: since the upload also mentions #1886414, that bug fill be
reopened by this SRU, and will have to be verified again. If that is not
done, it won't appear as ready in the pending report, and the sru won't
be released. Do you want to update d/changelog to that that bug is not
included in the sources.changes file, or will you handle that extra
verification?

Oh, that would be annoying indeed. Can you please reject the upload
then? I'll upload again without a direct bug reference to 1886414.

** Description changed:

  [Impact]
  
  Firefox deb package causes ubuntu-desktop installation to fail when
  autoinstalling.
  
  [Test plan]
  
- Follow the autoinstall quickstart[1] with 20G disk image, 4096G RAM and
- the following user-data:
+ 1. Make sure the package is installed normally with 'apt install
+ firefox'.
+ 
+ 2. Follow the autoinstall quickstart[1] with 20G disk image, 4096G RAM
+ and the following user-data:
  
  #cloud-config
  autoinstall:
    version: 1
    packages:
      - ubuntu-desktop
    identity:
      hostname: ubuntu-server
      password: 
"$6$exDY1mhS4KUYCE/2$zmn9ToZwTKLhCw.b4/b.ZRTIZM30JZ4QrOQ2aOXJ8yk96xpcCof0kxKwuX1kqLG/ygbJ1f8wxED22bTL4F46P0"
      username: ubuntu
  
  Success: installation completes
  Failure: step install_ubuntu-desktop returns non-zero exit status 100
  
  [Regression potential]
  
  Regressions could occur during the installation of the package (similar
  to what the original report describes) or the installation of the
  package could succeed and have the Firefox browser nonetheless missing
  (e.g. by not really running snap install).
  
  [Original bug report]
  
  Hi,
  
  I use Ubuntu autoinstall[1] to automate Ubuntu installations.
  
  While testing 26.04, I noticed that the ubuntu-desktop installation
  failed with apt error 100.
  
  I use the `packages` section of the autoinstall[2] to install ubuntu-
  desktop.
  
  To troubleshoot this issue, I have added the following command in late-
  commands[3] since the logs did not provide sufficient details.
  
  curtin in-target --target=/target -- apt-get install -y ubuntu-desktop
  2>&1 | tee /target/ubuntu-desktop-apt.log
  
  The ubuntu-desktop-apt.log then showed:
  
  ```
  ==> Installing the firefox snap
  /var/lib/dpkg/tmp.ci/preinst: 80: cannot create /dev/tty: No such device or 
address
  dpkg: error processing archive 
/tmp/apt-dpkg-install-jl4ZBb/019-firefox_1%3a1snap1-0ubuntu8_amd64.deb 
(--unpack):
   new firefox package preinst maintainer script subprocess failed with exit 
status 2
  
  Errors were encountered while processing:
   /tmp/apt-dpkg-install-jl4ZBb/019-firefox_1%3a1snap1-0ubuntu8_amd64.deb
  ```
  
  The /dev/tty in the preinst script has been added to workaround LP:
  #1886414 which is now fixed in snapd.
  
  Could this workaround be removed ?
  
  [1] 
https://canonical-subiquity.readthedocs-hosted.com/en/latest/howto/autoinstall-quickstart.html#providing-the-autoinstall-data-over-the-network
  [2] 
https://canonical-subiquity.readthedocs-hosted.com/en/latest/reference/autoinstall-reference.html#packages
  [3] 
https://canonical-subiquity.readthedocs-hosted.com/en/latest/reference/autoinstall-reference.html#late-commands

** Description changed:

  [Impact]
  
  Firefox deb package causes ubuntu-desktop installation to fail when
  autoinstalling.
  
  [Test plan]
  
- 1. Make sure the package is installed normally with 'apt install
- firefox'.
+ 1. Make sure the package is installed/upgraded normally with 'apt
+ install firefox'.
  
  2. Follow the autoinstall quickstart[1] with 20G disk image, 4096G RAM
  and the following user-data:
  
  #cloud-config
  autoinstall:
    version: 1
    packages:
      - ubuntu-desktop
    identity:
      hostname: ubuntu-server
      password: 
"$6$exDY1mhS4KUYCE/2$zmn9ToZwTKLhCw.b4/b.ZRTIZM30JZ4QrOQ2aOXJ8yk96xpcCof0kxKwuX1kqLG/ygbJ1f8wxED22bTL4F46P0"
      username: ubuntu
  
  Success: installation completes
  Failure: step install_ubuntu-desktop returns non-zero exit status 100
  
  [Regression potential]
  
  Regressions could occur during the installation of the package (similar
  to what the original report describes) or the installation of the
  package could succeed and have the Firefox browser nonetheless missing
  (e.g. by not really running snap install).
  
  [Original bug report]
  
  Hi,
  
  I use Ubuntu autoinstall[1] to automate Ubuntu installations.
  
  While testing 26.04, I noticed that the ubuntu-desktop installation
  failed with apt error 100.
  
  I use the `packages` section of the autoinstall[2] to install ubuntu-
  desktop.
  
  To troubleshoot this issue, I have added the following command in late-
  commands[3] since the logs did not provide sufficient details.
  
  curtin in-target --target=/target -- apt-get install -y ubuntu-desktop
  2>&1 | tee /target/ubuntu-desktop-apt.log
  
  The ubuntu-desktop-apt.log then showed:
  
  ```
  ==> Installing the firefox snap
  /var/lib/dpkg/tmp.ci/preinst: 80: cannot create /dev/tty: No such device or 
address
  dpkg: error processing archive 
/tmp/apt-dpkg-install-jl4ZBb/019-firefox_1%3a1snap1-0ubuntu8_amd64.deb 
(--unpack):
   new firefox package preinst maintainer script subprocess failed with exit 
status 2
  
  Errors were encountered while processing:
   /tmp/apt-dpkg-install-jl4ZBb/019-firefox_1%3a1snap1-0ubuntu8_amd64.deb
  ```
  
  The /dev/tty in the preinst script has been added to workaround LP:
  #1886414 which is now fixed in snapd.
  
  Could this workaround be removed ?
  
  [1] 
https://canonical-subiquity.readthedocs-hosted.com/en/latest/howto/autoinstall-quickstart.html#providing-the-autoinstall-data-over-the-network
  [2] 
https://canonical-subiquity.readthedocs-hosted.com/en/latest/reference/autoinstall-reference.html#packages
  [3] 
https://canonical-subiquity.readthedocs-hosted.com/en/latest/reference/autoinstall-reference.html#late-commands

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2152888

Title:
  [SRU] Firefox fails to install with Ubuntu subiquity autoinstall:
  preinst cannot create /dev/tty

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/2152888/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to