Public bug reported:
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-release-upgrader-kww9zzfn/xenial", line 8, in <module>
sys.exit(main())
File "/tmp/ubuntu-release-upgrader-kww9zzfn/DistUpgrade/DistUpgradeMain.py",
line 229, in main
app = DistUpgradeController(view, options, datadir=options.datadir)
File
"/tmp/ubuntu-release-upgrader-kww9zzfn/DistUpgrade/DistUpgradeController.py",
line 159, in __init__
self.quirks = DistUpgradeQuirks(self, self.config)
File
"/tmp/ubuntu-release-upgrader-kww9zzfn/DistUpgrade/DistUpgradeQuirks.py", line
63, in __init__
self._uid = os.environ['SUDO_UID']
File "/usr/lib/python3.4/os.py", line 633, in __getitem__
raise KeyError(key) from None
KeyError: 'SUDO_UID'
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/problem_report.py", line 416, in
add_to_existing
self.write(f)
File "/usr/lib/python3/dist-packages/problem_report.py", line 371, in write
crc = zlib.crc32(block, crc)
TypeError: 'str' does not support the buffer interface
Original exception was:
Traceback (most recent call last):
File "/tmp/ubuntu-release-upgrader-kww9zzfn/xenial", line 8, in <module>
sys.exit(main())
File "/tmp/ubuntu-release-upgrader-kww9zzfn/DistUpgrade/DistUpgradeMain.py",
line 229, in main
app = DistUpgradeController(view, options, datadir=options.datadir)
File
"/tmp/ubuntu-release-upgrader-kww9zzfn/DistUpgrade/DistUpgradeController.py",
line 159, in __init__
self.quirks = DistUpgradeQuirks(self, self.config)
File
"/tmp/ubuntu-release-upgrader-kww9zzfn/DistUpgrade/DistUpgradeQuirks.py", line
63, in __init__
self._uid = os.environ['SUDO_UID']
File "/usr/lib/python3.4/os.py", line 633, in __getitem__
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.
** Affects: ubuntu-release-upgrader (Ubuntu)
Importance: Critical
Status: Confirmed
** Package changed: crmsh (Ubuntu) => ubuntu-release-upgrader (Ubuntu)
--
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