Public bug reported:

Running 'do-release-upgrade -d' throws a python traceback in Ubuntu
19.10. It appears it may be a python2/3 issue as it relates to unicode
decoding

$ lsb_release -rd
Description:    Ubuntu 19.10
Release:        19.10

update-manager-core:
  Installed: 1:19.04.8

I expect the upgrade process to not crash.

It crashes with:
~$ sudo do-release-upgrade -d
Checking for a new Ubuntu release
Get:1 Upgrade tool signature [1,554 B]                                          
                                                                                
                                     
Get:2 Upgrade tool [1,344 kB]                                                   
                                                                                
                                     
Fetched 1,346 kB in 0s (0 B/s)                                                  
                                                                                
                                     
authenticate 'focal.tar.gz' against 'focal.tar.gz.gpg' 
extracting 'focal.tar.gz'

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-jb2x9sze/DistUpgrade/DistUpgradeQuirks.py", line 
186, 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-jb2x9sze/focal", line 8, in <module>
    sys.exit(main())
  File "/tmp/ubuntu-release-upgrader-jb2x9sze/DistUpgrade/DistUpgradeMain.py", 
line 238, in main
    if app.run():
  File 
"/tmp/ubuntu-release-upgrader-jb2x9sze/DistUpgrade/DistUpgradeController.py", 
line 2082, in run
    return self.fullUpgrade()
  File 
"/tmp/ubuntu-release-upgrader-jb2x9sze/DistUpgrade/DistUpgradeController.py", 
line 1919, in fullUpgrade
    if not self.doPostInitialUpdate():
  File 
"/tmp/ubuntu-release-upgrader-jb2x9sze/DistUpgrade/DistUpgradeController.py", 
line 925, in doPostInitialUpdate
    self.quirks.run("PostInitialUpdate")
  File 
"/tmp/ubuntu-release-upgrader-jb2x9sze/DistUpgrade/DistUpgradeQuirks.py", line 
97, in run
    func()
  File 
"/tmp/ubuntu-release-upgrader-jb2x9sze/DistUpgrade/DistUpgradeQuirks.py", line 
116, in focalPostInitialUpdate
    self._get_from_and_to_version()
  File 
"/tmp/ubuntu-release-upgrader-jb2x9sze/DistUpgrade/DistUpgradeQuirks.py", line 
192, in _get_from_and_to_version
    (r.version for r in di.get_all("object")
AttributeError: 'UbuntuDistroInfo' object has no attribute 'get_all'
=== Command terminated with exit status 1 (Tue Apr 28 14:14:46 2020) ===

ProblemType: Bug
DistroRelease: Ubuntu 19.10
Package: ubuntu-release-upgrader-core 1:19.10.15.4
ProcVersionSignature: Ubuntu 5.3.0-46.38-generic 5.3.18
Uname: Linux 5.3.0-46-generic x86_64
ApportVersion: 2.20.11-0ubuntu8.8
Architecture: amd64
CrashDB: ubuntu
Date: Tue Apr 28 14:11:43 2020
InstallationDate: Installed on 2019-02-19 (434 days ago)
InstallationMedia: Ubuntu-Server 18.04.2 LTS "Bionic Beaver" - Release amd64 
(20190210)
PackageArchitecture: all
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: ubuntu-release-upgrader
Symptom: ubuntu-release-upgrader
UpgradeStatus: Upgraded to eoan on 2020-04-28 (0 days ago)
VarLogDistupgradeAptlog:
 Log time: 2020-04-28 14:10:03.669721
 Log time: 2020-04-28 14:10:10.527782

** Affects: ubuntu-release-upgrader (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug dist-upgrade eoan third-party-packages

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1875732

Title:
  'do-release-upgrade -d' throws python tracebacks, causes upgrade to
  fail.

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to