[Bug 2153151] [NEW] Early Commands Zenity Broken
NIck Amato
2153151 at bugs.launchpad.net
Tue May 19 12:33:40 UTC 2026
Public bug reported:
In Ubuntu 24.04, we have a early command that runs a shell script to
popup and request some details from the user. The script uses Zenity
for popups. This has worked well for us in the past. With Ubuntu
26.04, this no longer works. The Zenity popup fails to show and the
autoinstall crashes.
We have confirmed that
1. Its not a Display issue as the proper Display output shows :0
2. Its not a user issue, we run sudo -u ubuntu zenity .... for 24.04, but we tried just sudo, no sudo, sudo -u root. Nothing worked
3. We know Zenity is installed and working because running the script manually from terminal works in the installer environment
4. We know it is failing at the Zenity prompt because we placed manual logs to test, we also create a blank early command script that only runs a Zenity --info popup.
5. The script is posix compliant and we tried running with both sh and bash, both failed.
Attached is a test file that we used to do some testing. use the below
lines in the early commands to have it run. The logs get created
#cloud-config
autoinstall:
version: 1
locale: "en_US.UTF-8"
early-commands:
- sudo sh /tmp/early_commands.sh
** Affects: subiquity (Ubuntu)
Importance: Undecided
Status: New
** Tags: autoinstall ubuntu-bootstrap zenity
** Attachment added: "early_commands.sh"
https://bugs.launchpad.net/bugs/2153151/+attachment/5971563/+files/early_commands.sh
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to subiquity in Ubuntu.
https://bugs.launchpad.net/bugs/2153151
Title:
Early Commands Zenity Broken
Status in subiquity package in Ubuntu:
New
Bug description:
In Ubuntu 24.04, we have a early command that runs a shell script to
popup and request some details from the user. The script uses Zenity
for popups. This has worked well for us in the past. With Ubuntu
26.04, this no longer works. The Zenity popup fails to show and the
autoinstall crashes.
We have confirmed that
1. Its not a Display issue as the proper Display output shows :0
2. Its not a user issue, we run sudo -u ubuntu zenity .... for 24.04, but we tried just sudo, no sudo, sudo -u root. Nothing worked
3. We know Zenity is installed and working because running the script manually from terminal works in the installer environment
4. We know it is failing at the Zenity prompt because we placed manual logs to test, we also create a blank early command script that only runs a Zenity --info popup.
5. The script is posix compliant and we tried running with both sh and bash, both failed.
Attached is a test file that we used to do some testing. use the
below lines in the early commands to have it run. The logs get
created
#cloud-config
autoinstall:
version: 1
locale: "en_US.UTF-8"
early-commands:
- sudo sh /tmp/early_commands.sh
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/subiquity/+bug/2153151/+subscriptions
More information about the foundations-bugs
mailing list