package kvm-source 1:84+dfsg-0ubuntu11 failed to install/upgrade: subprocess post-installation script returned error exit status 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kvm (Ubuntu) |
Fix Released
|
Low
|
Dustin Kirkland | ||
Jaunty |
Fix Released
|
Low
|
Unassigned |
Bug Description
Binary package hint: kvm
This might be the same as bug #394879.
ProblemType: Package
Architecture: amd64
DistroRelease: Ubuntu 9.04
ErrorMessage: subprocess post-installation script returned error exit status 1
KvmCmdLine: Error: command ['ps', '-C', 'kvm', '-F'] failed with exit code 1: UID PID PPID C SZ RSS PSR STIME TTY TIME CMD
MachineType: ACCS CAIDA Network Monitor
Package: kvm-source 1:84+dfsg-0ubuntu11
PackageArchitec
ProcCmdLine: BOOT_IMAGE=
ProcVersionSign
SourcePackage: kvm
Title: package kvm-source 1:84+dfsg-0ubuntu11 failed to install/upgrade: subprocess post-installation script returned error exit status 1
Changed in kvm (Ubuntu Jaunty): | |
status: | Confirmed → Fix Committed |
This a problem that gets reported repeatedly. I have a fix uploading to jaunty-proposed, in conjunction with a much higher SRU.
The kvm-source package is a dkms build of the kvm module. In order to build this, you *must* have the kernel headers installed for any kernel that you want to build kvm and boot.
Currently, we're depending on "linux- headers- server | linux-headers- generic | linux-headers".
This isn't good enough, though, as the user might have linux-headers and linux-headers- generic installed, but is running the linux-server kernel. In which, the dkms build fails, and reports the following helpful, informative message:
******* ******* ******* ******* ******* ******* *******
ERROR: Missing kernel headers.
You appear to have at least some kernel headers
installed, but you do not have the necessary
headers to build kvm-source against this kernel.
You might try installing the meta package:
$ sudo apt-get install linux-headers- server
or specifically
$ sudo apt-get install linux-headers- 2.6.28- 13-server
to obtain the necessary build dependencies.
******* ******* ******* ******* ******* ******* *******
This message tells users exactly how to solve the problem, however we still get bug reports by the truckload.
Thus, I'm proposing that we depend on all of "linux- headers- server, linux-headers- generic, linux-headers". This will involve installing extra headers on some systems. However, this is contained to users installing kvm-source, and will help avoid a lot of headaches.
Proposing for SRU, in conjunction with Bug #359447 and Bug #382077.
:-Dustin