That environment isn't available if the program isn't run in sudo; this is partly a bug in the program, and possibly happening because it wasn't run in sudo?
I suppose we could replace get the _uid value using something like 'id -u `who am i | cut -d\ -f 1`' instead of looking at the environment; or a try-catch block that falls back to just running id -u. -- 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 [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
