我用Debian设置了一个盒子:
# cat /etc/debian_version
9.13
# uname -a
Linux orange 4.9.0-15-amd64 #1 SMP Debian 4.9.258-1 (2021-03-08) x86_64 GNU/Linux现在,我正在尝试安装CUDA,但是我得到了一个错误:
-> Performing PREEMPT_RT check.
ERROR: The PREEMPT_RT sanity check failed:
The kernel you are installing for is a PREEMPT_RT kernel!
The NVIDIA driver does not support real-time kernels. If you
are using a stock distribution kernel, please install
a variant of this kernel that does not have the PREEMPT_RT
patch set applied; if this is a custom kernel, please
install a standard Linux kernel. Then try installing the
NVIDIA kernel module again.我所读到的实时内核,我不需要它们。所以,我的问题是:如何在不重新安装/格式化的情况下,在Debian框中安装一个非实时内核?
该服务器仅用于运行模拟(没有图形界面),只能通过SSH进行访问。我们需要CUDA把一些模拟移到GPU上。
发布于 2021-04-08 19:22:22
这应该和使用apt search linux-image-*一样简单。找到您想要的内核,然后安装它。
在撰写本文时,我从Debian测试中了解到以下内容:
$ apt search linux-image
linux-image-5.10.0-5-amd64/testing,now 5.10.24-1 amd64 [installed,automatic]
linux-image-5.10.0-5-cloud-amd64/testing 5.10.24-1 amd64
linux-image-5.10.0-5-rt-amd64/testing 5.10.24-1 amd64
linux-image-amd64/testing,now 5.10.24-1 amd64 [installed]
linux-image-cloud-amd64/testing 5.10.24-1 amd64
linux-image-rt-amd64/testing 5.10.24-1 amd64您可能已经安装了linux-image-rt-amd64。相反,您需要的是linux-image-amd64,这是相同的,但是没有PREMPT_RT补丁。linux-image-amd64是一个元包,它引入了linux的当前版本(在本例中是linux-image-5.10.0-5-amd64)。
所以基本上,就这么做吧:
sudo apt install linux-image-amd64 linux-headers-amd64我认为头包是nvidia-drivers在配置期间使用的,所以也是一个好主意。接下来,当您重新启动时,您将有机会在grub菜单中选择内核。选择其中没有-rt的那个。
如果您只有ssh访问权限,那么您可能无法访问grub启动菜单。在这种情况下,您可能需要在用grub-set-default重新启动之前设置默认值。尝试重新启动首先,有可能包将自动设置您的默认。看看/boot/grub/grub.cfg,看看menuentry行。这些将给您可以传递到grub-set-default的字符串。在我的情况下,我会用:
sudo grub-set-default 'Debian GNU/Linux, with Linux 5.10.0-5-amd64'https://unix.stackexchange.com/questions/644173
复制相似问题