upgrade from 20.04 to 22.04.1 fails

Bug #1995126 reported by edward sternin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

$ sudo do-release-upgrade -d
Checking for a new Ubuntu release
Get:1 Upgrade tool signature [819 B]
Get:2 Upgrade tool [1,265 kB]
Fetched 1,266 kB in 0s (0 B/s)
authenticate 'jammy.tar.gz' against 'jammy.tar.gz.gpg'
extracting 'jammy.tar.gz'

[screen blanks here]

Reading cache

Checking package manager
Reading package lists... Done
Building dependency tree
Reading state information... Done
Hit http://archive.canonical.com/ubuntu focal InRelease
Hit http://ca.archive.ubuntu.com/ubuntu focal InRelease
Hit http://security.ubuntu.com/ubuntu focal-security InRelease
Hit http://ca.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit http://ca.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit http://dl.google.com/linux/chrome/deb stable InRelease
Hit http://ppa.launchpad.net/mutlaqja/ppa/ubuntu focal InRelease
Fetched 0 B in 0s (0 B/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
=== Command detached from window (Fri Oct 28 11:16:34 2022) ===
=== Command terminated with exit status 1 (Fri Oct 28 11:16:44 2022) ===

[screen is terminating]

$ uname -a
Linux tempo 5.4.0-131-generic #147-Ubuntu SMP Fri Oct 14 17:07:22 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

$ cat /etc/*elease*
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.5 LTS"
NAME="Ubuntu"
VERSION="20.04.5 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.5 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: linux-image-5.4.0-131-generic 5.4.0-131.147
ProcVersionSignature: Ubuntu 5.4.0-131.147-generic 5.4.210
Uname: Linux 5.4.0-131-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.24
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC2: edik 1914 F.... pulseaudio
 /dev/snd/controlC0: edik 1914 F.... pulseaudio
CasperMD5CheckResult: skip
CurrentDesktop: XFCE
Date: Fri Oct 28 11:21:00 2022
InstallationDate: Installed on 2019-05-30 (1246 days ago)
InstallationMedia: Xubuntu 19.04 "Disco Dingo" - Release amd64 (20190416)
IwConfig:
 lo no wireless extensions.

 eno0 no wireless extensions.
ProcFB: 0 nouveaudrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.4.0-131-generic root=UUID=a501cd51-bc07-496b-a8dd-bee5e1db7c02 ro quiet splash vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-5.4.0-131-generic N/A
 linux-backports-modules-5.4.0-131-generic N/A
 linux-firmware 1.187.33
RfKill:
 0: hci0: Bluetooth
  Soft blocked: no
  Hard blocked: no
SourcePackage: linux
UpgradeStatus: Upgraded to focal on 2022-10-28 (0 days ago)
dmi.bios.date: 05/21/2010
dmi.bios.vendor: Intel Corp.
dmi.bios.version: KGIBX10J.86A.5531.2010.0521.1135
dmi.board.asset.tag: Base Board Asset Tag
dmi.board.name: DP55SB
dmi.board.vendor: Intel Corporation
dmi.board.version: AAE47220-304
dmi.chassis.type: 2
dmi.modalias: dmi:bvnIntelCorp.:bvrKGIBX10J.86A.5531.2010.0521.1135:bd05/21/2010:svn:pn:pvr:rvnIntelCorporation:rnDP55SB:rvrAAE47220-304:cvn:ct2:cvr:

Revision history for this message
edward sternin (edward-sternin) wrote :
Revision history for this message
edward sternin (edward-sternin) wrote :
Download full text (4.4 KiB)

I made the terminal window several screens' tall, to see the following (before the screen gets blanked by the install process - why would it do that?):

Reading cache

Checking package manager
Reading package lists... Done
Building dependency tree
Reading state information... Done
Hit http://security.ubuntu.com/ubuntu focal-security InRelease
Hit http://ca.archive.ubuntu.com/ubuntu focal InRelease
Hit http://ca.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit http://ca.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit http://archive.canonical.com/ubuntu focal InRelease
Hit http://dl.google.com/linux/chrome/deb stable InRelease
Hit http://ppa.launchpad.net/mutlaqja/ppa/ubuntu focal InRelease
Fetched 0 B in 0s (0 B/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done

Traceback (most recent call last):
  File "/tmp/ubuntu-release-upgrader-hq1pt_14/DistUpgrade/DistUpgradeQuirks.py", line 205, in _get_from_and_to_version
    di.version('%s' % self.controller.fromDist).split()[0]
AttributeError: 'UbuntuDistroInfo' object has no attribute 'version'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/tmp/ubuntu-release-upgrader-hq1pt_14/jammy", line 8, in <module>
    sys.exit(main())
  File "/tmp/ubuntu-release-upgrader-hq1pt_14/DistUpgrade/DistUpgradeMain.py", line 241, in main
    if app.run():
  File "/tmp/ubuntu-release-upgrader-hq1pt_14/DistUpgrade/DistUpgradeController.py", line 2042, in run
    return self.fullUpgrade()
  File "/tmp/ubuntu-release-upgrader-hq1pt_14/DistUpgrade/DistUpgradeController.py", line 1873, in fullUpgrade
    if not self.doPostInitialUpdate():
  File "/tmp/ubuntu-release-upgrader-hq1pt_14/DistUpgrade/DistUpgradeController.py", line 906, in doPostInitialUpdate
    self.quirks.run("PostInitialUpdate")
  File "/tmp/ubuntu-release-upgrader-hq1pt_14/DistUpgrade/DistUpgradeQuirks.py", line 99, in run
    func()
  File "/tmp/ubuntu-release-upgrader-hq1pt_14/DistUpgrade/DistUpgradeQuirks.py", line 118, in jammyPostInitialUpdate
    self._get_from_and_to_version()
  File "/tmp/ubuntu-release-upgrader-hq1pt_14/DistUpgrade/DistUpgradeQuirks.py", line 211, in _get_from_and_to_version
    (r.version for r in di.get_all("object")
AttributeError: 'UbuntuDistroInfo' object has no attribute 'get_all'
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-hq1pt_14/DistUpgrade/DistUpgradeQuirks.py", line 205, in _get_from_and_to_version
    di.version('%s' % self.controller.fromDist).split()[0]
AttributeError: 'UbuntuDistroInfo' object has no attribute 'version'

During handling of the above exception,...

Read more...

Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
edward sternin (edward-sternin) wrote :

May have been solved by:

sudo pip uninstall distro-info
sudo apt install --reinstall python3-distro-info

ref: https://askubuntu.com/questions/1137645/python-error-when-upgrading-from-18-10-to-19-04

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.