not all package install failures generate a crash report
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
software-center (Ubuntu) |
Triaged
|
High
|
Unassigned |
Bug Description
I was trying to install the package crash-in-postinst package from the following PPA, https:/
# lintian errors are ignored and not send to apport_
# and dpkg errors as well as they will already be recorded separately
# by apt itself
if error_code in (enums.
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/
ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: software-center 13.05-0ubuntu1 [modified: usr/share/
ProcVersionSign
Uname: Linux 3.10.0-1-generic x86_64
ApportVersion: 2.10.2-0ubuntu3
Architecture: amd64
CheckboxSubmission: 2e6ecd139611830
CheckboxSystem: bb422ca46d02494
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
PackageArchitec
SourcePackage: software-center
UpgradeStatus: Upgraded to saucy on 2013-06-04 (27 days ago)
tags: | added: patch |
Here is a log from a failed installation of the package:
2013-07-01 11:59:54,742 - softwarecenter. backend - WARNING - _on_trans_error: 'TransactionFai led(u'error- package- manager- failed: (Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 649694 files and directories currently installed. )\r\nPreparing to replace crash-in-postinst 2 (using .../crash- in-postinst_ 2_all.deb) ...\r\nUnpacking replacement crash-in-postinst ...\r\nSetting up crash-in-postinst (2) ...\r\ndpkg: error processing crash-in-postinst (--install):\r\n subprocess installed post-installation script returned error exit status 1\r\nErrors were encountered while processing:\r\n crash-in- postinst\ r\n',)' '<AptTransaction object at 0x76f41e0 (aptdaemon+ client+ AptTransaction at 0x7564280)>' 'crash-in-postinst' ui.gtk3. app - INFO - setting up proxy 'None' backend. reviews - WARNING - Could not get usefulness from server, no username in config file plugin - INFO - activating plugin '<module 'webapps_ activation' from '/usr/share/ software- center/ softwarecenter/ plugins/ webapps_ activation. pyc'>' db.pkginfo_ impl.aptcache - INFO - aptcache.open() db.utils - INFO - software- center- agent finished with status 0 backend. spawn_helper - WARNING - exit code 1 from helper for '['/usr/ share/software- center/ piston_ generic_ helper. py', '--datadir', '/usr/share/ software- center/ ', 'SoftwareCenter RecommenderAPI' , 'recommend_app', '{"pkgname": "crash- in-postinst" }']' backend. spawn_helper - WARNING - got error from helper: 'WARNING: __main_ _:404: {'status': '404', 'content-length': '66', 'via': '1.1 papeda. canonical. com:3128 (squid/ 2.7.STABLE7) ', 'x-cache': 'MISS from papeda. canonical. com', 'x-cache-lookup': 'HIT from papeda. canonical. com:3128' , 'strict- transport- security' : 'max-age=2592000', 'vary': 'Accept-Encoding', 'server': 'Apache/2.2.22 (Ubuntu)', 'etag': '"63f0274927b96 69d1d133c5b0731 8e05"', 'cache-control': 'max-age=300', 'date': 'Mon, 01 Jul 2013 19:04:11 GMT', 'content-type': 'text/html; charset=utf-8', '-content- encoding' : 'gzip'}
2013-07-01 12:03:57,327 - softwarecenter.
2013-07-01 12:03:59,780 - softwarecenter.
2013-07-01 12:03:59,832 - softwarecenter.
2013-07-01 12:04:01,363 - softwarecenter.
2013-07-01 12:04:10,679 - softwarecenter.
2013-07-01 12:04:15,764 - softwarecenter.
2013-07-01 12:04:15,766 - softwarecenter.
'