Apport retracing service is incorrectly interpreting installed version: None as being out of date

Bug #359963 reported by dotancohen
12
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Expired
Low
Unassigned

Bug Description

Binary package hint: apport

It looks like the Apport retracing service is rejecting bug reports because it is interpreting "installed version: None" as being out of date. This looks like a bug in Apport retracing service. See this bug for an example of the problem:
https://bugs.launchpad.net/ubuntu/+source/kdebase-workspace/+bug/359937

Related branches

Revision history for this message
Andreas Moog (ampelbein) wrote :

Judging from the code, this message appears when the stacktrace failed so there was something going wrong in the first place. But apport should not close reports with failed retraces when a package is not installed.

I think the problem comes from Line 358 in packaging-apt-dpkg.py :

            if ver and c[pkg].candidateVersion != ver:
                if not pkg.endswith('-dbgsym'):
                    outdated += '%s: installed version %s, latest version: %s\n' % (
                        pkg, ver, c[pkg].candidateVersion)
                print >> sys.stderr, 'WARNING: %s version %s required, but %s is available' % (
                    pkg, ver, c[pkg].candidateVersion)
                if not unpack_only:
                    uninstallable.append (c[pkg].name)
                    continue

The first if-statement should check that version is not NONE.

Changed in apport (Ubuntu):
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Andreas Moog (ampelbein) wrote :

attached patch should fix this.

tags: added: patch
Revision history for this message
Marco Rodrigues (gothicx) wrote :

Andreas: Thanks for your analysis and patch.

Changed in apport (Ubuntu):
assignee: nobody → Marco Rodrigues (gothicx)
status: Triaged → In Progress
Changed in apport (Ubuntu):
status: In Progress → Confirmed
Changed in apport (Ubuntu):
assignee: Marco Rodrigues (gothicx) → nobody
Revision history for this message
Nigel Babu (nigelbabu) wrote :

Marking the patch as patch-needswork based on pitti's comments in the merge proposal.

tags: added: patch-needswork
removed: patch
Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

This release of Ubuntu is no longer receiving maintenance updates. If this is still an issue on a maintained version of Ubuntu please let us know.

Changed in apport (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for apport (Ubuntu) because there has been no activity for 60 days.]

Changed in apport (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.