[Bug 2080204] Re: unable to upgrade to ubuntu 24.04 from ubuntu 22.04

LucMorizur 2080204 at bugs.launchpad.net
Sun Sep 22 10:10:21 UTC 2024


In file /usr/lib/python3/dist-
packages/DistUpgrade/DistUpgradeFetcherKDE.py , in lines 214 to 218, I
changed

    def pulse(self, owner):
        apt.progress.base.AcquireProgress.pulse(self, owner)
        self.dialog.installationProgress.setValue(
            (self.current_bytes + self.current_items) /
            float(self.total_bytes + self.total_items) * 100)

to

    def pulse(self, owner):
        apt.progress.base.AcquireProgress.pulse(self, owner)
        self.dialog.installationProgress.setValue( int(
            (self.current_bytes + self.current_items) /
            float(self.total_bytes + self.total_items) * 100))

(So I made the argument passed to setValue procedure, being an integer
and no more a float.)

Now when launching release upgrade from a terminal :

$ do-release-upgrade -m desktop -f DistUpgradeViewKDE --allow-third-
party

the error

Error in function pulse
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeFetcherKDE.py", line 216, in pulse
    self.dialog.installationProgress.setValue(
TypeError: setValue(self, int): argument 1 has unexpected type 'float'

does not occur any more, but the release upgrade crashes at the same
step and with the same error message than described above.

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

Title:
  unable to upgrade to ubuntu 24.04 from ubuntu 22.04

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

Bug description:
  This was likely caused by: 
  * Unofficial software packages not provided by Ubuntu 
  Please use the tool 'ppa-purge' from the ppa-purge 
  package to remove software from a Launchpad PPA and 
  try the upgrade again.

  ProblemType: Bug
  DistroRelease: Ubuntu 22.04
  Package: ubuntu-release-upgrader-core 1:22.04.19
  ProcVersionSignature: Ubuntu 6.8.0-40.40~22.04.3-generic 6.8.12
  Uname: Linux 6.8.0-40-generic x86_64
  ApportVersion: 2.20.11-0ubuntu82.6
  Architecture: amd64
  CasperMD5CheckResult: pass
  CrashDB: ubuntu
  CurrentDesktop: ubuntu:GNOME
  Date: Tue Sep 10 14:48:35 2024
  InstallationDate: Installed on 2023-02-09 (578 days ago)
  InstallationMedia: Ubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220809.1)
  PackageArchitecture: all
  SourcePackage: ubuntu-release-upgrader
  UpgradeStatus: Upgraded to jammy on 2024-09-10 (0 days ago)

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




More information about the foundations-bugs mailing list