标签: dkms

如果有两个 dkms 模块,如何卸载它们?

我有 2 个 dkms 模块在同一版本中:

$ dkms status
rtl8812AU, 4.3.14, 4.4.0-45-generic, x86_64: installed
rtl8812AU, 4.3.14, 4.4.0-47-generic, x86_64: installed
Run Code Online (Sandbox Code Playgroud)

当我尝试dkms uninstall -m rtl8812AU -v 4.3.14卸载第二个时。第一个怎么卸载?谢谢!

uninstall dkms

7
推荐指数
2
解决办法
5万
查看次数

AX211 wifi 在 ubuntu 20.04 上工作没有希望吗?

我在我的笔记本电脑上全新安装了 ubuntu 20.04 并 apt 更新并升级到最新版本。

$ uname -r
5.13.0-39-generic
Run Code Online (Sandbox Code Playgroud)

到目前为止,BT 工作正常,但现在只有 wifi 无法工作。
我检查如下

$ lspci -nnk | grep 0280 -A3
0000:00:14.3 Network controller [0280]: Intel Corporation Device [8086:51f0] (rev 01)
    DeviceName: Onboard - Ethernet
    Subsystem: Intel Corporation Device [8086:0094]
    Kernel modules: iwlwifi
Run Code Online (Sandbox Code Playgroud)

网络适​​配器显示未认领

$ sudo lshw -C network
[sudo] password for khyou: 
  *-network UNCLAIMED       
       description: Network controller
       product: Intel Corporation
       vendor: Intel Corporation
       physical id: 14.3
       bus info: pci@0000:00:14.3
       version: 01
       width: 64 bits
       clock: 33MHz
       capabilities: pm …
Run Code Online (Sandbox Code Playgroud)

dkms drivers iwlwifi 20.04

7
推荐指数
1
解决办法
2万
查看次数

AMD Catalyst 驱动程序安装程序在 DKMS 上失败

我正在按照这些说明安装fglrx驱动程序。当我运行时,sudo sh amd-driver-12-6-x86_64.run它告诉我 fglrx 已经安装;即使我运行了删除它的命令。所以我--force无论如何都添加了该选项并通过了安装程序;这是输出:

Created directory fglrx-install.rUnXwA
Verifying archive integrity... All good.
Uncompressing AMD Catalyst(TM) Proprietary Driver-8.98...
=====================================================================
 AMD Catalyst(TM) Proprietary Driver Installer/Packager 
=====================================================================
Detected configuration:
Architecture: x86_64 (64-bit)
X Server: X.Org 6.9 or later 64-bit
loki_setup: directory: (null)
DKMS part of installation failed.  Please refer to /usr/share/ati/fglrx-install.log for details
Removing temporary directory: fglrx-install.rUnXwA
Run Code Online (Sandbox Code Playgroud)

这里是/usr/share/ati/fglrx-install.log

Check if system has the tools required for installation.
fglrx installation is being forced. …
Run Code Online (Sandbox Code Playgroud)

kernel ati fglrx dkms

6
推荐指数
2
解决办法
2万
查看次数

如何并行化大型 dkms 包的 dpkg?

许多作为 apt 软件包安装的 dkms 模块(例如zfs-dkmsopenafs-modules-dkms)需要大量时间来构建(> 5 分钟),并且在其处理的大部分部分中不使用任何并行化(至少在 CPU 监视器中无法识别) 。在进程的最后一部分(例如,最后 10% 的时间) MAKEFLAGS,获得拾取(所有 CPU 核心的 100% 使用率,就像其他构建期间一样)。有没有办法在整个运行中使用并行化?构建缓慢部分的输出是.make -j16zfs-dkmsbuilding initial module for <kernel version>

使用dpkg1.17.13ubuntu1 运行 Ubuntu 14.04 amd64。

apt dpkg compiling dkms

6
推荐指数
1
解决办法
1028
查看次数

尝试为 HFS+ 安装 Paragon ufsd 专业驱动程序时,内核配置无效错误

简短的问题:

在运行 Paragon UFSD 驱动程序的 install.sh Skript 时,我收到错误消息:

 ERROR: Kernel configuration is invalid."; 
\include/generated/autoconf.h or include/config/auto.conf are missing."$
 Run 'make oldconfig && make prepare' on kernel src to fix it.";      \
Run Code Online (Sandbox Code Playgroud)

我如何运行“make oldconfig && make prepare”,这有意义吗?

免责声明:

我知道这个问题是在 NVIDIA 驱动程序的上下文中被问到的,但它是通过建议其他安装 NVIDIA 的方法而不是告诉如何运行 make 命令来回答的(安装 NVIDIA 驱动程序:Error Run 'make oldconfig && make prepare' on kernel src to fix它。”)。在另一个问题中,问题已解决,但提出问题的人不记得是如何解决的(“错误:内核配置无效”)。

我的问题的背景:

我现在尝试了几天来安装 Paragon-147-PRE_NTFS_Linux_9.4_Pro UFSD 驱动程序,以获得完整的读写 NTFS 和 HFS+ 文件系统支持。驱动程序正式支持 Ubuntu 16.04LTS。在处理完我的旧 Linux 安装后,我使用全新安装的 Ubuntu 16.04.2LTS(从 UBUNTU 网站下载),除了标准安装之外什么都没有,尽管我在三重引导系统(Windows7、elementary、Ubuntu)上运行它,如果这很重要。

我安装了 build-essentials、dkms …

