我所面临的问题与无法加载有线模块中描述的相同,即:
sudo modprobe wireguard
modprobe: FATAL: Module wireguard not found in directory /lib/modules/4.15.0
也许,安装所有缺少的内核头也会解决这个问题。但是,调用sudo apt-get install linux-headers-$(uname -r) (我发现其他几个方面也建议这样做)将导致
[...]
0 aktualisiert, 729 neu installiert, 0 zu entfernen und 0 nicht aktualis
我在做Ubuntu 12服务器的季度更新。在apt-get更新成功后,我会得到这个错误,运行apt-获取任何内容。
Depends: linux-image-server (= 3.2.0.72.86) but it is not going to be installed
我不明白为什么这个linux映像不会被安装。该软件包存在,可下载等。
作为初学者,我正在学习编写linux内核模块。我要做的是使用DFS算法将每个任务及其子进程写入内核日志。但是当我使用Makefile编译代码时,它显示了上面的错误:
function declaration isn’t a prototype [-Werror=strict-prototypes]
struct task_struct *current;
它指出函数DFS中的task_struct关键字。这是我的密码:
# include <linux/init.h>
# include <linux/kernel.h>
# include <linux/modu