安装编译的 deb 文件失败

安装编译的 deb 文件失败

我有一台 Ubuntu 服务器 20.04 LT,我们使用 IBM TSM 客户端进行备份。此 TSM 客户端安装的一部分是组件“filepath”,您可以获得该组件的源代码,但必须对其进行编译。(TIVsm-filepath-source.tar.gz) https://www.ibm.com/support/knowledg...x86client.html

编译过程没有任何错误,我得到了一个有效的 .deb 文件。当我尝试安装这个编译好的 .deb 文件时,问题就开始了。这似乎是旧版本的内核头文件的问题,但我不知道如何解决它。

以下是完成的步骤和我得到的错误:

root@ehrambafiles05:/home/zziroot/install/linux86_DEB/jbb_gpl# uname -a
Linux ehrambafiles05 5.4.0-53-generic #59-Ubuntu SMP Wed Oct 21 09:38:44 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
root@ehrambafiles05:/home/zziroot/install/linux86_DEB/jbb_gpl# uname -r
5.4.0-53-generic
root@ehrambafiles05:/home/zziroot/install/linux86_DEB/jbb_gpl# make RELNUM=8.1.10-0 deb
Make Module:filepath Version:8.1.10-0 Flags:-g -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 -D_KERNEL -D__SMP__ -D_REENTRANT -D_x86_64
make -C /lib/modules/5.4.0-53-generic/build M=/home/zziroot/install/linux86_DEB/jbb_gpl modules
make[1]: Entering directory '/usr/src/linux-headers-5.4.0-53-generic'
CC [M] /home/zziroot/install/linux86_DEB/jbb_gpl/audit.o
CC [M] /home/zziroot/install/linux86_DEB/jbb_gpl/error.o
CC [M] /home/zziroot/install/linux86_DEB/jbb_gpl/hook.o
CC [M] /home/zziroot/install/linux86_DEB/jbb_gpl/hash.o
CC [M] /home/zziroot/install/linux86_DEB/jbb_gpl/ir.o
CC [M] /home/zziroot/install/linux86_DEB/jbb_gpl/jbb.o
CC [M] /home/zziroot/install/linux86_DEB/jbb_gpl/log.o
CC [M] /home/zziroot/install/linux86_DEB/jbb_gpl/mem.o
CC [M] /home/zziroot/install/linux86_DEB/jbb_gpl/pf.o
CC [M] /home/zziroot/install/linux86_DEB/jbb_gpl/str_supp.o
CC [M] /home/zziroot/install/linux86_DEB/jbb_gpl/trace.o
CC [M] /home/zziroot/install/linux86_DEB/jbb_gpl/watch.o
CC [M] /home/zziroot/install/linux86_DEB/jbb_gpl/xml.o
LD [M] /home/zziroot/install/linux86_DEB/jbb_gpl/filepath.o
Building modules, stage 2.
MODPOST 1 modules
LD [M] /home/zziroot/install/linux86_DEB/jbb_gpl/filepath.ko
make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-53-generic'
sh makedeb.sh 8.1.10-0
dpkg-deb: building package 'tivsm-filepath' in 'tivsm-filepath-8.1.10-0.deb'.
root@ehrambafiles05:/home/zziroot/install/linux86_DEB/jbb_gpl#
-rw-r--r-- 1 root root 202556 Nov 13 14:56 tivsm-filepath-8.1.10-0.deb


root@ehrambafiles05:/home/zziroot/install/linux86_DEB# dpkg -i jbb_gpl/tivsm-filepath-8.1.10-0.deb
Selecting previously unselected package tivsm-filepath.
(Reading database ... 146651 files and directories currently installed.)
Preparing to unpack .../tivsm-filepath-8.1.10-0.deb ...
Unpacking tivsm-filepath (8.1.10-0) ...
Setting up tivsm-filepath (8.1.10-0) ...
insmod: ERROR: could not insert module filepath.ko: Invalid module format
ERROR: Failed to start filepath with error 1
root@ehrambafiles05:/home/zziroot/install/linux86_DEB#


root@ehrambafiles05:/home/zziroot/install/linux86_DEB# /etc/init.d/filepath start
insmod: ERROR: could not insert module filepath.ko: Invalid module format
root@ehrambafiles05:/home/zziroot/install/linux86_DEB#

系统日志错误:

Nov 13 15:17:55 ehrambafiles05 kernel: [ 2219.283543] filepath: version magic '5.4.0-52-generic SMP mod_unload ' should be '5.4.0-53-generic SMP mod_unload '

任何帮助都将非常感激。

问候,克莱门

答案1

问题出在源代码上。它与内核 v5.4.x 不兼容。IBM 为我提供了最新内核的新代码,现在我没有任何错误。

相关内容