[Bug 1570947] [NEW] Trusty to Xenial upgrade KeyError: 'SUDO_UID'

Launchpad Bug Tracker 1570947 at bugs.launchpad.net
Fri Apr 15 15:57:38 UTC 2016


You have been subscribed to a public bug:

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: Undecided
         Status: New

-- 
Trusty to Xenial upgrade KeyError: 'SUDO_UID'
https://bugs.launchpad.net/bugs/1570947
You received this bug notification because you are a member of Ubuntu Foundations Bugs, which is subscribed to ubuntu-release-upgrader in Ubuntu.



More information about the foundations-bugs mailing list