我尝试在 Kali-Rolling 虚拟机上安装向后移植 4.4.2-1,但出现以下错误。我不知道出了什么问题,但我所做的是首先使用以下命令安装 linux 标头 --> #apt-get install linux-headers-$(uname -r) 一切顺利。但是当我尝试进行安装时,出现以下错误。请帮我。是否缺少任何依赖项???
make[4]: 'conf' is up to date.
boolean symbol HWMON tested for 'm'? test forced to 'n'
boolean symbol HWMON tested for 'm'? test forced to 'n'
#
# configuration written to .config
#
Building backport-include/backport/autoconf.h ... done.
CC [M] /root/Downloads/backports-4.4.2-1/compat/main.o
In file included from /root/Downloads/backports-4.4.2-1/backport-
include/backport/backport.h:7:0,
from <command-line>:0:
/usr/src/linux-headers-4.9.0-kali3-common/include/asm-generic/qrwlock.h: In
function ‘__qrwlock_write_byte’:
/root/Downloads/backports-4.4.2-1/backport-include/linux/kconfig.h:25:28:
error: implicit declaration of function ‘config_enabled’ [-Werror=implicit-
function-declaration]
#define IS_BUILTIN(option) config_enabled(option)
^
/usr/src/linux-headers-4.9.0-kali3-common/include/asm-
generic/qrwlock.h:156:26: note: in expansion of macro ‘IS_BUILTIN’
return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
^~~~~~~~~~
/usr/src/linux-headers-4.9.0-kali3-common/include/asm-generic/qrwlock.h:156:37: error: ‘CONFIG_CPU_BIG_ENDIAN’ undeclared (first use
in this function)
return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
^
/root/Downloads/backports-4.4.2-1/backport-include/linux/kconfig.h:25:43:
note: in definition of macro ‘IS_BUILTIN’
#define IS_BUILTIN(option) config_enabled(option)
^~~~~~
/usr/src/linux-headers-4.9.0-kali3-common/include/asm-
generic/qrwlock.h:156:37: note: each undeclared identifier is reported only
once for each function it appears in
return (u8 *)lock + 3 * IS_BUILTIN(CONFIG_CPU_BIG_ENDIAN);
^
/root/Downloads/backports-4.4.2-1/backport-include/linux/kconfig.h:25:43:
note: in definition of macro ‘IS_BUILTIN’
#define IS_BUILTIN(option) config_enabled(option)
^~~~~~
cc1: some warnings being treated as errors
/usr/src/linux-headers-4.9.0-kali3-common/scripts/Makefile.build:298: recipe
for target '/root/Downloads/backports-4.4.2-1/compat/main.o' failed
make[7]: *** [/root/Downloads/backports-4.4.2-1/compat/main.o] Error 1
/usr/src/linux-headers-4.9.0-kali3-common/scripts/Makefile.build:549: recipe
for target '/root/Downloads/backports-4.4.2-1/compat' failed
make[6]: *** [/root/Downloads/backports-4.4.2-1/compat] Error 2
/usr/src/linux-headers-4.9.0-kali3-common/Makefile:1507: recipe for target
'_module_/root/Downloads/backports-4.4.2-1' failed
make[5]: *** [_module_/root/Downloads/backports-4.4.2-1] Error 2
Makefile:150: recipe for target 'sub-make' failed
make[4]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make[3]: *** [all] Error 2
Makefile.build:6: recipe for target 'modules' failed
make[2]: *** [modules] Error 2
Makefile.real:88: recipe for target 'modules' failed
make[1]: *** [modules] Error 2
Makefile:40: recipe for target 'install' failed
make: *** [install] Error 2
答案1
您不需要在 kali 滚动版本上安装反向移植,反向移植通常用于基于 debian-stable 的发行版
向后移植是从下一个 Debian 版本(称为“测试”)中获取的软件包,经过调整和重新编译以在 Debian 稳定版上使用。由于该软件包也存在于下一个 Debian 版本中,因此一旦下一个 Debian 版本发布,您就可以轻松升级稳定+向后移植系统。 (在某些情况下,通常是为了安全更新,向后移植也是从 Debian 不稳定发行版创建的。)