apport_pkgfailure function of DistUpgradeApport.py should include current dmesg
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
update-manager (Ubuntu) |
Fix Released
|
Medium
|
Brian Murray | ||
Oneiric |
Fix Released
|
Medium
|
Brian Murray |
Bug Description
Binary package hint: update-manager
It'd be useful to include a current version of dmesg with apport package failures during distribution upgrades to help determine if the reporter is experiencing hardware failure. See bug 773137 and its VarLogDistUpgra
2011-04-29 05:51:51,011 ERROR got an error from dpkg for pkg: '/var/cache/
2011-04-29 05:51:51,011 DEBUG running apport_pkgfailure() xulrunner-1.9.2: short read on buffer copy for backend dpkg-deb during `./usr/
2011-04-29 05:51:51,029 ERROR got an error from dpkg for pkg: '/var/cache/
Changed in update-manager (Ubuntu Oneiric): | |
importance: | Undecided → Medium |
Changed in update-manager (Ubuntu Oneiric): | |
status: | New → Triaged |
I actually included this in the generic update-manager apport package hook so it'll appear in all update-manager bug reports instead of just distribution upgrades.
'''apport package hook for update-manager
(c) 2011 Canonical Ltd.
Author: Brian Murray <email address hidden>
'''
from apport.hookutils import *
def add_info(report):
# collect gconf settings for update-manager 'GconfUpdateMan ager'] = command_ output( ['gconftool- 2', '-R',
'/apps/ update- manager' ]) gconf(report, 'update-manager') file_if_ exists( report, '/var/log/ apt/history. log',
'DpkgHistoryLo g.txt') root_command_ outputs( report,
{'DpkgTerminal Log.txt' : 'cat /var/log/ apt/term. log',
'CurrentDmesg .txt': 'dmesg | comm -13 --nocheck-order /var/log/dmesg -'})
report[
# grab the non-default values too as it is easier to compare with both the
# settings and the non-default values
attach_
attach_
attach_