简体   繁体   English

尝试安装 Linux 内核头文件但出现错误

[英]Trying to install Linux kernel headers but getting an error

I am trying to follow the NVIDIA Driver Installation Quickstart Guide:我正在尝试遵循 NVIDIA 驱动程序安装快速入门指南:

https://docs.nvidia.com/datacenter/tesla/tesla-installation-notes/index.html https://docs.nvidia.com/datacenter/tesla/tesla-installation-notes/index.html

The first instruction says:第一条指令说:

The kernel headers and development packages for the currently running kernel can be installed with:$ sudo apt-get install linux-headers-$(uname -r)当前运行的内核的内核头文件和开发包可以通过以下方式安装:$ sudo apt-get install linux-headers-$(uname -r)

When I try this I get the error:当我尝试这个时,我收到错误:

Unable to locate package linux-headers-4.9.140-tegra
Couldn't find any package by glob 'linux-headers-4.9.140-tegra'
Couldn't find any package by regex 'linux-headers-4.9.140-tegra'

I'm not sure how to proceed.我不知道如何继续。

Your version of Ubuntu is running a tegra kernel.您的 Ubuntu 版本正在运行 tegra 内核。 The headers for this kernel are not in the Ubuntu repositories (or any other repositories you may have enabled).此内核的头文件不在 Ubuntu 存储库(或您可能已启用的任何其他存储库)中。 You will probably need to these before proceeding with the driver installation.在继续安装驱动程序之前,您可能需要这些。

However.然而。 NVIDIA Tegra is a small SoC (system on chip) processor AFAIK. NVIDIA Tegra 是一款小型 SoC(片上系统)处理器 AFAIK。 Like a Jetson Nano or something.像 Jetson Nano 之类的。 The instructions you linked are for NVIDIA Tesla GPUs which are data center GPUs.您链接的说明适用于作为数据中心 GPU 的 NVIDIA Tesla GPU。 Again, AFAIK.再次,AFAIK。 Check you are following the right instructions.检查您是否遵循了正确的说明。 Also, in those instructions, look at: 'Section 1.1 - Pre-installation requirements', and this pre install checklist .此外,在这些说明中,请查看:“第 1.1 节 - 预安装要求”和此预安装清单

Here is a list of all the different kernel headers in the Ubuntu 20.04 repos (not the same I know).是 Ubuntu 20.04 存储库中所有不同内核头文件的列表(我知道的不一样)。 tegra is not there. tegra 不在那里。

Before you can install the appropriate kernel headers, update your packages index.在您可以安装适当的内核头文件之前,请更新您的软件包索引。 First use the update command.首先使用更新命令。

sudo apt-get update

then run sudo apt-get install linux-headers-$(uname -r) again.然后再次运行sudo apt-get install linux-headers-$(uname -r) If this doesn't work, try out如果这不起作用,请尝试

sudo apt-get install linux-headers-generic

which should install the right version.应该安装正确的版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 尝试安装内核头文件,但似乎不匹配 - Trying to install kernel headers but there seems to be a mismatch 为什么在尝试安装Linux内核模块时出现“不允许操作”的提示? - Why am I getting “operation not permitted” when trying to install a Linux kernel module? Linux - Yum 安装 GCC - 缺少内核头文件 - Linux - Yum Install GCC - Missing Kernel-headers 让 OpenCV 接头在安装到 Linux 时正常工作 - Getting OpenCV headers to work correctly on install in Linux Linux内核头文件的组织 - Linux kernel headers' organization 尝试在centos8上使用kickstart文件安装VM时不断收到kernel错误 - Keep getting kernel error when trying to install VM using kickstart file on centos8 当我尝试 gcc make linux-headers-`uname -r` 时,我遇到了错误 - While I'm trying gcc make linux-headers-`uname -r` I'm getting error Linux Redhat内核头文件 - Linux redhat kernel-headers 无法 :make install: Linux 内核模块 SSL 错误 - Failied to :make install: Linux kernel module SSL error 在尝试将Oracle SQL安装到Linux服务器上时,这个错误意味着什么? - What does this error mean that I'm getting whilst trying to install Oracle SQL onto a Linux server?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM