Upgrade from 20.04 to 22.04 failed: AttributeError: 'DistUpgradeController' object has no attribute 'tasks'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-release-upgrader (Ubuntu) |
Fix Released
|
High
|
Brian Murray | ||
Jammy |
Triaged
|
High
|
Brian Murray |
Bug Description
On focal 20.04 I executed the following commands:
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install update-manager-core -y
sudo apt-get dist-upgrade -y
sudo apt-get autoremove
also I disabled 3rd party repositories (Google, FreeCad and some other)
in /etc/apt/
Checking the version I have
uname -mrs
> Linux 5.13.0-40-generic x86_64
lsb_release -a
> No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.4 LTS
Release: 20.04
Codename: focal
Then I run the following command to execute the distribution upgrade procedure
sudo do-release-upgrade -d
And deep down into the process (95%) I hit the following "bug"
...
Installing new version of config file /etc/xdg/
Processing triggers for dbus (1.12.20-2ubuntu4) ...
Processing triggers for libc-bin (2.35-0ubuntu3) ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating the changes
Calculating the changes
Traceback (most recent call last):
File "/tmp/ubuntu-
sys.
File "/tmp/ubuntu-
if app.run():
File "/tmp/ubuntu-
return self.fullUpgrade()
File "/tmp/ubuntu-
if not self.calcDistUp
File "/tmp/ubuntu-
if not self.cache.
AttributeError: 'DistUpgradeCon
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/
self.write(f)
File "/usr/lib/
block = f.read(1048576)
File "/usr/lib/
(result, consumed) = self._buffer_
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte
Traceback (most recent call last):
File "/tmp/ubuntu-
sys.
File "/tmp/ubuntu-
if app.run():
File "/tmp/ubuntu-
return self.fullUpgrade()
File "/tmp/ubuntu-
if not self.calcDistUp
File "/tmp/ubuntu-
if not self.cache.
AttributeError: 'DistUpgradeCon
I have to admit of this is really a but or if it is "self-made" that I broke the python installation myself as I see that is using python38 from my system.
I haven' t rebooted the computer ... The computer is "functional" but many Apps (file browser, LibreOffice to mention 2) have disappeared. I am scared that if I reboot I am going to be left without notebook to work with.
Any guidance to get out of this issue would be much appreciated.
Thank you for reading.
---
ProblemType: Bug
ApportVersion: 2.20.11-
Architecture: amd64
CasperMD5CheckR
CrashDB: ubuntu
CrashReports:
640:1000:
640:0:
CurrentDesktop: ubuntu:GNOME
DistroRelease: Ubuntu 20.04
InstallationDate: Installed on 2020-12-22 (484 days ago)
InstallationMedia: Ubuntu 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731)
Package: ubuntu-
ProcVersionSign
Tags: focal wayland-session dist-upgrade
Uname: Linux 5.13.0-40-generic x86_64
UpgradeStatus: Upgraded to focal on 2022-04-21 (0 days ago)
UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo
VarLogDistupgra
_MarkForUpload: True
Related branches
- Julian Andres Klode: Approve
-
Diff: 33 lines (+4/-4)1 file modifiedDistUpgrade/DistUpgradeController.py (+4/-4)
- Julian Andres Klode: Needs Fixing
-
Diff: 33204 lines (+6087/-4298) (has conflicts)142 files modifiedDistUpgrade/DistUpgradeController.py (+7/-2)
DistUpgrade/DistUpgradeQuirks.py (+109/-0)
DistUpgrade/DistUpgradeVersion.py (+4/-0)
data/DistUpgrade.cfg.groovy (+131/-0)
data/DistUpgrade.cfg.hirsute (+131/-0)
data/demoted.cfg.groovy (+1/-0)
data/demoted.cfg.hirsute (+1/-0)
data/mirrors.cfg (+40/-8)
debian/changelog (+40/-0)
debian/control (+1/-0)
debian/tests/control (+1/-1)
po/af.po (+38/-34)
po/am.po (+38/-34)
po/an.po (+38/-34)
po/ar.po (+38/-34)
po/ast.po (+38/-34)
po/az.po (+38/-34)
po/be.po (+38/-34)
po/bg.po (+38/-34)
po/bn.po (+38/-34)
po/bo.po (+38/-34)
po/br.po (+38/-34)
po/bs.po (+38/-34)
po/ca.po (+38/-34)
po/ca@valencia.po (+38/-34)
po/ce.po (+38/-34)
po/ceb.po (+38/-34)
po/ckb.po (+38/-34)
po/crh.po (+38/-34)
po/cs.po (+38/-34)
po/csb.po (+38/-34)
po/cv.po (+38/-34)
po/cy.po (+38/-34)
po/da.po (+38/-34)
po/de.po (+38/-34)
po/dv.po (+38/-34)
po/el.po (+38/-34)
po/en_AU.po (+38/-34)
po/en_CA.po (+38/-34)
po/en_GB.po (+38/-34)
po/eo.po (+38/-34)
po/es.po (+38/-34)
po/et.po (+38/-34)
po/eu.po (+38/-34)
po/fa.po (+38/-34)
po/fi.po (+38/-34)
po/fil.po (+38/-34)
po/fo.po (+38/-34)
po/fr.po (+38/-34)
po/fr_CA.po (+38/-34)
po/fur.po (+38/-34)
po/fy.po (+38/-34)
po/ga.po (+38/-34)
po/gd.po (+38/-34)
po/gl.po (+38/-34)
po/gu.po (+38/-34)
po/gv.po (+38/-34)
po/he.po (+38/-34)
po/hi.po (+38/-34)
po/hr.po (+38/-34)
po/hu.po (+38/-34)
po/hy.po (+38/-34)
po/ia.po (+38/-34)
po/id.po (+38/-34)
po/is.po (+38/-34)
po/it.po (+38/-34)
po/ja.po (+38/-34)
po/jv.po (+38/-34)
po/ka.po (+38/-34)
po/kk.po (+38/-34)
po/km.po (+38/-34)
po/kn.po (+38/-34)
po/ko.po (+38/-34)
po/ku.po (+38/-34)
po/ky.po (+38/-34)
po/lb.po (+38/-34)
po/ln.po (+38/-34)
po/lo.po (+38/-34)
po/lt.po (+38/-34)
po/lv.po (+38/-34)
po/mhr.po (+38/-34)
po/mjw.po (+38/-34)
po/mk.po (+38/-34)
po/ml.po (+38/-34)
po/mn.po (+38/-34)
po/mnw.po (+38/-34)
po/mr.po (+38/-34)
po/ms.po (+38/-34)
po/mus.po (+38/-34)
po/my.po (+38/-34)
po/nb.po (+38/-34)
po/nds.po (+38/-34)
po/ne.po (+38/-34)
po/nl.po (+38/-34)
po/nn.po (+38/-34)
po/oc.po (+38/-34)
po/om.po (+38/-34)
po/pa.po (+38/-34)
po/pam.po (+38/-34)
po/pl.po (+38/-34)
po/ps.po (+38/-34)
po/pt.po (+38/-34)
po/pt_BR.po (+38/-34)
po/qu.po (+38/-34)
po/ro.po (+38/-34)
po/ru.po (+38/-34)
po/rw.po (+38/-34)
po/sc.po (+38/-34)
po/sco.po (+38/-34)
po/sd.po (+38/-34)
po/se.po (+38/-34)
po/shn.po (+38/-34)
po/si.po (+38/-34)
po/sk.po (+38/-34)
po/sl.po (+38/-34)
po/sq.po (+38/-34)
po/sr.po (+38/-34)
po/sv.po (+38/-34)
po/szl.po (+38/-34)
po/ta.po (+38/-34)
po/ta_LK.po (+38/-34)
po/te.po (+38/-34)
po/tg.po (+38/-34)
po/th.po (+38/-34)
po/tl.po (+38/-34)
po/tr.po (+38/-34)
po/ubuntu-release-upgrader.pot (+38/-34)
po/ug.po (+38/-34)
po/uk.po (+38/-34)
po/ur.po (+38/-34)
po/uz.po (+38/-34)
po/vi.po (+38/-34)
po/xh.po (+38/-34)
po/zh_CN.po (+38/-34)
po/zh_HK.po (+38/-34)
po/zh_TW.po (+38/-34)
po/zu.po (+38/-34)
pre-build.sh (+6/-1)
tests/test_quirks.py (+242/-0)
utils/demoted.cfg.focal (+0/-2)
utils/demoted.cfg.groovy (+311/-0)
utils/demoted.cfg.hirsute (+274/-0)
tags: | added: fr-2316 |
tags: | removed: rls-jj-incoming |
Changed in ubuntu-release-upgrader (Ubuntu Jammy): | |
milestone: | none → ubuntu-22.04.1 |
summary: |
- Upgrade from 20.04 to 22.04 failed + Upgrade from 20.04 to 22.04 failed: AttributeError: + 'DistUpgradeController' object has no attribute 'tasks' |
Changed in ubuntu-release-upgrader (Ubuntu): | |
assignee: | nobody → Brian Murray (brian-murray) |
status: | Confirmed → In Progress |
importance: | Undecided → High |
Changed in ubuntu-release-upgrader (Ubuntu Jammy): | |
importance: | Undecided → High |
status: | Confirmed → Triaged |
assignee: | nobody → Brian Murray (brian-murray) |
milestone: | ubuntu-22.04.1 → jammy-updates |
tags: | added: foundations-todo |
Hi,
If your system is still in this state, can you run `apport-collect 1969786` so we can see the upgrade log files?