Trusty to Xenial upgrade KeyError: 'SUDO_UID'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-release-upgrader (Ubuntu) |
Fix Released
|
Critical
|
Brian Murray |
Bug Description
I've been testing upgrading my 15.10 and 14.04 servers to 16.04 the last handful of weeks using do-release-upgrade -d. Up until today, it's been fine to do so. However, when doing this on a 14.04 VM that I updated in the same manner only yesterday I get this output after running do-release-upgrade -d:
Traceback (most recent call last):
File "/tmp/ubuntu-
sys.
File "/tmp/ubuntu-
app = DistUpgradeCont
File "/tmp/ubuntu-
self.quirks = DistUpgradeQuir
File "/tmp/ubuntu-
self._uid = os.environ[
File "/usr/lib/
raise KeyError(key) from None
KeyError: 'SUDO_UID'
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/
self.write(f)
File "/usr/lib/
crc = zlib.crc32(block, crc)
TypeError: 'str' does not support the buffer interface
Original exception was:
Traceback (most recent call last):
File "/tmp/ubuntu-
sys.
File "/tmp/ubuntu-
app = DistUpgradeCont
File "/tmp/ubuntu-
self.quirks = DistUpgradeQuir
File "/tmp/ubuntu-
self._uid = os.environ[
File "/usr/lib/
raise KeyError(key) from None
KeyError: 'SUDO_UID'
=== Command detached from window (Fri Apr 15 11:45:47 2016) ===
To clarify, this is a 14.04, completely updated VM that I have been testing upgrading to 16.04, specifically for the best way to migrate our websites to PHP7. I had upgraded it yesterday without trouble, but rolled back to a previous snapshot to test a different method. Nothing on this VM has changed on the OS side, including packages. I have no idea what's caused the breakage.
Related branches
affects: | crmsh (Ubuntu) → ubuntu-release-upgrader (Ubuntu) |
tags: | added: xenial |
Changed in ubuntu-release-upgrader (Ubuntu): | |
status: | Confirmed → In Progress |
Confirmed with a desktop upgrade from 14.04 to 16.04 in a VM.