[Desktop-packages] [Bug 1196740] Re: not all package install failures generate a crash report

2015-05-04 Thread Brian Murray
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

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1196740] Re: not all package install failures generate a crash report

2015-05-02 Thread dino99
That version is no more maintained

** Changed in: software-center (Ubuntu)
   Status: Confirmed = Invalid

-- 
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:
  Invalid

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

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1196740] Re: not all package install failures generate a crash report

2013-07-01 Thread Brian Murray
Here is an incomplete patch using the package_hook utility to create
.crash files.  However, there is an issue with the naming of attachments
and code in the general Ubuntu hook (ubuntu.py) for handling dpkg log
files.  The issue being that the log file will be called
VarLogAptTermlog and not DpkgTerminalLog like ubuntu.py expects.

** Patch added: package_hook.patch
   
https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/1196740/+attachment/3721258/+files/package_hook.patch

** Changed in: software-center (Ubuntu)
   Importance: Undecided = High

** Changed in: software-center (Ubuntu)
   Status: New = Confirmed

-- 
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:
  Confirmed

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

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1196740] Re: not all package install failures generate a crash report

2013-07-01 Thread Ubuntu Foundations Team Bug Bot
** Tags added: patch

-- 
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:
  Confirmed

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

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp