Unattended do-release-upgrade fails with Python import error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-release-upgrader (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Trying to do an unattended upgrade of Ubuntu 14.04 to 16.04 with:
sudo do-release-upgrade -f DistUpgradeView
fails with the Python traceback:
Configuration file '/etc/default/rcS'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** rcS (Y/I/N/O/D/Z) [default=N] ? Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/
from apport.fileutils import likely_packaged, get_recent_crashes
File "/usr/lib/
from apport.report import Report
File "/usr/lib/
import xml.dom, xml.dom.minidom
ImportError: No module named 'xml.dom'
Original exception was:
Traceback (most recent call last):
File "/tmp/ubuntu-
File "/tmp/ubuntu-
if app.run():
File "/tmp/ubuntu-
return self.fullUpgrade()
File "/tmp/ubuntu-
if not self.doDistUpgr
File "/tmp/ubuntu-
res = self.cache.
File "/tmp/ubuntu-
File "/usr/lib/
# which is less than optimal!
File "/usr/lib/
File "/tmp/ubuntu-
res = os.WEXITSTATUS(
File "/tmp/ubuntu-
File "/tmp/ubuntu-
TypeError: 'str' does not support the buffer interface
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: ubuntu-
ProcVersionSign
Uname: Linux 4.4.0-62-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.5
Architecture: amd64
CrashDB: ubuntu
CurrentDesktop: GNOME
Date: Sat Feb 4 09:41:55 2017
InstallationDate: Installed on 2017-01-21 (13 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
PackageArchitec
SourcePackage: ubuntu-
UpgradeStatus: No upgrade log present (probably fresh install)
Status changed to 'Confirmed' because the bug affects multiple users.