1

I'm running Ubuntu 16.04.6 on liveUSB with persistent data, my machine has an Nvidia Quadro M1200 and a built-in Intel HD 630. In Additional Drivers I chose Using NVIDIA binary driver -version 384.130 from nvidia-384(proprietary, tested) and Apply Changes then reboot and disable Secure Boot in BIOS.

But when I boot to Ubuntu and enter command nvidia-smi, it says nvidia-smi: command not found.

Checking nvidia-settings gets an error:

** Message: PRIME: No offloading required. Abort
** Message: PRIME: is it supported? no

ERROR: nvidia-settings could not find the registry key file. This file should have been installed along with this driver at /usr/share/nvidia/nvidia-application-profiles-key-documentation. The application profiles will continue to work, but values cannot be prepopulated or validated, and will not be listed in the help text. Please see the README for possible values and descriptions.

Then I follow Cuda installation guide- Linux and ran into a problem when I try to make sure kernel header matches with kernel version.

$ uname -r
4.15.0-45-generic
$ sudo apt-get install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
linux-headers-4.15.0-45-generic is already the newest version (4.15.0-45.48~16.04.1).
0 upgraded, 0 newly installed, 0 to remove and 418 not upgraded.
4 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 nvidia-384 (384.130-0ubuntu0.16.04.2) ...
/usr/sbin/update-initramfs: 6: /usr/sbin/update-initramfs: cannot create /cdrom/casper/vmlinuz: Read-only file system
dpkg: error processing package nvidia-384 (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of libcuda1-384:
 libcuda1-384 depends on nvidia-384 (>= 384.130); however:
  Package nvidia-384 is not configured yet.

dpkg: error processing package libcuda1-384 (--configure): dependency problems - leaving unconfigured Setting up linux-image-4.4.0-187-generic (4.4.0-187.217) ... No apport report written because the error message indicates its a followup error from a previous failure.

dpkg: dependency problems prevent configuration of nvidia-opencl-icd-384: nvidia-opencl-icd-384 depends on nvidia-384 (>= 384.130); however: Package nvidia-384 is not configured yet.

dpkg: error processing package nvidia-opencl-icd-384 (--configure): dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure. Processing triggers for libc-bin (2.23-0ubuntu11) ... Processing triggers for linux-image-4.4.0-187-generic (4.4.0-187.217) ... /etc/kernel/postinst.d/dkms:

  • dkms: running auto installation service for kernel 4.4.0-187-generic ...done.

/etc/kernel/postinst.d/initramfs-tools: /usr/sbin/update-initramfs: 6: /usr/sbin/update-initramfs: cannot create /cdrom/casper/vmlinuz: Read-only file system run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 2 dpkg: error processing package linux-image-4.4.0-187-generic (--configure): subprocess installed post-installation script returned error exit status 1 No apport report written because MaxReports is reached already Errors were encountered while processing: nvidia-384 libcuda1-384 nvidia-opencl-icd-384 linux-image-4.4.0-187-generic E: Sub-process /usr/bin/dpkg returned an error code (1)

By checking linux headers I get:

$ dpkg -l | grep linux-headers-
ii  linux-headers-4.15.0-45                    4.15.0-45.48~16.04.1                         all          Header files related to Linux kernel version 4.15.0
ii  linux-headers-4.15.0-45-generic            4.15.0-45.48~16.04.1                         amd64        Linux kernel headers for version 4.15.0 on 64 bit x86 SMP
ii  linux-headers-4.4.0-187                    4.4.0-187.217                                all          Header files related to Linux kernel version 4.4.0
ii  linux-headers-4.4.0-187-generic            4.4.0-187.217                                amd64        Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
ii  linux-headers-generic                      4.4.0.187.193                                amd64        Generic Linux kernel headers
ii  linux-headers-generic-hwe-16.04            4.15.0.45.66                                 amd64        Generic Linux kernel headers 

I have no idea what the error message means, not sure if I should I continue the installation or fix it now? But how ?

JGrey
  • 11

0 Answers0