Upgrade to focal fails with AttributeError: 'NoneType' object has no attribute 'section' in in DistUpgradeCache.py line 942 when default snap packages are not installed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-release-upgrader (Ubuntu) |
Fix Released
|
High
|
Jean-Baptiste Lallement | ||
Focal |
Fix Released
|
High
|
Jean-Baptiste Lallement |
Bug Description
TESTCASE
1. Branch auto-upgrade-
sudo python3 -m upgrade_
TESTCASE 2
1. Install eoan
2. Remove all the snap pacakges but core and core18
3. run in a terminal: do-release-upgrade -d
Error from main.log
2019-12-18 14:57:50,363 DEBUG Start checking for obsolete pkgs
2019-12-18 14:57:50,524 ERROR got exception '<class 'AttributeError'>': 'NoneType' object has no attribute 'section'
NoneType: None
2019-12-18 14:57:50,532 ERROR not handled exception:
Traceback (most recent call last):
File "/tmp/ubuntu-
sys.
File "/tmp/ubuntu-
if app.run():
File "/tmp/ubuntu-
return self.fullUpgrade()
File "/tmp/ubuntu-
self.
File "/tmp/ubuntu-
if not self.cache.
File "/tmp/ubuntu-
res = f(*args, **kwargs)
File "/tmp/ubuntu-
if pkgname in self and self[pkgname]
AttributeError: 'NoneType' object has no attribute 'section'
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: ubuntu-
ProcVersionSign
Uname: Linux 5.3.0-24-generic x86_64
ApportVersion: 2.20.11-0ubuntu14
Architecture: amd64
CrashDB: ubuntu
Date: Wed Dec 18 16:17:08 2019
PackageArchitec
SourcePackage: ubuntu-
Symptom: ubuntu-
UpgradeStatus: Upgraded to focal on 2019-12-18 (0 days ago)
VarLogDistupgra
Error: command ['pkexec', 'cat', '/var/log/
Error executing command as another user: Not authorized
This incident has been reported.
Related branches
- Brian Murray: Approve
- Ubuntu Core Development Team: Pending requested
-
Diff: 91 lines (+28/-5)5 files modifiedDistUpgrade/DistUpgradeCache.py (+2/-1)
DistUpgrade/DistUpgradeQuirks.py (+14/-2)
DistUpgrade/DistUpgradeViewGtk3.py (+1/-1)
DistUpgrade/DistUpgradeViewKDE.py (+1/-1)
debian/changelog (+10/-0)
summary: |
- automated upgrade tests with AttributeError: 'NoneType' object has no - attribute 'section' in in DistUpgradeCache.py line 942 in + automated upgrade tests fail with AttributeError: 'NoneType' object has + no attribute 'section' in in DistUpgradeCache.py line 942 in tryMarkObsoleteForRemoval |
tags: | added: rls-ff-incoming |
Changed in ubuntu-release-upgrader (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → High |
summary: |
- automated upgrade tests fail with AttributeError: 'NoneType' object has - no attribute 'section' in in DistUpgradeCache.py line 942 in - tryMarkObsoleteForRemoval + Upgrade to focal fails with AttributeError: 'NoneType' object has no + attribute 'section' in in DistUpgradeCache.py line 942 when default + snap packages are not installed |
Changed in ubuntu-release-upgrader (Ubuntu): | |
status: | Confirmed → Triaged |
description: | updated |
Changed in ubuntu-release-upgrader (Ubuntu): | |
assignee: | nobody → Jean-Baptiste Lallement (jibel) |
Changed in ubuntu-release-upgrader (Ubuntu): | |
status: | Triaged → In Progress |
Changed in ubuntu-release-upgrader (Ubuntu): | |
status: | In Progress → Fix Committed |
tags: | removed: rls-ff-incoming |
This bug was fixed in the package ubuntu- release- upgrader - 1:20.04.8
--------------- release- upgrader (1:20.04.8) focal; urgency=medium
ubuntu-
[ Jean-Baptiste Lallement ]
* Do not install a snap package if the corresponding debian package is not
installed (LP: #1856996)
* Fixed crash when checking a section of a package when the package is a
snap (LP: #1856862)
* Update release to 20.04 in UI (LP: #1856948)
[ Brian Murray ]
* Translations, demotions and mirror updates.
-- Brian Murray <email address hidden> Fri, 20 Dec 2019 13:14:26 -0800