View Issue Details

IDProjectCategoryView StatusLast Update
0008775Kali LinuxKali Package Bugpublic2024-07-24 20:44
Reporterbaraka983 Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status newResolutionopen 
Summary0008775: NEED HELP with linux-headers-6.8.11-amd64
Description

Hello i need help when I update my Kali I get this error message
My Kali ver is Linux kali 6.6.15-amd64 0000001 SMP PREEMPT_DYNAMIC Kali 6.6.15-2kali1 (2024-05-17) x86_64 GNU/Linux

Get:1 https://http.kali.org/kali kali-rolling/main amd64 bpftool amd64 7.4.0+6.8.11-1kali2 [1,083 kB]
Get:2 https://kali.download/kali kali-rolling/main amd64 linux-headers-6.8.11-common all 6.8.11-1kali2 [10.4 MB]
Get:6 https://kali.darklab.sh/kali kali-rolling/main amd64 linux-headers-amd64 amd64 6.8.11-1kali2 [1,188 B]
Get:5 https://kali.download/kali kali-rolling/main amd64 linux-headers-6.8.11-amd64 amd64 6.8.11-1kali2 [1,822 kB]
Get:7 https://kali.download/kali kali-rolling/main amd64 linux-image-amd64 amd64 6.8.11-1kali2 [1,488 B]
Get:3 https://kali.mirror.rafal.ca/kali kali-rolling/main amd64 linux-image-6.8.11-amd64 amd64 6.8.11-1kali2 [99.7 MB]
Get:4 https://mirrors.jevincanders.net/kali kali-rolling/main amd64 linux-kbuild-6.8.11 amd64 6.8.11-1kali2 [1,086 kB]
Get:9 https://mirrors.jevincanders.net/kali kali-rolling/main amd64 python3-mistune all 3.0.2-1 [33.1 kB]
Get:8 https://kali.mirror.rafal.ca/kali kali-rolling/main amd64 linux-libc-dev all 6.8.11-1kali2 [2,325 kB]
Fetched 116 MB in 3s (34.1 MB/s)
Reading changelogs... Done
(Reading database ... 1086777 files and directories currently installed.)
Preparing to unpack .../0-bpftool_7.4.0+6.8.11-1kali2_amd64.deb ...
Unpacking bpftool (7.4.0+6.8.11-1kali2) over (7.3.0+6.6.15-2kali1+b1) ...
Selecting previously unselected package linux-headers-6.8.11-common.
Preparing to unpack .../1-linux-headers-6.8.11-common_6.8.11-1kali2_all.deb ...
Unpacking linux-headers-6.8.11-common (6.8.11-1kali2) ...
Selecting previously unselected package linux-image-6.8.11-amd64.
Preparing to unpack .../2-linux-image-6.8.11-amd64_6.8.11-1kali2_amd64.deb ...
Unpacking linux-image-6.8.11-amd64 (6.8.11-1kali2) ...
Selecting previously unselected package linux-kbuild-6.8.11.
Preparing to unpack .../3-linux-kbuild-6.8.11_6.8.11-1kali2_amd64.deb ...
Unpacking linux-kbuild-6.8.11 (6.8.11-1kali2) ...
Selecting previously unselected package linux-headers-6.8.11-amd64.
Preparing to unpack .../4-linux-headers-6.8.11-amd64_6.8.11-1kali2_amd64.deb ...
Unpacking linux-headers-6.8.11-amd64 (6.8.11-1kali2) ...
Preparing to unpack .../5-linux-headers-amd64_6.8.11-1kali2_amd64.deb ...
Unpacking linux-headers-amd64 (6.8.11-1kali2) over (6.6.15-2kali1+b1) ...
Preparing to unpack .../6-linux-image-amd64_6.8.11-1kali2_amd64.deb ...
Unpacking linux-image-amd64 (6.8.11-1kali2) over (6.6.15-2kali1+b1) ...
Preparing to unpack .../7-linux-libc-dev_6.8.11-1kali2_all.deb ...
Unpacking linux-libc-dev (6.8.11-1kali2) over (6.6.15-2kali1) ...
Selecting previously unselected package python3-mistune.
Preparing to unpack .../8-python3-mistune_3.0.2-1_all.deb ...
Unpacking python3-mistune (3.0.2-1) ...
Setting up bpftool (7.4.0+6.8.11-1kali2) ...
Setting up linux-libc-dev (6.8.11-1kali2) ...
Setting up linux-image-6.8.11-amd64 (6.8.11-1kali2) ...
I: /vmlinuz.old is now a symlink to boot/vmlinuz-6.6.15-amd64
I: /initrd.img.old is now a symlink to boot/initrd.img-6.6.15-amd64
I: /vmlinuz is now a symlink to boot/vmlinuz-6.8.11-amd64
I: /initrd.img is now a symlink to boot/initrd.img-6.8.11-amd64
/etc/kernel/postinst.d/dkms:
dkms: running auto installation service for kernel 6.8.11-amd64.
Sign command: /lib/modules/6.8.11-amd64/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Building module:
Cleaning build area...
Building module(s)......(bad exit status: 2)
Failed command:
/usr/src/realtek-rtl8814au-5.8.5.1~git20231211.866a910/dkms-make.sh
Error! Bad return status for module build on kernel: 6.8.11-amd64 (x86_64)
Consult /var/lib/dkms/realtek-rtl8814au/5.8.5.1~git20231211.866a910/build/make.log for more information.
Sign command: /lib/modules/6.8.11-amd64/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Building module:
Cleaning build area...
Building module(s).......(bad exit status: 2)
Failed command:
'make' -j6 KVER=6.8.11-amd64 KSRC=/lib/modules/6.8.11-amd64/build
Error! Bad return status for module build on kernel: 6.8.11-amd64 (x86_64)
Consult /var/lib/dkms/realtek-rtl88xxau/5.6.4.2~git20231117.a3e0c0b/build/make.log for more information.
Sign command: /lib/modules/6.8.11-amd64/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Building module:
Cleaning build area...
Building module(s)...
Signing module /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.4/build/xtrx.ko
Cleaning build area...

