Help

I got a graphics card an cant get it to work. its a gt430

here what happens when I try an install:
sudo dpkg --configure -a
sudo apt-get install -f
sudo update-initramfs -u
Setting up nvidia-dkms-390 (390.157-0ubuntu0.22.04.2) …
update-initramfs: deferring update (trigger activated)
INFO:Enable nvidia
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
Removing old nvidia-390.157 DKMS files…
Deleting module nvidia-390.157 completely from the DKMS tree.
Loading new nvidia-390.157 DKMS files…
Building for 6.5.0-14-generic
Building for architecture x86_64
Building initial module for 6.5.0-14-generic
ERROR: Cannot create report: [Errno 17] File exists: ‘/var/crash/nvidia-kernel-source-390.0.crash’
Error! Bad return status for module build on kernel: 6.5.0-14-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
Processing triggers for initramfs-tools (0.140ubuntu13.4) …
update-initramfs: Generating /boot/initrd.img-6.5.0-14-generic
Errors were encountered while processing:
nvidia-dkms-390
nvidia-driver-390
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
The following package was automatically installed and is no longer required:
libnvidia-extra-535
Use ‘sudo apt autoremove’ to remove it.
0 upgraded, 0 newly installed, 0 to remove and 16 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up nvidia-dkms-390 (390.157-0ubuntu0.22.04.2) …
update-initramfs: deferring update (trigger activated)
INFO:Enable nvidia
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/dell_latitude
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/lenovo_thinkpad
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here
Removing old nvidia-390.157 DKMS files…
Deleting module nvidia-390.157 completely from the DKMS tree.
Loading new nvidia-390.157 DKMS files…
Building for 6.5.0-14-generic
Building for architecture x86_64
Building initial module for 6.5.0-14-generic
ERROR: Cannot create report: [Errno 17] File exists: ‘/var/crash/nvidia-kernel-source-390.0.crash’
Error! Bad return status for module build on kernel: 6.5.0-14-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 error from a previous failure.
Processing triggers for initramfs-tools (0.140ubuntu13.4) …
update-initramfs: Generating /boot/initrd.img-6.5.0-14-generic
Errors were encountered while processing:
nvidia-dkms-390
nvidia-driver-390
E: Sub-process /usr/bin/dpkg returned an error code (1)
update-initramfs: Generating /boot/initrd.img-6.5.0-14-generic

Here’s my log

CC [M] /var/lib/dkms/nvidia/390.157/build/nvidia/nv-frontend.o

x86_64-linux-gnu-gcc-12 -Wp,-MMD,/var/lib/dkms/nvidia/390.157/build/nvidia/.nv-frontend.o.d -nostdinc -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -I./ubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -std=gnu11 -fshort-wchar -funsigned-char -fno-common -fno-PIE -fno-strict-aliasing -Wall -Wundef -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Werror=strict-prototypes -Wno-format-security -Wno-trigraphs -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -mfunction-return=thunk-extern -fno-jump-tables -mharden-sls=all -fpatchable-function-entry=16,16 -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=1024 -fstack-protector-strong -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-dangling-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -ftrivial-auto-var-init=zero -fno-stack-clash-protection -fzero-call-used-regs=used-gpr -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -falign-functions=16 -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-truncation -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -Wno-array-bounds -Wno-alloc-size-larger-than -Wimplicit-fallthrough=5 -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -g -gdwarf-5 -I/var/lib/dkms/nvidia/390.157/build/common/inc -I/var/lib/dkms/nvidia/390.157/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING="390.157" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -Wno-sign-compare -Wno-format-extra-args -Werror=undef -DNV_SPECTRE_V2=0 -DNV_KERNEL_INTERFACE_LAYER -I/var/lib/dkms/nvidia/390.157/build/nvidia -DNV_BUILD_MODULE_INSTANCES=0 -DNVIDIA_UNDEF_LEGACY_BIT_MACROS -UDEBUG -U_DEBUG -DNDEBUG -fsanitize=bounds-strict -fsanitize=shift -fsanitize=bool -fsanitize=enum -DMODULE -DKBUILD_BASENAME=‘“nv_frontend”’ -DKBUILD_MODNAME=‘“nvidia”’ -D__KBUILD_MODNAME=kmod_nvidia -c -o /var/lib/dkms/nvidia/390.157/build/nvidia/nv-frontend.o /var/lib/dkms/nvidia/390.157/build/nvidia/nv-frontend.c ; ./tools/objtool/objtool --hacks=jump_label --hacks=noinstr --hacks=skylake --retpoline --rethunk --sls --stackval --static-call --uaccess --prefix=16 --module /var/lib/dkms/nvidia/390.157/build/nvidia/nv-frontend.o

