** 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 autoinstall.yaml: #cloud-config autoinstall: - version: 1 - packages: - - ubuntu-desktop - identity: - hostname: ubuntu-server - password: "$6$exDY1mhS4KUYCE/2$zmn9ToZwTKLhCw.b4/b.ZRTIZM30JZ4QrOQ2aOXJ8yk96xpcCof0kxKwuX1kqLG/ygbJ1f8wxED22bTL4F46P0" - username: ubuntu + 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] Follow the autoinstall quickstart[1] with 20G disk image, 4096G RAM and - the following autoinstall.yaml: + 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
