Build error when installing bbswitch-dkms on Ubuntu 14.04.3
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bbswitch (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I have an Nvidia Optimus graphic card installed and have the Nvidia driver installed and working for my Intel card, but I cannot switch to the Nvidia card. This is because bbswitch-dkms will not build during install via apt-get or from source.
My system
* Ubuntu 14.04.3 LTS
* NVIDIA Corporation GF119M [GeForce GT 520M]
* linux-image-
* linux-headers-
* linux-image-
* dkms: 2.2.0.3
* gcc (Ubuntu 4.8.4-2ubuntu1~
* bbswitch-dkms (0.7-2ubuntu1)
When trying to install bbswitch-dkms the following error occurs:
Unpacking bbswitch-dkms (0.7-2ubuntu1) over (0.7-2ubuntu1) ...
Setting up bbswitch-dkms (0.7-2ubuntu1) ...
Loading new bbswitch-0.7 DKMS files...
Building only for 3.19.0-42-generic
Building initial module for 3.19.0-42-generic
Error! Bad return status for module build on kernel: 3.19.0-42-generic (x86_64)
Consult /var/lib/
The content of make.log is:
DKMS make.log for bbswitch-0.7 for kernel 3.19.0-42-generic (x86_64)
lör 9 jan 2016 15:37:02 CET
make -C /lib/modules/
make[1]: Entering directory `/usr/src/
arch/x86/
CC [M] /var/lib/
/var/lib/
/var/lib/
}
^
It seems this is the main problem:
make[1]: Entering directory `/usr/src/
arch/x86/
The following log entries appear in syslog during installation and building bbswitch-dkms:
kernel: [ 235.068506] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
kernel: [ 235.071273] ata1.00: irq_stat 0x40000001
kernel: [ 235.074011] ata1.00: failed command: READ DMA
kernel: [ 235.076740] ata1.00: cmd c8/00:08:
kernel: [ 235.076740] res 51/40:00:
kernel: [ 235.082207] ata1.00: status: { DRDY ERR }
kernel: [ 235.084957] ata1.00: error: { UNC }
kernel: [ 235.119639] ata1.00: configured for UDMA/133
kernel: [ 235.119667] sd 0:0:0:0: [sda] FAILED Result: hostbyte=DID_OK driverbyte=
kernel: [ 235.119674] sd 0:0:0:0: [sda] Sense Key : Medium Error [current] [descriptor]
kernel: [ 235.119680] sd 0:0:0:0: [sda] Add. Sense: Unrecovered read error - auto reallocate failed
kernel: [ 235.119684] sd 0:0:0:0: [sda] CDB:
kernel: [ 235.119687] Read(10): 28 00 00 07 95 a8 00 00 08 00
kernel: [ 235.119704] blk_update_request: I/O error, dev sda, sector 497064
kernel: [ 235.122090] ata1: EH complete
I have installed kernel-headers so all building packages should be installed.
Has anyone encountered this before or know of any solutions?
Thank you!
Your disk seems broken. Have you checked the disk health?
smartctl -a /dev/sda