CC [M] /var/lib/dkms/nvidia/390.157/build/nvidia/nv-instance.o

x86_64-linux-gnu-gcc-12 -Wp,-MMD,/var/lib/dkms/nvidia/390.157/build/nvidia/.nv-instance.o.d -nostdinc -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -I./ubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -std=gnu11 -fshort-wchar -funsigned-char -fno-common -fno-PIE -fno-strict-aliasing -Wall -Wundef -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Werror=strict-prototypes -Wno-format-security -Wno-trigraphs -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -mfunction-return=thunk-extern -fno-jump-tables -mharden-sls=all -fpatchable-function-entry=16,16 -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=1024 -fstack-protector-strong -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-dangling-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -ftrivial-auto-var-init=zero -fno-stack-clash-protection -fzero-call-used-regs=used-gpr -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -falign-functions=16 -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-truncation -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -Wno-array-bounds -Wno-alloc-size-larger-than -Wimplicit-fallthrough=5 -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -g -gdwarf-5 -I/var/lib/dkms/nvidia/390.157/build/common/inc -I/var/lib/dkms/nvidia/390.157/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING="390.157" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -Wno-sign-compare -Wno-format-extra-args -Werror=undef -DNV_SPECTRE_V2=0 -DNV_KERNEL_INTERFACE_LAYER -I/var/lib/dkms/nvidia/390.157/build/nvidia -DNV_BUILD_MODULE_INSTANCES=0 -DNVIDIA_UNDEF_LEGACY_BIT_MACROS -UDEBUG -U_DEBUG -DNDEBUG -fsanitize=bounds-strict -fsanitize=shift -fsanitize=bool -fsanitize=enum -DMODULE -DKBUILD_BASENAME=‘“nv_instance”’ -DKBUILD_MODNAME=‘“nvidia”’ -D__KBUILD_MODNAME=kmod_nvidia -c -o /var/lib/dkms/nvidia/390.157/build/nvidia/nv-instance.o /var/lib/dkms/nvidia/390.157/build/nvidia/nv-instance.c ; ./tools/objtool/objtool --hacks=jump_label --hacks=noinstr --hacks=skylake --retpoline --rethunk --sls --stackval --static-call --uaccess --prefix=16 --module /var/lib/dkms/nvidia/390.157/build/nvidia/nv-instance.o

CC [M] /var/lib/dkms/nvidia/390.157/build/nvidia/nv-gpu-numa.o

