/usr/share/apport/package-hooks/dkms.py fails if /var/crash/ does not exist

Bug #697418 reported by sam tygier
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Binary package hint: dkms

I was attempting to install openafs-modules-dkms. some issue caused this to fail. dkms was unable to write an error log, due to /var/crash not existing.

sam@sam-virtual-machine:~$ sudo apt-get install openafs-modules-dkms
[sudo] password for sam:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  bison dkms fakeroot flex m4 patch
Suggested packages:
  bison-doc build-essential diffutils-doc
The following NEW packages will be installed
  bison dkms fakeroot flex m4 openafs-modules-dkms patch
0 upgraded, 7 newly installed, 0 to remove and 17 not upgraded.
Need to get 2,395 kB of archives.
After this operation, 9,748 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://gb.archive.ubuntu.com/ubuntu/ natty/main m4 amd64 1.4.14-3 [290 kB]
Get:2 http://gb.archive.ubuntu.com/ubuntu/ natty/main flex amd64 2.5.35-10 [261 kB]
Get:3 http://gb.archive.ubuntu.com/ubuntu/ natty/main bison amd64 1:2.4.1.dfsg-3 [493 kB]
Get:4 http://gb.archive.ubuntu.com/ubuntu/ natty/main patch amd64 2.6-3 [121 kB]
Get:5 http://gb.archive.ubuntu.com/ubuntu/ natty/main dkms all 2.1.1.2-5ubuntu1 [71.9 kB]
Get:6 http://gb.archive.ubuntu.com/ubuntu/ natty/main fakeroot amd64 1.14.4-1ubuntu1 [101 kB]
Get:7 http://gb.archive.ubuntu.com/ubuntu/ natty/universe openafs-modules-dkms amd64 1.4.12.1+dfsg-3 [1,058 kB]
Fetched 2,395 kB in 3s (669 kB/s)
Selecting previously deselected package m4.
(Reading database ... 121933 files and directories currently installed.)
Unpacking m4 (from .../archives/m4_1.4.14-3_amd64.deb) ...
Selecting previously deselected package flex.
Unpacking flex (from .../flex_2.5.35-10_amd64.deb) ...
Selecting previously deselected package bison.
Unpacking bison (from .../bison_1%3a2.4.1.dfsg-3_amd64.deb) ...
Selecting previously deselected package patch.
Unpacking patch (from .../archives/patch_2.6-3_amd64.deb) ...
Selecting previously deselected package dkms.
Unpacking dkms (from .../dkms_2.1.1.2-5ubuntu1_all.deb) ...
Selecting previously deselected package fakeroot.
Unpacking fakeroot (from .../fakeroot_1.14.4-1ubuntu1_amd64.deb) ...
Selecting previously deselected package openafs-modules-dkms.
Unpacking openafs-modules-dkms (from .../openafs-modules-dkms_1.4.12.1+dfsg-3_amd64.deb) ...
Processing triggers for install-info ...
Processing triggers for man-db ...
Setting up m4 (1.4.14-3) ...
Setting up flex (2.5.35-10) ...
Setting up bison (1:2.4.1.dfsg-3) ...
update-alternatives: using /usr/bin/bison.yacc to provide /usr/bin/yacc (yacc) in auto mode.
Setting up patch (2.6-3) ...
Setting up dkms (2.1.1.2-5ubuntu1) ...
Setting up fakeroot (1.14.4-1ubuntu1) ...
update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode.
Setting up openafs-modules-dkms (1.4.12.1+dfsg-3) ...
Loading new openafs-1.4.12.1 DKMS files...
First Installation: checking all kernels...
Building only for 2.6.37-11-generic
Building initial module for 2.6.37-11-generic

Error! Bad return status for module build on kernel: 2.6.37-11-generic (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/openafs/1.4.12.1/build/ for more information.
Traceback (most recent call last):
  File "/usr/share/apport/package-hooks/dkms.py", line 57, in <module>
    report.write(open(apport.fileutils.make_report_path(report), 'w'))
IOError: [Errno 2] No such file or directory: '/var/crash/openafs-modules-dkms.0.crash'
sam@sam-virtual-machine:~$

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: dkms 2.1.1.2-5ubuntu1
ProcVersionSignature: Ubuntu 2.6.37-11.25-generic 2.6.37-rc7
Uname: Linux 2.6.37-11-generic x86_64
Architecture: amd64
Date: Tue Jan 4 21:23:43 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha amd64 (20110104)
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_GB:en
 LANG=en_GB.UTF-8
 LC_MESSAGES=en_GB.utf8
 SHELL=/bin/bash
SourcePackage: dkms

Revision history for this message
sam tygier (samtygier) wrote :
Revision history for this message
sam tygier (samtygier) wrote :

after making /var/crash and running again i submitted Bug #697425

Revision history for this message
Mario Limonciello (superm1) wrote :

I think that really apport should be providing the directory /var/crash in it's directories lists. I'll reassign to apport to get pitti's opinion on this.

affects: dkms (Ubuntu) → apport (Ubuntu)
Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

This release of Ubuntu is no longer receiving maintenance updates. If this is still an issue on a maintained version of Ubuntu please let us know.

Changed in apport (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for apport (Ubuntu) because there has been no activity for 60 days.]

Changed in apport (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.