Summary: | distribution upgrade failed with error log and "exitMainLoopMidFlight" | ||
---|---|---|---|
Product: | [KDE Neon] neon | Reporter: | Phil Hord <phil.hord> |
Component: | general | Assignee: | Neon Bugs <neon-bugs> |
Status: | REPORTED --- | ||
Severity: | normal | CC: | carlosd.kde, jr, neon-bugs |
Priority: | NOR | ||
Version First Reported In: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Neon | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Phil Hord
2024-10-11 03:03:08 UTC
I thought the python error may be causing some problem, and I fixed it manually. I tried the upgrade again and it succeeded this time. I don't know if that was really the reason for the failure, though. I'm skeptical since it occurred several times before finally quitting. But maybe it's some lazy error checking code finally killing it in the end after watching the errors. The fix for this was trivial. diff --git tmp/DistUpgradeFetcherKDE.py usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeFetcherKDE.py index 9d6e9e4..cea3873 100644 --- tmp/DistUpgradeFetcherKDE.py +++ usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeFetcherKDE.py @@ -213,9 +213,9 @@ class KDEAcquireProgressAdapter(apt.progress.base.AcquireProgress): def pulse(self, owner): apt.progress.base.AcquireProgress.pulse(self, owner) - self.dialog.installationProgress.setValue( + self.dialog.installationProgress.setValue(int( (self.current_bytes + self.current_items) / - float(self.total_bytes + self.total_items) * 100) + float(self.total_bytes + self.total_items) * 100)) current_item = self.current_items + 1 if current_item > self.total_items: current_item = self.total_items |