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
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2080204

Title:
  unable to upgrade to ubuntu 24.04 from ubuntu 22.04

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


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to