x86_64-linux-gnu-gcc-12 -Wp,-MMD,/var/lib/dkms/nvidia/390.157/build/nvidia/.nv-gpu-numa.o.d -nostdinc -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -I./ubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -std=gnu11 -fshort-wchar -funsigned-char -fno-common -fno-PIE -fno-strict-aliasing -Wall -Wundef -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Werror=strict-prototypes -Wno-format-security -Wno-trigraphs -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -mfunction-return=thunk-extern -fno-jump-tables -mharden-sls=all -fpatchable-function-entry=16,16 -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=1024 -fstack-protector-strong -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-dangling-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -ftrivial-auto-var-init=zero -fno-stack-clash-protection -fzero-call-used-regs=used-gpr -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -falign-functions=16 -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-truncation -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -Wno-array-bounds -Wno-alloc-size-larger-than -Wimplicit-fallthrough=5 -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -g -gdwarf-5 -I/var/lib/dkms/nvidia/390.157/build/common/inc -I/var/lib/dkms/nvidia/390.157/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING="390.157" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -Wno-sign-compare -Wno-format-extra-args -Werror=undef -DNV_SPECTRE_V2=0 -DNV_KERNEL_INTERFACE_LAYER -I/var/lib/dkms/nvidia/390.157/build/nvidia -DNV_BUILD_MODULE_INSTANCES=0 -DNVIDIA_UNDEF_LEGACY_BIT_MACROS -UDEBUG -U_DEBUG -DNDEBUG -fsanitize=bounds-strict -fsanitize=shift -fsanitize=bool -fsanitize=enum -DMODULE -DKBUILD_BASENAME=‘“nv_gpu_numa”’ -DKBUILD_MODNAME=‘“nvidia”’ -D__KBUILD_MODNAME=kmod_nvidia -c -o /var/lib/dkms/nvidia/390.157/build/nvidia/nv-gpu-numa.o /var/lib/dkms/nvidia/390.157/build/nvidia/nv-gpu-numa.c ; ./tools/objtool/objtool --hacks=jump_label --hacks=noinstr --hacks=skylake --retpoline --rethunk --sls --stackval --static-call --uaccess --prefix=16 --module /var/lib/dkms/nvidia/390.157/build/nvidia/nv-gpu-numa.o

CC [M] /var/lib/dkms/nvidia/390.157/build/nvidia/nv.o

