Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
491 views
in Technique[技术] by (71.8m points)

linux - UTS_RELEASE shows wrong version

Currently I'm using linux-5.4.0-60-generic, and if I cat utsrelease.h I get the following.

$ cat /usr/src/linux-headers-5.4.0-60-generic/include/generated/utsrelease.h
#define UTS_RELEASE "5.4.78"

This is making it very difficult to install any kernel module, because it compiles with vermagic set to 5.4.78, and uname -r returns 5.4.0-60-generic. To fix utsrelease.h I can download the sources and recompile the kernel with a fix in Makefile to correct the version, but compiling the kernel takes a lot of time, and it goes back to that wrong UTS_RELEASE when I upgrade the kernel.

Am I messing up some step, or is this working as intended?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...