Bug 398381

Summary: installation of python3-distupgrade (1:18.04.25+p16.04+git20180906.1227) is broken
Product: [KDE Neon] neon Reporter: thierryblind
Component: Packages Testing EditionAssignee: Neon Bugs <neon-bugs-null>
Status: RESOLVED FIXED    
Severity: major CC: jr, neon-bugs-null, sitter
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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! :)