我的机器上安装了 CUDA 驱动程序(Ubuntu 20.04)。它正在工作......直到它停止工作(不确定发生了什么)。所以我试图通过运行重新安装它:
sudo sh cuda_11.1.0_455.23.05_linux.run
我cuda_11.1.0_455.23.05_linux.run
从 NVIDIA 的网站下载的。但是,我收到一条错误消息,说要查看/var/log/nvidia-installer.log
以了解有关安装失败原因的更多信息。该文件包含一个非常大的错误消息,我在下面粘贴了其中的一部分。我不太确定该怎么做
In file included from /tmp/selfgz3864/NVIDIA-Linux-x86_64-455.23.05/kernel/nvidia/nv-frontend.c:13:
/tmp/selfgz3864/NVIDIA-Linux-x86_64-455.23.05/kernel/common/inc/nv-linux.h:119:10: fatal error: asm/kmap_types.h: No such file or directory
119 | #include <asm/kmap_types.h> /* page table entry lookup */
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /tmp/selfgz3864/NVIDIA-Linux-x86_64-455.23.05/kernel/nvidia/nv.c:14:
/tmp/selfgz3864/NVIDIA-Linux-x86_64-455.23.05/kernel/common/inc/nv-linux.h:119:10: fatal error: asm/kmap_types.h: No such file or directory
119 | #include <asm/kmap_types.h> /* page table entry lookup */
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:287: /tmp/selfgz3864/NVIDIA-Linux-x86_64-455.23.05/kernel/nvidia/nv-frontend.o] Error 1
In file included from /tmp/selfgz3864/NVIDIA-Linux-x86_64-455.23.05/kernel/nvidia/nv-dma.c:15:
/tmp/selfgz3864/NVIDIA-Linux-x86_64-455.23.05/kernel/common/inc/nv-linux.h:119:10: fatal error: asm/kmap_types.h: No such file or directory
119 | #include <asm/kmap_types.h> /* page table entry lookup */
| ^~~~~~~~~~~~~~~~~~
CC [M] /tmp/selfgz3864/NVIDIA-Linux-x86_64-455.23.05/kernel/nvidia/nv-vm.o
compilation terminated.
make[2]: *** [scripts/Makefile.build:287: /tmp/selfgz3864/NVIDIA-Linux-x86_64-455.23.05/kernel/nvidia/nv.o] Error 1
CC [M] /tmp/selfgz3864/NVIDIA-Linux-x86_64-455.23.05/kernel/nvidia/nv-vtophys.o
In file included from /tmp/selfgz3864/NVIDIA-Linux-x86_64-455.23.05/kernel/nvidia/nv-acpi.c:15:
/tmp/selfgz3864/NVIDIA-Linux-x86_64-455.23.05/kernel/common/inc/nv-linux.h:119:10: fatal error: asm/kmap_types.h: No such file or directory
119 | #include <asm/kmap_types.h> /* page table entry lookup */
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:287: /tmp/selfgz3864/NVIDIA-Linux-x86_64-455.23.05/kernel/nvidia/nv-dma.o] Error 1
CC [M] /tmp/selfgz3864/NVIDIA-Linux-x86_64-455.23.05/kernel/nvidia/os-interface.o
In file included from /tmp/selfgz3864/NVIDIA-Linux-x86_64-455.23.05/kernel/nvidia/nv-p2p.c:15:
/tmp/selfgz3864/NVIDIA-Linux-x86_64-455.23.05/kernel/common/inc/nv-linux.h:119:10: fatal error: asm/kmap_types.h: No such file or directory
119 | #include <asm/kmap_types.h> /* page table entry lookup */
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:287: /tmp/selfgz3864/NVIDIA-Linux-x86_64-455.23.05/kernel/nvidia/nv-acpi.o] Error 1
In file included from /tmp/selfgz3864/NVIDIA-Linux-x86_64-455.23.05/kernel/nvidia/nv-mmap.c:15:
/tmp/selfgz3864/NVIDIA-Linux-x86_64-455.23.05/kernel/common/inc/nv-linux.h:119:10: fatal error: asm/kmap_types.h: No such file or directory
119 | #include <asm/kmap_types.h> /* page table entry lookup */
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
CC [M] /tmp/selfgz3864/NVIDIA-Linux-x86_64-455.23.05/kernel/nvidia/os-mlock.o
make[2]: *** [scripts/Makefile.build:287: /tmp/selfgz3864/NVIDIA-Linux-x86_64-455.23.05/kernel/nvidia/nv-p2p.o] Error 1
make[2]: *** [scripts/Makefile.build:287: /tmp/selfgz3864/NVIDIA-Linux-x86_64-455.23.05/kernel/nvidia/nv-mmap.o] Error 1
CC [M] /tmp/selfgz3864/NVIDIA-Linux-x86_64-455.23.05/kernel/nvidia/os-pci.o
CC [M] /tmp/selfgz3864/NVIDIA-Linux-x86_64-455.23.05/kernel/nvidia/os-registry.o
In file included from /tmp/selfgz3864/NVIDIA-Linux-x86_64-455.23.05/kernel/nvidia/nv-pat.c:15:
/tmp/selfgz3864/NVIDIA-Linux-x86_64-455.23.05/kernel/common/inc/nv-linux.h:119:10: fatal error: asm/kmap_types.h: No such file or directory
119 | #include <asm/kmap_types.h> /* page table entry lookup */
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:287: /tmp/selfgz3864/NVIDIA-Linux-x86_64-455.23.05/kernel/nvidia/nv-pat.o] Error 1
In file included from /tmp/selfgz3864/NVIDIA-Linux-x86_64-455.23.05/kernel/nvidia/nv-cray.c:15:
/tmp/selfgz3864/NVIDIA-Linux-x86_64-455.23.05/kernel/common/inc/nv-linux.h:119:10: fatal error: asm/kmap_types.h: No such file or directory
119 | #include <asm/kmap_types.h> /* page table entry lookup */
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
CC [M] /tmp/selfgz3864/NVIDIA-Linux-x86_64-455.23.05/kernel/nvidia/os-usermap.o
make[2]: *** [scripts/Makefile.build:287: /tmp/selfgz3864/NVIDIA-Linux-x86_64-455.23.05/kernel/nvidia/nv-cray.o] Error 1
CC [M] /tmp/selfgz3864/NVIDIA-Linux-x86_64-455.23.05/kernel/nvidia/nv-modeset-interface.o
In file included from /tmp/selfgz3864/NVIDIA-Linux-x86_64-455.23.05/kernel/nvidia/nv-usermap.c:15:
/tmp/selfgz3864/NVIDIA-Linux-x86_64-455.23.05/kernel/common/inc/nv-linux.h:119:10: fatal error: asm/kmap_types.h: No such file or directory
119 | #include <asm/kmap_types.h> /* page table entry lookup */
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:287: /tmp/selfgz3864/NVIDIA-Linux-x86_64-455.23.05/kernel/nvidia/nv-usermap.o] Error 1
In file included from /tmp/selfgz3864/NVIDIA-Linux-x86_64-455.23.05/kernel/nvidia/nv-procfs.c:15:
/tmp/selfgz3864/NVIDIA-Linux-x86_64-455.23.05/kernel/common/inc/nv-linux.h:119:10: fatal error: asm/kmap_types.h: No such file or directory
119 | #include <asm/kmap_types.h> /* page table entry lookup */
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
CC [M] /tmp/selfgz3864/NVIDIA-Linux-x86_64-455.23.05/kernel/nvidia/nv-pci-table.o
make[2]: *** [scripts/Makefile.build:287: /tmp/selfgz3864/NVIDIA-Linux-x86_64-455.23.05/kernel/nvidia/nv-procfs.o] Error 1
CC [M] /tmp/selfgz3864/NVIDIA-Linux-x86_64-455.23.05/kernel/nvidia/nv-kthread-q.o
In file included from /tmp/selfgz3864/NVIDIA-Linux-x86_64-455.23.05/kernel/common/inc/nv-pci.h:15,
from /tmp/selfgz3864/NVIDIA-Linux-x86_64-455.23.05/kernel/nvidia/nv-pci.c:12:
/tmp/selfgz3864/NVIDIA-Linux-x86_64-455.23.05/kernel/common/inc/nv-linux.h:119:10: fatal error: asm/kmap_types.h: No such file or directory
119 | #include <asm/kmap_types.h> /* page table entry lookup */
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:287: /tmp/selfgz3864/NVIDIA-Linux-x86_64-455.23.05/kernel/nvidia/nv-pci.o] Error 1
CC [M] /tmp/selfgz3864/NVIDIA-Linux-x86_64-455.23.05/kernel/nvidia/nv-memdbg.o
In file included from /tmp/selfgz3864/NVIDIA-Linux-x86_64-455.23.05/kernel/nvidia/nv-i2c.c:17:
/tmp/selfgz3864/NVIDIA-Linux-x86_64-455.23.05/kernel/common/inc/nv-linux.h:119:10: fatal error: asm/kmap_types.h: No such file or directory
119 | #include <asm/kmap_types.h> /* page table entry lookup */
| ^~~~~~~~~~~~~~~~~~
compilation terminated.