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. Done 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 (126.96.36.199somerville1) ... Removing old oem-wireless-dw1550-1160187-188.8.131.52somerville1 DKMS files... ------------------------------ Deleting module version: 184.108.40.206somerville1 completely from the DKMS tree. ------------------------------ Done. Loading new oem-wireless-dw1550-1160187-220.127.116.11somerville1 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/18.104.22.168somerville1/build/make.log 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: oem-wireless-dw1550-1160187-dkms E: Sub-process /usr/bin/dpkg returned an error code (1)
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.
sudo apt-get purge -f 'linux-*-3.19*'
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.
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/22.214.171.124somerville1/build/make.log to have more details.