Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... The following packages were automatically installed and are no longer required:
  libntdb1 linux-image-generic-lts-vivid linux-signed-image-generic-lts-vivid python-ntdb thermald
Use 'apt-get autoremove' to remove them.
The following packages have been kept back:
  libgbm1 xorg
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up oem-wireless-dw1550-1160187-dkms ( ...
Removing old oem-wireless-dw1550-1160187- DKMS files...

Deleting module version:
completely from the DKMS tree.
Loading new oem-wireless-dw1550-1160187- DKMS files...
First Installation: checking all kernels...
Building only for 3.19.0-49-generic
Building for architecture x86_64
Building initial module for 3.19.0-49-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/oem-wireless-dw1550-1160187-dkms.0.crash'
Error! Bad return status for module build on kernel: 3.19.0-49-generic (x86_64)
Consult /var/lib/dkms/oem-wireless-dw1550-1160187/ for more information.
dpkg: error processing package oem-wireless-dw1550-1160187-dkms (--configure):
 subprocess installed post-installation script returned error exit status 10
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)
  • 15.04 is past End of Life, are you sure you are still on 15.04? – Thomas Ward Apr 19 '16 at 13:51
  • Sorry, my bad. It's ubuntu 15.10. – ani24 Apr 19 '16 at 14:02
  • Welcome to Ubuntu! It would be helpful if you added a little more description about your setup and what you did to achieve this program output. Even if your problem was resolved now it would help future readers with the same problem to identify it. I'll give you an up-vote if you ping me after you edit your question. :-) – David Foerster May 2 '16 at 18:51

You have some old kernel(s) from a previous Ubuntu release installed that cause(s) compatibility issues when DKMS tries to compile kernel modules for it. You should delete them.

Start with

sudo apt-get purge -f 'linux-*-3.19*'

and/or see How do I remove old kernel versions to clean up the boot menu?.

Apt may refuse to delete these packages because of unconfigured packages (because a kernel module couldn't be compiled for them). In that case please update your question with what you tried to do and any error messages encountered in the process and ping me in the comment section of this answer.

|improve this answer|||||

Looks like a previous build crashed, I would remove the crash file (see path in the line below) and try another upgrade.

[Errno 17] File exists: '/var/crash/oem-wireless-dw1550-1160187-dkms.0.crash'

If the build still crash, I would consult /var/lib/dkms/oem-wireless-dw1550-1160187/ to have more details.

|improve this answer|||||
  • The crash file wouldn't matter if the build didn't crash… – David Foerster May 2 '16 at 9:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.