xtrx.ko.xz:
Running module version sanity check.

  • Original module
    • No original module exists within this kernel
  • Installation
    • Installing to /lib/modules/6.8.11-amd64/updates/dkms/
      depmod....
      dkms autoinstall on 6.8.11-amd64/x86_64 succeeded for xtrx
      dkms autoinstall on 6.8.11-amd64/x86_64 failed for realtek-rtl8814au(10) realtek-rtl88xxau(10)
      Error! One or more modules failed to install during autoinstall.
      Refer to previous errors for more information.
      dkms: autoinstall for kernel: 6.8.11-amd64 failed!
      run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
      dpkg: error processing package linux-image-6.8.11-amd64 (--configure):
      installed linux-image-6.8.11-amd64 package post-installation script subprocess returned error exit status 11
      Setting up linux-headers-6.8.11-common (6.8.11-1kali2) ...
      Setting up linux-kbuild-6.8.11 (6.8.11-1kali2) ...
      Setting up python3-mistune (3.0.2-1) ...
      dpkg: dependency problems prevent configuration of linux-headers-6.8.11-amd64:
      linux-headers-6.8.11-amd64 depends on linux-image-6.8.11-amd64 (= 6.8.11-1kali2) | linux-image-6.8.11-amd64-unsigned (= 6.8.11-1kali2); however:
      Package linux-image-6.8.11-amd64 is not configured yet.
      Package linux-image-6.8.11-amd64-unsigned is not installed.

dpkg: error processing package linux-headers-6.8.11-amd64 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-headers-amd64:
linux-headers-amd64 depends on linux-headers-6.8.11-amd64 (= 6.8.11-1kali2); however:
Package linux-headers-6.8.11-amd64 is not configured yet.

dpkg: error processing package linux-headers-amd64 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-amd64:
linux-image-amd64 depends on linux-image-6.8.11-amd64 (= 6.8.11-1kali2); however:
Package linux-image-6.8.11-amd64 is not configured yet.

dpkg: error processing package linux-image-amd64 (--configure):
dependency problems - leaving unconfigured
Processing triggers for kali-menu (2023.4.7) ...
Processing triggers for man-db (2.12.1-1) ...
Errors were encountered while processing:
linux-image-6.8.11-amd64
linux-headers-6.8.11-amd64
linux-headers-amd64
linux-image-amd64
Error: Sub-process /usr/bin/dpkg returned an error code (1)

Thank you all :)

Activities

atdtphreaker

atdtphreaker

2024-06-11 22:15

reporter   ~0019353

***I'm experiencing the same...

