not all packages from PPAs have '[origin: ' in Package section
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Daisy |
Medium
|
Unassigned | ||
| | apport (Ubuntu) |
Undecided
|
Martin Pitt | ||
| | Precise |
High
|
Brian Murray | ||
Bug Description
Test Case
---------
1) Install galicaster package from wiki.teltek.es (or any other random deb file will do)
2) Run the executable
3) Find the pid of the program and kill it with signal 11
4) Inspect the .crash file (after it is finished being written) and observe the "Package: " key doesn't not contain "[origin: unknown]"
With the version of apport from -proposed it will contain information about it being from an unknown origin.
Original Description
-------
I was querying for columns in the counters column family starting with 'Ubuntu ' as I was looking for the counts of bugs reported about packages. In the column family I discovered 'Ubuntu 12.10:indicator
From daisy/submit.py:
package = data.get('Package', '')
src_package = data.get(
problem_type = data.get(
third_party = False
if '[origin:' in package:
third_party = True
Then before running update_
| Brian Murray (brian-murray) wrote : | #1 |
| Brian Murray (brian-murray) wrote : | #2 |
So it may have something to do with apport or whoopsie.
| Brian Murray (brian-murray) wrote : | #3 |
Looking at the crashes in the bucket at http://
2.6.1-0ubuntu3: {'ppa': 2, 'not ppa': 0}
2.6.1-0ubuntu6: {'ppa': 23, 'not ppa': 18}
2.6.1-0ubuntu7: {'ppa': 1, 'not ppa': 0}
2.6.1-0ubuntu9: {'ppa': 42, 'not ppa': 2}
2.6.1-0ubuntu10: {'ppa': 0, 'not ppa': 1}
There is no clear pattern here other than ubuntu6 being wrong more often than not. Additionally, looking at the apport changelog there are no changes to the code that sets the origin.
| Changed in daisy: | |
| importance: | Undecided → Medium |
| Brian Murray (brian-murray) wrote : | #4 |
My previous query was incomplete:
2.6.1-0ubuntu3: {'ppa': 11, 'not ppa': 2}
2.6.1-0ubuntu6: {'ppa': 64, 'not ppa': 42}
2.6.1-0ubuntu7: {'ppa': 2, 'not ppa': 1}
2.6.1-0ubuntu9: {'ppa': 110, 'not ppa': 16}
2.6.1-0ubuntu10: {'ppa': 5, 'not ppa': 2}
but regardless the results are not much different.
| summary: |
- third_party check in submit.py may not be working properly + not all packages from PPAs have '[origin: ' in them |
| summary: |
- not all packages from PPAs have '[origin: ' in them + not all packages from PPAs have '[origin: ' in Package section |
Apport checks to see if a package is from a third-party origin so that it can not send it to Launchpad. It does this through setting the UnreportableReason field when is_distro_package returns False, then checking for it in check_unreportable. This latter check happens after a .upload file is created for the report (and whoopsie doesn't send the UnreportableReason field - which is probably a bug, it would be nice to increment counters for these to see what error states people are hitting in apport), and so this functionality wont affect whoopsie sending the report to daisy.
That leaves us with the Package field, and determining the conditions under which it adds '[origin:'. One possibility from looking at the code is that people are manually downloading the deb and installing it. Apt wouldn't have a record for it, and wouldn't add an origin field. Apport in turn wouldn't set the '[origin:' in the report file (apport/
There's at least one place referring to it by the deb rather than the PPA:
http://
So I think what we really want here is the is_distro_package check, not the '[origin:' check a level down. Unfortunately the only place we effectively have that in the report file right now is the UnreportableReason field, which can contain the translated string:
_('This is not an official %s package. Please remove any third party package and try again.')
Perhaps the solution is to add a new field here? I had created an InvalidMachineR
https:/
Perhaps something along those lines? Best to confer with Martin.
As an aside, do we care if the libraries used come from a third-party? Right now in daisy/submit.py we're checking if just the package comes from a third-party before updating the release:package row in the Counters CF, but we're checking if either the package or any of its dependencies are from a third-party before updating the BucketMetadata CF (where FirstSeen, LastSeen, and Source live).
Thanks for investigating this, Brian.
| Brian Murray (brian-murray) wrote : | #6 |
Perhaps we could have apport set '[origin: unknown]' for debs that people have downloaded and installed.
| Changed in apport (Ubuntu): | |
| assignee: | nobody → Martin Pitt (pitti) |
| Martin Pitt (pitti) wrote : | #7 |
Right, usually Apport doesn't report problems for non-distro packages (and I still think we shouldn't send them to daisy as well, but let's agree to disagree here). To make daisy's job easier with this, we can certainly add [origin: unknown].
| Changed in apport (Ubuntu): | |
| status: | New → In Progress |
| Martin Pitt (pitti) wrote : | #8 |
Fixed in trunk r2607.
| Changed in apport (Ubuntu): | |
| status: | In Progress → Fix Committed |
| Changed in daisy: | |
| status: | New → Invalid |
| Launchpad Janitor (janitor) wrote : | #9 |
This bug was fixed in the package apport - 2.9.2-0ubuntu1
---------------
apport (2.9.2-0ubuntu1) raring; urgency=low
* New upstream release:
- report.py, add_package_info(): Add "[origin: unknown]" tag to
Package/
be determined. (LP: #1148116)
- Adjust kernel_crashdump to the format kdump-tools produces. Thanks Louis
Bouchard.
- Write core dumps on SIGQUIT if ulimit allows. Thanks Graeme Hewson.
(LP: #1153662)
* debian/
reports for calling kernel_crashdump. Thanks Louis Bouchard.
-- Martin Pitt <email address hidden> Tue, 19 Mar 2013 11:48:27 +0100
| Changed in apport (Ubuntu): | |
| status: | Fix Committed → Fix Released |
| Brian Murray (brian-murray) wrote : | #10 |
I noticed that the Error Tracker retracers experience many retrace failures from packages that are not official Ubuntu packages, for example we asked for core files, and failed to retrace, for all of the following crashes.
OOPS Package Release
c4e3cf3e-
a29e7956-
dd29fcd4-
ffa4c758-
0a01a590-
ed60591e-
We shouldn't be asking for core files for these crashes because these packages aren't from Ubuntu, but we are because Precise does not contain the fix for this bug.
| Changed in apport (Ubuntu Precise): | |
| status: | New → Triaged |
| importance: | Undecided → High |
| description: | updated |
| Changed in apport (Ubuntu Precise): | |
| assignee: | nobody → Brian Murray (brian-murray) |
| description: | updated |
| Changed in apport (Ubuntu Precise): | |
| status: | Triaged → In Progress |
Hello Brian, or anyone else affected,
Accepted apport into precise-proposed. The package will build now and be available at https:/
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-
Further information regarding the verification process can be found at https:/
| Changed in apport (Ubuntu Precise): | |
| status: | In Progress → Fix Committed |
| tags: | added: verification-needed |
| Brian Murray (brian-murray) wrote : | #12 |
bdmurray@
apport:
Installed: 2.0.1-0ubuntu17.11
Candidate: 2.0.1-0ubuntu17.11
Version table:
*** 2.0.1-0ubuntu17.11 0
500 http://
100 /var/lib/
2.
500 http://
500 http://
2.0.1-0ubuntu5 0
500 http://
bdmurray@
Package: galicaster 1.4.1 [origin: unknown]
PackageArchitec
SourcePackage: galicaster
This looks good to me.
| tags: |
added: verification-done removed: verification-needed |
| Launchpad Janitor (janitor) wrote : | #13 |
This bug was fixed in the package apport - 2.0.1-0ubuntu17.11
---------------
apport (2.0.1-
* report.py, add_package_info(): Add "[origin: unknown]" tag to
Package/
be determined. (LP: #1148116)
-- Brian Murray <email address hidden> Thu, 24 Sep 2015 12:48:19 -0700
| Changed in apport (Ubuntu Precise): | |
| status: | Fix Committed → Fix Released |
The verification of the Stable Release Update for apport has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Ah, here is one without '[origin:' in the Package line:
http:// errors. ubuntu. com/oops/ 2efdce4c- 726c-11e2- b91a-e4115b0f8a 4a errors. ubuntu. com/oops/ 0938e0fa- 6efe-11e2- ad63-2c768aafd0 8c
http://