compiling kernel dkms drivers

6
推荐指数
2
解决办法
3万
查看次数

自动签署新的内核模块

为了解决整个“无未签名模块”问题,我创建了一个 MOK,以便我可以对第三方模块进行签名。我有一个脚本,可用于对模块进行集体签名,但我想通过在安装新模块时自动调用此脚本来简化流程。我现在拥有的所有第三方模块都是通过 DKMS 构建的,我认为这方面不会很快发生变化。

所以,问题是:当 DKMS 完成构建模块时,我将如何自动调用我的签名脚本?

kernel dkms secure-boot

6
推荐指数
1
解决办法
1103
查看次数

通用内核中的 ZFS 支持是否需要 zfs-dkms?

我改编了 ZoL 指南,将 Ubuntu Server 14.04 放在 ZFS 根目录上,用于 18.04 Bionic Beaver 和桌面安装:http : //vlog.averyfreeman.com/doku.php/ubuntu.18.04.desktop.on.zfs

我正在努力确保我拥有的所有信息都是正确的,但我遇到了几个我不知道如何回答的问题:

Ubuntu 中对通用内核的 ZFS 支持是否需要该zfs-dkms软件包,还是就zfs-initramfs足够了?(Ubuntu 中的通用内核是否具有 kABI 扩展?)

如果有人真的遵循它,我希望他们在内核升级后有一个可引导的系统!:)

另外,有没有办法防止# zfs import -f rpool在启动更新的内核后必须调用和重新启动?

kernel initramfs dkms zfs

6
推荐指数
1
解决办法
1859
查看次数

dpkg 的重新配置问题

我在使用 apt 安装软件包时遇到了一些问题。终端在安装过程中挂断了,除了关闭终端,我别无选择。然而,问题是我似乎无法解决由此引起的问题。

作为典型,我得到:

E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
Run Code Online (Sandbox Code Playgroud)

这让我无处可去,我被锁在外面,直到我跑sudo dpkg --configure -a。说得通。但是,这个过程吐出以下内容,然后挂在最后一行:

Setting up virtualbox-dkms (5.2.10-dfsg-6) ...
Removing old virtualbox-5.2.10 DKMS files...

-------- Uninstall Beginning --------
Module:  virtualbox
Version: 5.2.10
Kernel:  4.15.0-23-generic (x86_64)
-------------------------------------

Status: This module version was INACTIVE for this kernel.
depmod...

DKMS: uninstall completed.

------------------------------
Deleting module version: 5.2.10
completely from the DKMS tree. …
Run Code Online (Sandbox Code Playgroud)

package-management apt dpkg virtualbox dkms

6
推荐指数
2
解决办法
1520
查看次数

dkms 失败,因为 gcc 版本比用于编译内核的版本新

我有一个用 dkms 注册的内核模块。当最近的升级使我的内核升级到 4.15.0-50 时,我开始从 dkms 收到以下错误。显然内核 4.15.0-50 是用 gcc 7.3.0 版编译的,但升级的一部分涉及安装新版本的 gcc (7.4.0),这导致 dkms 失败。gcc 7.3 在我的系统上不再可用。除了7.4之外,如何安装gcc 7.3,甚至将7.4降级到7.3?

DKMS make.log for nvidia-430.14 for kernel 4.15.0-50-generic (x86_64)
Tue May 14 17:08:12 CDT 2019
make[1]: Entering directory '/usr/src/linux-headers-4.15.0-50-generic'
Makefile:976: "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel"
  SYMLINK /var/lib/dkms/nvidia/430.14/build/nvidia/nv-kernel.o
  SYMLINK /var/lib/dkms/nvidia/430.14/build/nvidia-modeset/nv-modeset-kernel.o

Compiler version check failed:

The major and minor number of the compiler used to
compile the kernel:

gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)

does not match the compiler used here: …
Run Code Online (Sandbox Code Playgroud)

upgrade package-management dkms

6
推荐指数
1
解决办法
8662
查看次数

AMD GPU-dkms 未在内核 5.8/5.8-xanmod 中构建

我最近购买了配备 Ryzen 5 4600H 和专用 NVIDIA gtx 1650Ti 的 ASUS TUF Gaming FA506IH。我不太喜欢玩游戏,所以我安装了 Ubuntu 20.04 并考虑在我需要之前不使用 Nvidia 驱动程序(因为与较新内核的兼容性问题),而只使用集成的 Radeon 显卡。但是,我注意到 5.4 内核不支持较新的 Radeon 显卡,因此我安装了主线 5.8 内核,在安装 amdgpu 驱动程序后,它似乎工作正常,但我收到 dkms 错误,说内核 5.8 不支持它. 我也试过 xanmod kernel 5.8,但还是同样的问题。这是 amdgpu 尝试在此内核上构建其包时收到的错误消息。

Setting up amdgpu-dkms (1:5.6.0.15-1098277) ...
Removing old amdgpu-5.6.0.15-1098277 DKMS files...

------------------------------
Deleting module version: 5.6.0.15-1098277
completely from the DKMS tree.
------------------------------
Done.
Loading new amdgpu-5.6.0.15-1098277 DKMS files...
Building for 5.8.16-xanmod1
Building for architecture x86_64
Building initial module for 5.8.16-xanmod1
ERROR (dkms apport): …
Run Code Online (Sandbox Code Playgroud)

kernel dkms drivers amdgpu 20.04

6
推荐指数
1
解决办法
9683
查看次数