sh: 1: dkms: not found
时间: 2023-08-18 21:28:16 浏览: 945
这个错误提示表明你的系统中没有安装 dkms 工具。dkms是一个在Linux系统中管理内核模块的工具,如果你需要在系统中编译和安装第三方内核模块,则需要安装dkms。
你可以通过以下命令来安装dkms:
```
sudo apt-get update
sudo apt-get install dkms
```
这将会更新软件源并安装dkms工具。在安装完成后,你可以再次运行你的命令,看看是否还会出现相同的错误提示。
相关问题
dkms: command not found
dkms是Dynamic Kernel Module Support的缩写,它是一个用于管理和构建内核模块的工具。当你在Linux系统上安装了一个内核模块时,这个模块需要与当前正在运行的内核版本兼容。如果你的内核版本发生了变化,你需要重新编译和安装这个模块,以确保它能够正常工作。
当你在终端中运行"dkms: command not found"时,这意味着你的系统上没有安装dkms工具。你可以通过以下步骤来安装dkms:
1. 打开终端。
2. 使用适用于你的Linux发行版的包管理器来安装dkms。例如,对于Ubuntu或Debian系统,你可以运行以下命令:
```
sudo apt-get install dkms
```
对于Fedora或CentOS系统,你可以运行以下命令:
```
sudo dnf install dkms
```
如果你使用的是其他Linux发行版,请参考相应的文档或使用适当的包管理器来安装dkms。
安装完成后,你应该能够在终端中成功运行dkms命令了。
About to run dkms install steps... ./dkms-install.sh: 行 15: dkms: 未找到命令 ./dkms-install.sh: 行 16: dkms: 未找到命令 ./dkms-install.sh: 行 17: dkms: 未找到命令 Finished running dkms install steps.
It seems like you're encountering an error related to the "dkms" command. The error message "dkms: command not found" indicates that the "dkms" command is not installed or not in the system's PATH.
To resolve this issue, you need to install dkms on your system. The specific steps to install dkms depend on the Linux distribution you are using.
For example, on Ubuntu or Debian-based systems, you can install dkms by running the following command:
```
sudo apt-get install dkms
```
On Fedora or CentOS-based systems, you can use the following command to install dkms:
```
sudo dnf install dkms
```
Once dkms is installed, you can run the dkms-install.sh script again and it should be able to find the "dkms" command without any issues.