Of course, a workaround is to set these env variables when not using sudo but logging in as root and doing release upgrade:
export SUDO_USER=root export SUDO_UID=0 export SUDO_COMMAND=/bin/bash export SUDO_GID=0 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1570947 Title: Trusty to Xenial upgrade KeyError: 'SUDO_UID' To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1570947/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs