Bug 398381 - installation of python3-distupgrade (1:18.04.25+p16.04+git20180906.1227) is broken
Summary: installation of python3-distupgrade (1:18.04.25+p16.04+git20180906.1227) is b...
Status: RESOLVED FIXED
Alias: None
Product: neon
Classification: KDE Neon
Component: Packages Testing Edition (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR major
Target Milestone: ---
Assignee: Neon Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-07 22:14 UTC by thierryblind
Modified: 2018-09-12 21:30 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description thierryblind 2018-09-07 22:14:51 UTC
Hi,
while installing python3-distupgrade (1:18.04.25+p16.04+git20180906.1227), I got following error (that broke packages installation and configuration) :
E: Sub-process /usr/bin/dpkg returned an error code (1)
Impossible d'effectuer l'opération demandée sur le paquet. Essai de récupération :
Paramétrage de python3-distupgrade (1:18.04.25+p16.04+git20180906.1227) ...
  File "/usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeViewKDE.py", line 744
    if not run_apport() || not apport_ran:
                         ^
SyntaxError: invalid syntax



To fix this bug, I edited the file /usr/lib/python3/dist-packages/DistUpgrade/DistUpgradeViewKDE.py and replaced at line 744

    if not run_apport() || not apport_ran:
by 
    if not run_apport() or not apport_ran:

and had to run afterwards:
sudo dpkg-reconfigure --force python3-distupgrade ubuntu-release-upgrader-core ubuntu-release-upgrader-qt distro-release-notifier


Hope it helps to fix this bug ;)
Comment 1 thierryblind 2018-09-12 21:30:44 UTC
The problem is fixed in version 1:18.04.25+p16.04+git20180910.1159, thank you! :)