[Bug 1969786] Re: Upgrade from 20.04 to 22.04 failed

Nick Rosbrook 1969786 at bugs.launchpad.net
Thu Apr 21 15:18:14 UTC 2022


Hi,

If your system is still in this state, can you run `apport-collect
1969786` so we can see the upgrade log files?

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

Title:
  Upgrade from 20.04 to 22.04 failed

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

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/sources.list.d/ 

  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/autostart/org.gnome.Evolution-alarm-notify.desktop ...
  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-release-upgrader-ql9_ymmz/jammy", line 8, in <module>
      sys.exit(main())
    File "/tmp/ubuntu-release-upgrader-ql9_ymmz/DistUpgrade/DistUpgradeMain.py", line 241, in main
      if app.run():
    File "/tmp/ubuntu-release-upgrader-ql9_ymmz/DistUpgrade/DistUpgradeController.py", line 2038, in run
      return self.fullUpgrade()
    File "/tmp/ubuntu-release-upgrader-ql9_ymmz/DistUpgrade/DistUpgradeController.py", line 1992, in fullUpgrade
      if not self.calcDistUpgrade():
    File "/tmp/ubuntu-release-upgrader-ql9_ymmz/DistUpgrade/DistUpgradeController.py", line 1101, 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
  Traceback (most recent call last):
    File "/tmp/ubuntu-release-upgrader-ql9_ymmz/jammy", line 8, in <module>
      sys.exit(main())
    File "/tmp/ubuntu-release-upgrader-ql9_ymmz/DistUpgrade/DistUpgradeMain.py", line 241, in main
      if app.run():
    File "/tmp/ubuntu-release-upgrader-ql9_ymmz/DistUpgrade/DistUpgradeController.py", line 2038, in run
      return self.fullUpgrade()
    File "/tmp/ubuntu-release-upgrader-ql9_ymmz/DistUpgrade/DistUpgradeController.py", line 1992, in fullUpgrade
      if not self.calcDistUpgrade():
    File "/tmp/ubuntu-release-upgrader-ql9_ymmz/DistUpgrade/DistUpgradeController.py", line 1101, in calcDistUpgrade
      if not self.cache.installTasks(self.tasks):
  AttributeError: 'DistUpgradeController' object has no attribute 'tasks'

     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.

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




More information about the foundations-bugs mailing list