1

i want to install NVIDIA-Linux-x86_64-390.157.run file for GT820M and when i try to install it using terminal it wont build kernals. i have almost zero knowledge of terminal and how to use it. i will put the log file too.and feel free to ask for whatever else info needed

i ran the installer using -no-x-check and -no-nouveau-check and -no-cc-version-check i even tried turning them off manually

i was getting
warning: the compiler differs from the one used to build the kernel The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu 13.2.0-23ubuntu4) 13.2.0 You are using: cc (Ubuntu 13.2.0-23ubuntu4) 13.2.0

i dont know how can i post the entire log , so if anything is needed feel free to ask

EDIT: i tried installing the driver using sudo apt install nvidia-driver-390

which out puts

Building initial module for 6.8.0-36-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/nvidia-dkms-390
.0.crash'
Error! Bad return status for module build on kernel: 6.8.0-36-generic (x86_64)
Consult /var/lib/dkms/nvidia/390.157/build/make.log for more information.
dpkg: error processing package nvidia-dkms-390 (--configure):
 installed nvidia-dkms-390 package post-installation script subprocess returned 
error exit status 10
dpkg: dependency problems prevent configuration of nvidia-driver-390:
 nvidia-driver-390 depends on nvidia-dkms-390 (<= 390.157-1); however:
  Package nvidia-dkms-390 is not configured yet.
 nvidia-driver-390 depends on nvidia-dkms-390 (>= 390.157); however:
  Package nvidia-dkms-390 is not configured yet.

dpkg: error processing package nvidia-driver-390 (--configure): dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup erro r from a previous failure. Processing triggers for initramfs-tools (0.142ubuntu25 .1) ... update-initramfs: Generating /boot/initrd.img-6.8.0-36-generic Errors were encountered while processing: nvidia-dkms-390 nvidia-driver-390 E: Sub-process /usr/bin/dpkg returned an error code (1)

1 Answers1

0

You may try exporting cc as gcc and then executing the run file. reference

Blz
  • 25