x86_64-linux-gnu-gcc-12 -Wp,-MMD,/var/lib/dkms/nvidia/390.157/build/nvidia/.nv.o.d -nostdinc -I./arch/x86/include -I./arch/x86/include/generated -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -I./ubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -std=gnu11 -fshort-wchar -funsigned-char -fno-common -fno-PIE -fno-strict-aliasing -Wall -Wundef -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Werror=strict-prototypes -Wno-format-security -Wno-trigraphs -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -mfunction-return=thunk-extern -fno-jump-tables -mharden-sls=all -fpatchable-function-entry=16,16 -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 -fno-allow-store-data-races -Wframe-larger-than=1024 -fstack-protector-strong -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-dangling-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls -ftrivial-auto-var-init=zero -fno-stack-clash-protection -fzero-call-used-regs=used-gpr -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -falign-functions=16 -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-truncation -Wno-stringop-overflow -Wno-restrict -Wno-maybe-uninitialized -Wno-array-bounds -Wno-alloc-size-larger-than -Wimplicit-fallthrough=5 -fno-strict-overflow -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wno-packed-not-aligned -g -gdwarf-5 -I/var/lib/dkms/nvidia/390.157/build/common/inc -I/var/lib/dkms/nvidia/390.157/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING="390.157" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -Wno-sign-compare -Wno-format-extra-args -Werror=undef -DNV_SPECTRE_V2=0 -DNV_KERNEL_INTERFACE_LAYER -I/var/lib/dkms/nvidia/390.157/build/nvidia -DNV_BUILD_MODULE_INSTANCES=0 -DNVIDIA_UNDEF_LEGACY_BIT_MACROS -UDEBUG -U_DEBUG -DNDEBUG -fsanitize=bounds-strict -fsanitize=shift -fsanitize=bool -fsanitize=enum -DMODULE -DKBUILD_BASENAME=‘“nv”’ -DKBUILD_MODNAME=‘“nvidia”’ -D__KBUILD_MODNAME=kmod_nvidia -c -o /var/lib/dkms/nvidia/390.157/build/nvidia/nv.o /var/lib/dkms/nvidia/390.157/build/nvidia/nv.c ; ./tools/objtool/objtool --hacks=jump_label --hacks=noinstr --hacks=skylake --retpoline --rethunk --sls --stackval --static-call --uaccess --prefix=16 --module /var/lib/dkms/nvidia/390.157/build/nvidia/nv.o
In file included from /var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:21,
from /var/lib/dkms/nvidia/390.157/build/nvidia/nv-frontend.c:13:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h: In function ‘NV_GET_USER_PAGES_REMOTE’:
In file included from /var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:21,
from /var/lib/dkms/nvidia/390.157/build/nvidia/nv-gpu-numa.c:24:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h: In function ‘NV_GET_USER_PAGES_REMOTE’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:45: error: passing argument 1 of ‘get_user_pages_remote’ from incompatible pointer type [-Werror=incompatible-pointer-types]
164 | return get_user_pages_remote(tsk, mm, start, nr_pages, flags,
| ^~~
| |
| struct task_struct *
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:45: error: passing argument 1 of ‘get_user_pages_remote’ from incompatible pointer type [-Werror=incompatible-pointer-types]
164 | return get_user_pages_remote(tsk, mm, start, nr_pages, flags,
| ^~~
| |
| struct task_struct *
In file included from /var/lib/dkms/nvidia/390.157/build/common/inc/nv-pgprot.h:17,
from /var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:20:
./include/linux/mm.h:2397:46: note: expected ‘struct mm_struct *’ but argument is of type ‘struct task_struct *’
2397 | long get_user_pages_remote(struct mm_struct *mm,
| ^~
In file included from /var/lib/dkms/nvidia/390.157/build/common/inc/nv-pgprot.h:17,
from /var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:20:
./include/linux/mm.h:2397:46: note: expected ‘struct mm_struct *’ but argument is of type ‘struct task_struct *’
2397 | long get_user_pages_remote(struct mm_struct *mm,
| ^~
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:50: warning: passing argument 2 of ‘get_user_pages_remote’ makes integer from pointer without a cast [-Wint-conversion]
164 | return get_user_pages_remote(tsk, mm, start, nr_pages, flags,
| ^~
| |
| struct mm_struct *
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:50: warning: passing argument 2 of ‘get_user_pages_remote’ makes integer from pointer without a cast [-Wint-conversion]
164 | return get_user_pages_remote(tsk, mm, start, nr_pages, flags,
| ^~
| |
| struct mm_struct *
./include/linux/mm.h:2398:42: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’
2398 | unsigned long start, unsigned long nr_pages,
| ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:71: warning: passing argument 5 of ‘get_user_pages_remote’ makes pointer from integer without a cast [-Wint-conversion]
164 | return get_user_pages_remote(tsk, mm, start, nr_pages, flags,
| ^

| |
| unsigned int
./include/linux/mm.h:2398:42: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’
2398 | unsigned long start, unsigned long nr_pages,
| ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:71: warning: passing argument 5 of ‘get_user_pages_remote’ makes pointer from integer without a cast [-Wint-conversion]
164 | return get_user_pages_remote(tsk, mm, start, nr_pages, flags,
| ^

| |
| unsigned int
./include/linux/mm.h:2399:66: note: expected ‘struct page **’ but argument is of type ‘unsigned int’
2399 | unsigned int gup_flags, struct page **pages,
| ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:165:45: error: passing argument 6 of ‘get_user_pages_remote’ from incompatible pointer type [-Werror=incompatible-pointer-types]
165 | pages, vmas);
| ^

| |
| struct page **
./include/linux/mm.h:2399:66: note: expected ‘struct page **’ but argument is of type ‘unsigned int’
2399 | unsigned int gup_flags, struct page **pages,
| ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:165:45: error: passing argument 6 of ‘get_user_pages_remote’ from incompatible pointer type [-Werror=incompatible-pointer-types]
165 | pages, vmas);
| ^

| |
| struct page **
./include/linux/mm.h:2400:33: note: expected ‘int *’ but argument is of type ‘struct page **’
2400 | int *locked);
| ~^~
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:23: error: too many arguments to function ‘get_user_pages_remote’
164 | return get_user_pages_remote(tsk, mm, start, nr_pages, flags,
| ^

./include/linux/mm.h:2400:33: note: expected ‘int *’ but argument is of type ‘struct page **’
2400 | int *locked);
| ~^~
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:23: error: too many arguments to function ‘get_user_pages_remote’
164 | return get_user_pages_remote(tsk, mm, start, nr_pages, flags,
| ^

./include/linux/mm.h:2397:6: note: declared here
2397 | long get_user_pages_remote(struct mm_struct *mm,
| ^

./include/linux/mm.h:2397:6: note: declared here
2397 | long get_user_pages_remote(struct mm_struct *mm,
| ^~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:21,
from /var/lib/dkms/nvidia/390.157/build/nvidia/nv-instance.c:13:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h: In function ‘NV_GET_USER_PAGES_REMOTE’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:45: error: passing argument 1 of ‘get_user_pages_remote’ from incompatible pointer type [-Werror=incompatible-pointer-types]
164 | return get_user_pages_remote(tsk, mm, start, nr_pages, flags,
| ^~~
| |
| struct task_struct *
In file included from /var/lib/dkms/nvidia/390.157/build/common/inc/nv-pgprot.h:17,
from /var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:20:
./include/linux/mm.h:2397:46: note: expected ‘struct mm_struct *’ but argument is of type ‘struct task_struct *’
2397 | long get_user_pages_remote(struct mm_struct *mm,
| ^~
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:50: warning: passing argument 2 of ‘get_user_pages_remote’ makes integer from pointer without a cast [-Wint-conversion]
164 | return get_user_pages_remote(tsk, mm, start, nr_pages, flags,
| ^~
| |
| struct mm_struct *
./include/linux/mm.h:2398:42: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’
2398 | unsigned long start, unsigned long nr_pages,
| ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:71: warning: passing argument 5 of ‘get_user_pages_remote’ makes pointer from integer without a cast [-Wint-conversion]
164 | return get_user_pages_remote(tsk, mm, start, nr_pages, flags,
| ^

| |
| unsigned int
./include/linux/mm.h:2399:66: note: expected ‘struct page **’ but argument is of type ‘unsigned int’
2399 | unsigned int gup_flags, struct page **pages,
| ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:165:45: error: passing argument 6 of ‘get_user_pages_remote’ from incompatible pointer type [-Werror=incompatible-pointer-types]
165 | pages, vmas);
| ^

| |
| struct page **
./include/linux/mm.h:2400:33: note: expected ‘int *’ but argument is of type ‘struct page **’
2400 | int *locked);
| ~^~
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:23: error: too many arguments to function ‘get_user_pages_remote’
164 | return get_user_pages_remote(tsk, mm, start, nr_pages, flags,
| ^

./include/linux/mm.h:2397:6: note: declared here
2397 | long get_user_pages_remote(struct mm_struct *mm,
| ^
~~~~~~~~~~
In file included from /var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:21,
from /var/lib/dkms/nvidia/390.157/build/nvidia/nv.c:13:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h: In function ‘NV_GET_USER_PAGES_REMOTE’:
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:45: error: passing argument 1 of ‘get_user_pages_remote’ from incompatible pointer type [-Werror=incompatible-pointer-types]
164 | return get_user_pages_remote(tsk, mm, start, nr_pages, flags,
| ^~~
| |
| struct task_struct *
In file included from /var/lib/dkms/nvidia/390.157/build/common/inc/nv-pgprot.h:17,
from /var/lib/dkms/nvidia/390.157/build/common/inc/nv-linux.h:20:
./include/linux/mm.h:2397:46: note: expected ‘struct mm_struct *’ but argument is of type ‘struct task_struct *’
2397 | long get_user_pages_remote(struct mm_struct mm,
| ^~
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:50: warning: passing argument 2 of ‘get_user_pages_remote’ makes integer from pointer without a cast [-Wint-conversion]
164 | return get_user_pages_remote(tsk, mm, start, nr_pages, flags,
| ^~
| |
| struct mm_struct *
./include/linux/mm.h:2398:42: note: expected ‘long unsigned int’ but argument is of type ‘struct mm_struct *’
2398 | unsigned long start, unsigned long nr_pages,
| ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:71: warning: passing argument 5 of ‘get_user_pages_remote’ makes pointer from integer without a cast [-Wint-conversion]
164 | return get_user_pages_remote(tsk, mm, start, nr_pages, flags,
| ^

| |
| unsigned int
./include/linux/mm.h:2399:66: note: expected ‘struct page **’ but argument is of type ‘unsigned int’
2399 | unsigned int gup_flags, struct page **pages,
| ^
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:165:45: error: passing argument 6 of ‘get_user_pages_remote’ from incompatible pointer type [-Werror=incompatible-pointer-types]
165 | pages, vmas);
| ^

| |
| struct page **
./include/linux/mm.h:2400:33: note: expected ‘int *’ but argument is of type ‘struct page **’
2400 | int *locked);
| ~^~
/var/lib/dkms/nvidia/390.157/build/common/inc/nv-mm.h:164:23: error: too many arguments to function ‘get_user_pages_remote’
164 | return get_user_pages_remote(tsk, mm, start, nr_pages, flags,
| ^

./include/linux/mm.h:2397:6: note: declared here
2397 | long get_user_pages_remote(struct mm_struct *mm,
| ^
~~~~~~~~~~
/var/lib/dkms/nvidia/390.157/build/nvidia/nv-gpu-numa.c: In function ‘gather_memblock_ids_for_node’:
/var/lib/dkms/nvidia/390.157/build/nvidia/nv-gpu-numa.c:232:47: warning: cast between incompatible function types from ‘int (
)(struct dir_context *, const char , int, loff_t, u64, unsigned int)’ {aka ‘int ()(struct dir_context *, const char , int, long long int, long long unsigned int, unsigned int)’} to ‘bool ()(struct dir_context *, const char , int, loff_t, u64, unsigned int)’ {aka ‘_Bool ()(struct dir_context *, const char *, int, long long int, long long unsigned int, unsigned int)’} [-Wcast-function-type]
232 | nv_dir_context_t ats_ctx = { .ctx.actor = (filldir_t)filldir_get_memblock_id };
| ^
cc1: some warnings being treated as errors
cc1: some warnings being treated as errors
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:251: /var/lib/dkms/nvidia/390.157/build/nvidia/nv-gpu-numa.o] Error 1
make[3]: *** Waiting for unfinished jobs…
make[3]: *** [scripts/Makefile.build:251: /var/lib/dkms/nvidia/390.157/build/nvidia/nv-instance.o] Error 1
make[3]: *** [scripts/Makefile.build:251: /var/lib/dkms/nvidia/390.157/build/nvidia/nv-frontend.o] Error 1
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:251: /var/lib/dkms/nvidia/390.157/build/nvidia/nv.o] Error 1
make[2]: *** [/usr/src/linux-headers-6.5.0-14-generic/Makefile:2037: /var/lib/dkms/nvidia/390.157/build] Error 2
make[1]: *** [Makefile:234: __sub-make] Error 2
make[1]: Leaving directory ‘/usr/src/linux-headers-6.5.0-14-generic’
make: *** [Makefile:81: modules] Error 2

If I posted in wrong place I’m sorry, I’m new. Also i have tried installing from ubuntu drivers.

Hello @conner.webber000, welcome to the NVIDIA developer forums.

The NVIDIA GT430 was a Fermi based and has long since been deprecated, meaning there is no current driver support for it, as you can see with the attempt to install the v390 driver. As such new kernels like in your case 6.5 are not compatible with the old drivers.

You might be able to run the device with an older Ubuntu/kernel version and the 390 legacy driver. You might want to rather use the original .run file directly downloaded from NVIDIA.

Thanks.