[Bug 1781412] Re: do-release-upgrade crashed with UnboundLocalError in _replaceDebsWithSnaps(): local variable 'proc' referenced before assignment
Brian Murray
brian at ubuntu.com
Thu Jul 12 16:23:09 UTC 2018
Here's the Traceback:
Traceback (most recent call last):
File "./bionic", line 8, in <module>
sys.exit(main())
File "/tmp/u-r-u/DistUpgrade/DistUpgradeMain.py", line 238, in main
if app.run():
File "/tmp/u-r-u/DistUpgrade/DistUpgradeController.py", line 1949, in run
return self.fullUpgrade()
File "/tmp/u-r-u/DistUpgrade/DistUpgradeController.py", line 1926, in fullUpgrade
self.doPostUpgrade()
File "/tmp/u-r-u/DistUpgrade/DistUpgradeController.py", line 1336, in doPostUpgrade
self.quirks.run("PostUpgrade")
File "/tmp/u-r-u/DistUpgrade/DistUpgradeQuirks.py", line 113, in run
func()
File "/tmp/u-r-u/DistUpgrade/DistUpgradeQuirks.py", line 138, in bionicPostUpgrade
self._replaceDebsWithSnaps()
File "/tmp/u-r-u/DistUpgrade/DistUpgradeQuirks.py", line 543, in _replaceDebsWithSnaps
if proc.returncode == 0:
UnboundLocalError: local variable 'proc' referenced before assignment
** Information type changed from Private to Public
** Changed in: ubuntu-release-upgrader (Ubuntu)
Status: New => In Progress
** Changed in: ubuntu-release-upgrader (Ubuntu)
Importance: Undecided => High
** Changed in: ubuntu-release-upgrader (Ubuntu)
Assignee: (unassigned) => Brian Murray (brian-murray)
** Also affects: ubuntu-release-upgrader (Ubuntu Bionic)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubuntu-release-upgrader in
Ubuntu.
https://bugs.launchpad.net/bugs/1781412
Title:
do-release-upgrade crashed with UnboundLocalError in
_replaceDebsWithSnaps(): local variable 'proc' referenced before
assignment
Status in ubuntu-release-upgrader package in Ubuntu:
In Progress
Status in ubuntu-release-upgrader source package in Bionic:
New
Bug description:
I was testing a release upgrade from Ubuntu 16.04 to Ubuntu 18.04
where I had no connectivity to the snap store and encountered this
crash.
ProblemType: Crash
DistroRelease: Ubuntu 18.04
Package: ubuntu-release-upgrader-core 1:18.04.20
ProcVersionSignature: Ubuntu 4.4.0-121.145-generic 4.4.117
Uname: Linux 4.4.0-121-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.2
Architecture: amd64
CrashDB: ubuntu
Date: Wed Jul 11 20:03:49 2018
ExecutablePath: /usr/bin/do-release-upgrade
ExecutableTimestamp: 1531169948
InstallationDate: Installed on 2016-10-04 (645 days ago)
InstallationMedia: Ubuntu 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719)
InterpreterPath: /usr/bin/python3.5
PackageArchitecture: all
ProcCmdline: /usr/bin/python3 ./bionic --frontend DistUpgradeViewText
ProcCwd: /tmp/u-r-u
ProcEnviron:
TERM=screen
SHELL=/bin/bash
PATH=(custom, no user)
LANG=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
Python3Details: /usr/bin/python3.6, Python 3.6.5, python3-minimal, 3.6.5-3ubuntu1
PythonArgs: ['/usr/bin/do-release-upgrade', '--frontend', 'DistUpgradeViewText']
PythonDetails: /usr/bin/python2.7, Python 2.7.15rc1, python-minimal, 2.7.15~rc1-1
SourcePackage: ubuntu-release-upgrader
Title: do-release-upgrade crashed with UnboundLocalError in _replaceDebsWithSnaps(): local variable 'proc' referenced before assignment
UpgradeStatus: Upgraded to bionic on 2018-07-12 (0 days ago)
UserGroups:
modified.conffile..etc.update-manager.release-upgrades: [modified]
mtime.conffile..etc.update-manager.release-upgrades: 2016-10-04T13:43:38.934395
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1781412/+subscriptions
More information about the foundations-bugs
mailing list