Building module:
Cleaning build area...
Building module(s)................(bad exit status: 2)
Failed command:
/usr/src/realtek-rtl8814au-5.8.5.1~git20231211.866a910/dkms-make.sh
Error! Bad return status for module build on kernel: 6.8.11-amd64 (x86_64)
Consult /var/lib/dkms/realtek-rtl8814au/5.8.5.1~git20231211.866a910/build/make.log for more information.
Sign command: /lib/modules/6.8.11-amd64/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Building module:
Cleaning build area...
Building module(s)............(bad exit status: 2)
Failed command:
'make' -j4 KVER=6.8.11-amd64 KSRC=/lib/modules/6.8.11-amd64/build
Error! Bad return status for module build on kernel: 6.8.11-amd64 (x86_64)
Consult /var/lib/dkms/realtek-rtl88xxau/5.6.4.2~git20231117.a3e0c0b/build/make.log for more information.
dkms autoinstall on 6.8.11-amd64/x86_64 succeeded for xtrx
dkms autoinstall on 6.8.11-amd64/x86_64 failed for realtek-rtl8814au(10) realtek-rtl88xxau(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
dkms: autoinstall for kernel: 6.8.11-amd64 failed!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
dpkg: error processing package linux-image-6.8.11-amd64 (--configure):
installed linux-image-6.8.11-amd64 package post-installation script subprocess returned error exit status 11
dpkg: dependency problems prevent configuration of linux-headers-6.8.11-amd64:
linux-headers-6.8.11-amd64 depends on linux-image-6.8.11-amd64 (= 6.8.11-1kali2) | linux-image-6.8.11-amd64-unsigned (= 6.8.11-1kali2); however:
Package linux-image-6.8.11-amd64 is not configured yet.
Package linux-image-6.8.11-amd64-unsigned is not installed.

dpkg: error processing package linux-headers-6.8.11-amd64 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-headers-amd64:
linux-headers-amd64 depends on linux-headers-6.8.11-amd64 (= 6.8.11-1kali2); however:
Package linux-headers-6.8.11-amd64 is not configured yet.

dpkg: error processing package linux-headers-amd64 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-amd64:
linux-image-amd64 depends on linux-image-6.8.11-amd64 (= 6.8.11-1kali2); however:
Package linux-image-6.8.11-amd64 is not configured yet.

dpkg: error processing package linux-image-amd64 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-image-6.8.11-amd64
linux-headers-6.8.11-amd64
linux-headers-amd64
linux-image-amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)

I appreciate your time, thank you+++

atdtphreaker

atdtphreaker

2024-06-12 00:05

reporter   ~0019354

This is the message I receive upon startup... (screenshot)...

Everything comes to a halt.

Thanks!

promote9612

promote9612

2024-06-13 06:47

reporter   ~0019357

yes same problem should we change the linux amd installation or wait so they fi it?

atdtphreaker

atdtphreaker

2024-06-13 08:22

reporter   ~0019362

Okay, the issue was "/usr/src/realtek-rtl8814au-5.8.5.1~git20231211.866a910/dkms-make.sh", clearly.

It's been rectified via latest upgrade.

sudo apt-get clean && sudo apt-get update && sudo apt-get upgrade

reboot

Thank you, I appreciate your time!

promote9612

promote9612

2024-06-13 08:25

reporter   ~0019363

i found this i think it can help https://www.kernel.org/ there is new release 6.9.4

promote9612

promote9612

2024-06-13 09:21

reporter   ~0019364

it worked for me i fix it try this:

1st open terminal go to kali-tweaks
then network repos > clouflare > https then ok and when it finish use sudo apt-get update

Gamb1t

Gamb1t

2024-06-13 17:59

manager   ~0019366

@promote9612 I made your comments public as you were trying to talk to atdtphreaker. Be sure to uncheck the private box so others can see your messages

DarkHat

DarkHat

2024-06-14 14:02

reporter   ~0019374

this works for me :- (sorry for a lengthy answer please read carefully)
! first backup your data and your essential drivers(backup is very important because in trouble and bad time may be you cannot able to do it if you use kali as dual boot or primary)
if you restart it and found error then you can:-
poweroff your machine (by button or unplug the cord )

