[Bug 1986346] Re: upgrade to 22.04.1 failed - AttributeError: 'DistUpgradeController' object has no attribute 'tasks'

Gajo Petrovic 1986346 at bugs.launchpad.net
Sun Aug 14 11:04:53 UTC 2022


@ JamesRichardson (james-time4tea)

Thank you for reporting this, you might have saved me a few hours.

I've had the exact same error (I agree, quite horrible), but I managed
to resolve it based on your experiences.

After the do-release-upgrade crash, I repeated these commands:

sudo apt update && sudo apt upgrade
sudo apt full-upgrade
sudo apt autoremove

Until I had nothing else to upgrade.

I then invoked

sudo apt install --install-recommends linux-generic

but it had no effect (it was already installed I suppose)

Lastly, I invoked

sudo apt install ubuntu-gnome-desktop nvidia-driver-515

and that had quite a lot of to install. After installing that I repeated
the full-upgrade/autoremove procedure

sudo apt update && sudo apt upgrade
sudo apt full-upgrade
sudo apt autoremove

and for good measure I also executed

sudo touch /etc/NetworkManager/conf.d/10-globally-managed-devices.conf


It ended up booting fine, although many things were deleted in the
upgrade (anthy, clang, dropbox ,etc. I ended up installing them
manually). I think I have a working system now.

-- 
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/1986346

Title:
  upgrade to 22.04.1 failed - AttributeError: 'DistUpgradeController'
  object has no attribute 'tasks'

Status in ubuntu-release-upgrader package in Ubuntu:
  New

Bug description:

  sudo dist-upgrade fails while installing packages :- don't know if
  system is now broken, or how to complete the upgrade. this is pretty
  horrible.

  Calculating the changes

  Calculating the changes

  Traceback (most recent call last):
    File "/tmp/ubuntu-release-upgrader-tm0grze3/jammy", line 8, in <module>
      sys.exit(main())
    File "/tmp/ubuntu-release-upgrader-tm0grze3/DistUpgrade/DistUpgradeMain.py", line 241, in main
      if app.run():
    File "/tmp/ubuntu-release-upgrader-tm0grze3/DistUpgrade/DistUpgradeController.py", line 2042, in run
      return self.fullUpgrade()
    File "/tmp/ubuntu-release-upgrader-tm0grze3/DistUpgrade/DistUpgradeController.py", line 1991, in fullUpgrade
      if not self.calcDistUpgrade():
    File "/tmp/ubuntu-release-upgrader-tm0grze3/DistUpgrade/DistUpgradeController.py", line 1100, in calcDistUpgrade
      if not self.cache.installTasks(self.tasks):
  AttributeError: 'DistUpgradeController' object has no attribute 'tasks'
  Error in sys.excepthook:
  Traceback (most recent call last):
    File "/usr/lib/python3/dist-packages/problem_report.py", line 477, in add_to_existing
      self.write(f)
    File "/usr/lib/python3/dist-packages/problem_report.py", line 430, in write
      block = f.read(1048576)
    File "/usr/lib/python3.8/codecs.py", line 322, in decode
      (result, consumed) = self._buffer_decode(data, self.errors, final)
  UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte

  Original exception was:
  Traceback (most recent call last):
    File "/tmp/ubuntu-release-upgrader-tm0grze3/jammy", line 8, in <module>
      sys.exit(main())
    File "/tmp/ubuntu-release-upgrader-tm0grze3/DistUpgrade/DistUpgradeMain.py", line 241, in main
      if app.run():
    File "/tmp/ubuntu-release-upgrader-tm0grze3/DistUpgrade/DistUpgradeController.py", line 2042, in run
      return self.fullUpgrade()
    File "/tmp/ubuntu-release-upgrader-tm0grze3/DistUpgrade/DistUpgradeController.py", line 1991, in fullUpgrade
      if not self.calcDistUpgrade():
    File "/tmp/ubuntu-release-upgrader-tm0grze3/DistUpgrade/DistUpgradeController.py", line 1100, in calcDistUpgrade
      if not self.cache.installTasks(self.tasks):
  AttributeError: 'DistUpgradeController' object has no attribute 'tasks'

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1986346/+subscriptions




More information about the foundations-bugs mailing list