Kali Linux(滾動)向後移植 4.4 安裝問題?

Kali Linux(滾動)向後移植 4.4 安裝問題?

我嘗試在 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 不穩定發行版創建的。)

相關內容