strart your machine go to > advanced options > select kali 6.6.15 (your machine starts) >(now you can backup if not taken ).
try :- goto 'kali tweaks' then 'network repo.' then select 'mirrors:cloudflare' and 'protocol:HTTPS' and then 'apply' .
after above ,
open terminal and type 'sudo apt-get update' , 'sudo apt upgrade' then you get error like this:- bad exit status 2,sub procss /usr/bin/dpkg.... etc etc..
now figure out which package intruppt with linux headers and linux images
like here (look at raw output provided below) 'realtek-rtl88xxau' is cause of problem. (hey! may be your error different if yes then you need to remove that package ).
this is the error so we need to fully remove it
for remove :-
type command 'sudo su'
then 'locate package_name ( put stars before and after package_name and of course you need to replace package_name with your package which cause error)
!!! now before removing put some common sense and do not remove any other necessary or system pacakges (you can also copy file which you delete with their path so in any trouble you can easily revert the process)
now start copying the path of repos or packages and search it in your file manager ,, you can also use cli interface but gui is more simple.
after removing
'dpkg --configure -a' and 'apt upgrade' if error remains same reboot and try 'dpkg --configure -a' and 'apt upgrade'
if you cannot able to boot any error show then you can try:-
poweroff your machine (by button or unplug the cord )
strart your machine go to > advanced options > select kali 6.6.15 (your machine starts)
and try above commands with root privilage.
now error vanish.
and reboot normaly and type 'hostnamectl' (in terminal)
you greeted with
"Kernel: Linux 6.8.11-amd64" and other stuff

(raw output) for reference may be somethings different.:-
"Building module:
Cleaning build area...
Building module(s)................(bad exit status: 2)
Failed command:
/usr/src/realtek-rtl8814au-5.8.5.1~git20231211.866a910/dkms-make.sh
Error! Bad return status for module build on kernel: 6.8.11-amd64 (x86_64)
Consult /var/lib/dkms/realtek-rtl8814au/5.8.5.1~git20231211.866a910/build/make.log for more information.
Sign command: /lib/modules/6.8.11-amd64/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Building module:
Cleaning build area...
Building module(s)............(bad exit status: 2)
Failed command:
(cutted for short answer)etc etc

Kalimappa

Kalimappa

2024-07-16 21:50

reporter   ~0019536

I also got the same errors, except that the log file was for rt8188fu wifi driver. I tried to purge the linux-headers-6.8.11-amd64 and related files through sudo apt --purge, but still failed. Then, using a method suggested on askubuntu, I tried aptitude and synaptic to delete the problem header files, and the synaptic one worked.

f2po

f2po

2024-07-24 19:47

reporter   ~0019569

Last edited: 2024-07-24 20:44

Hi,
I fix the issue by installing the following pack which was missing in my release

----> sudo apt-get install linux-headers-6.8.11-amd64

I had also an issue with dkms package ( apt realtek-rtl88xxau-dkms) i use the following commande the solve the issue

-->>sudo dkms --force install realtek-rtl88xxau/5.6.4.2\~git20240510.b44d288

and after that i use the commande

---> sudo dpkg --configure -a

IT Was really strange that DKMS was in conflict with the Headers for this specific driver pushed from git. Maybe a backdor lol

follow me on X : @F2po

Issue History

Date Modified Username Field Change
2024-06-11 20:52 baraka983 New Issue
2024-06-11 22:15 atdtphreaker Note Added: 0019353
2024-06-12 00:05 atdtphreaker Note Added: 0019354
2024-06-12 00:05 atdtphreaker File Added: kali linux-starup-screenshot-IMG_0095_1200x.jpg
2024-06-13 06:47 promote9612 Note Added: 0019357
2024-06-13 08:22 atdtphreaker Note Added: 0019362
2024-06-13 08:25 promote9612 Note Added: 0019363
2024-06-13 09:21 promote9612 Note Added: 0019364
2024-06-13 17:57 Gamb1t Note View State: 0019364: public
2024-06-13 17:58 Gamb1t Note View State: 0019363: public
2024-06-13 17:58 Gamb1t Note View State: 0019357: public
2024-06-13 17:59 Gamb1t Note Added: 0019366
2024-06-14 14:02 DarkHat Note Added: 0019374
2024-07-16 21:50 Kalimappa Note Added: 0019536
2024-07-24 19:47 f2po Note Added: 0019569
2024-07-24 19:49 f2po Note Edited: 0019569
2024-07-24 19:49 f2po Note Edited: 0019569
2024-07-24 19:49 f2po Note Edited: 0019569
2024-07-24 19:53 f2po Note Edited: 0019569
2024-07-24 19:53 f2po Note Edited: 0019569
2024-07-24 19:53 f2po Note Edited: 0019569
2024-07-24 19:54 f2po Note Edited: 0019569
2024-07-24 19:56 f2po Note Edited: 0019569
2024-07-24 20:38 f2po Note Edited: 0019569
2024-07-24 20:44 f2po Note Edited: 0019569