desktop-packages team mailing list archive
-
desktop-packages team
-
Mailing list archive
-
Message #117365
[Bug 1196740] Re: not all package install failures generate a crash report
This still affects recent versions of Ubuntu.
** Changed in: software-center (Ubuntu)
Status: Invalid => Triaged
** Tags added: trusty vivid
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to software-center in Ubuntu.
https://bugs.launchpad.net/bugs/1196740
Title:
not all package install failures generate a crash report
Status in software-center package in Ubuntu:
Triaged
Bug description:
I was trying to install the package crash-in-postinst package from the
following PPA, https://launchpad.net/~daisy-pluckers/+archive/daisy-
seeds/+packages. This package is specifically designed to fail during
the post installation due to a maintainer script error. I was
surprised to discover that software-center did not create a package
install failure crash file in this case. I did receive an error
message from aptdaemon that said the "Package operation failed".
Digging into the software-center code I found the following:
# lintian errors are ignored and not send to apport_recoverable_error
# and dpkg errors as well as they will already be recorded separately
# by apt itself
if error_code in (enums.ERROR_INVALID_PACKAGE_FILE,
enums.ERROR_PACKAGE_MANAGER_FAILED):
return
For some reason these errors are not being recorded when the package
manager has failed. However, if one uses 'apt-get install' or
'aptdcon' to install the same package you will get a crash report. So
I believe it is something with software-center itself that is
preventing these crash reports from being generated.
Apport provides a package_hook script, /usr/share/apport/package_hook,
for creating package install failures so we could call that from
software-center. I've written a patch that does just that.
ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: software-center 13.05-0ubuntu1 [modified: usr/share/software-center/softwarecenter/backend/installbackend_impl/aptd.py usr/share/software-center/softwarecenter/paths.py]
ProcVersionSignature: Ubuntu 3.10.0-1.8-generic 3.10.0-rc7
Uname: Linux 3.10.0-1-generic x86_64
ApportVersion: 2.10.2-0ubuntu3
Architecture: amd64
CheckboxSubmission: 2e6ecd139611830c78226ad04ff4c093
CheckboxSystem: bb422ca46d02494cdbc459927a98bc2f
Date: Mon Jul 1 15:47:33 2013
EcryptfsInUse: Yes
InstallationDate: Installed on 2010-11-17 (956 days ago)
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
MarkForUpload: True
PackageArchitecture: all
SourcePackage: software-center
UpgradeStatus: Upgraded to saucy on 2013-06-04 (27 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/1196740/+subscriptions