setting XDG RUNTIME to not 'tty' and SUDO_UID and PKEXEC_UID being unset causes TypeError traceback
Bug #2038900 reported by
Tim Andersson
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-release-upgrader (Ubuntu) |
Fix Released
|
Critical
|
Tim Andersson | ||
Mantic |
Fix Released
|
Critical
|
Tim Andersson |
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=
do-release-upgrade -d -f -f DistUpgradeView
None will eventually be printed, then you can go to the upgrade log and find the traceback.
Changed in ubuntu-release-upgrader (Ubuntu Mantic): | |
milestone: | none → ubuntu-23.10 |
status: | New → In Progress |
importance: | Undecided → Critical |
assignee: | nobody → Tim Andersson (andersson123) |
To post a comment you must log in.
MP https:/ /code.launchpad .net/~andersson 123/ubuntu- release- upgrader/ +git/ubuntu- release- upgrader/ +merge/ 453214