[Bug 2038900] [NEW] setting XDG RUNTIME to not 'tty' and SUDO_UID and PKEXEC_UID being unset causes TypeError traceback
Tim Andersson
2038900 at bugs.launchpad.net
Tue Oct 10 09:12:18 UTC 2023
Public bug reported:
Running do-release-upgrade in an environment with XDG_RUNTIME set to
something other than tty, and also in an environment where SUDO_UID and
PKEXEC_UID are unset (e.g. ssh'd straight into a root session, no sudo)
causes a TypeError traceback in the upgrade logs.
Reproducer:
lxc launch images:ubuntu/lunar --vm
lxc exec vmname bash
apt update
apt upgrade
export XDG_RUNTIME=unspecified
do-release-upgrade -d -f -f DistUpgradeViewNonInteractive
None will eventually be printed, then you can go to the upgrade log and
find the traceback.
** Affects: ubuntu-release-upgrader (Ubuntu)
Importance: Critical
Assignee: Tim Andersson (andersson123)
Status: In Progress
** Affects: ubuntu-release-upgrader (Ubuntu Mantic)
Importance: Critical
Assignee: Tim Andersson (andersson123)
Status: In Progress
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubuntu-release-upgrader in
Ubuntu.
https://bugs.launchpad.net/bugs/2038900
Title:
setting XDG RUNTIME to not 'tty' and SUDO_UID and PKEXEC_UID being
unset causes TypeError traceback
Status in ubuntu-release-upgrader package in Ubuntu:
In Progress
Status in ubuntu-release-upgrader source package in Mantic:
In Progress
Bug description:
Running do-release-upgrade in an environment with XDG_RUNTIME set to
something other than tty, and also in an environment where SUDO_UID
and PKEXEC_UID are unset (e.g. ssh'd straight into a root session, no
sudo) causes a TypeError traceback in the upgrade logs.
Reproducer:
lxc launch images:ubuntu/lunar --vm
lxc exec vmname bash
apt update
apt upgrade
export XDG_RUNTIME=unspecified
do-release-upgrade -d -f -f DistUpgradeViewNonInteractive
None will eventually be printed, then you can go to the upgrade log
and find the traceback.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/2038900/+subscriptions
More information about the foundations-bugs
mailing list