Quantcast
Channel: Ubuntu Forums - Installation & Upgrades
Viewing all articles
Browse latest Browse all 26379

kernel issue prevents from install anything with apt-get install

$
0
0
Hi, I am facing an issue similar to the one here : https://ubuntuforums.org/showthread.php?t=2499832
I tried to follow the instructions given, but when I did it I could not boot my machine anymore, the kernel version was 6.8.0.41
Then I booted with kernel version 6.8.0.39 and the boot was successful, I am back at the same point as the beginning : I can't install anything using apt-get install.

Here is what I get when I try :
Code:

awadmin@ProtoI9-13900E:~$ sudo apt-get install -y libavcodec-dev libavformat-dev libavutil-dev libavfilter-dev
[sudo] password for awadmin:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libavcodec-dev is already the newest version (7:6.1.1-3ubuntu5).
libavformat-dev is already the newest version (7:6.1.1-3ubuntu5).
libavutil-dev is already the newest version (7:6.1.1-3ubuntu5).
libavfilter-dev is already the newest version (7:6.1.1-3ubuntu5).
The following packages were automatically installed and are no longer required:
  debsuryorg-archive-keyring linux-headers-6.8.0-40
  linux-headers-6.8.0-40-generic linux-image-6.8.0-40-generic
  linux-modules-6.8.0-40-generic linux-modules-extra-6.8.0-40-generic
  linux-tools-6.8.0-40 linux-tools-6.8.0-40-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 54 not upgraded.
6 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-headers-6.8.0-41-generic (6.8.0-41.41) ...
/etc/kernel/header_postinst.d/dkms:
 * dkms: running auto installation service for kernel 6.8.0-41-generic
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

Building module:
Cleaning build area...
make -j32 KERNELRELEASE=6.8.0-41-generic KERNELRELEASE=6.8.0-41-generic...(bad exit status: 2)
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/desktopvideo.0.crash'
Error! Bad return status for module build on kernel: 6.8.0-41-generic (x86_64)
Consult /var/lib/dkms/blackmagic-io/12.6a15/build/make.log for more information.
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

Building module:
Cleaning build area...
make -j32 KERNELRELEASE=6.8.0-41-generic KERNELRELEASE=6.8.0-41-generic...(bad exit status: 2)
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/desktopvideo.0.crash'
Error! Bad return status for module build on kernel: 6.8.0-41-generic (x86_64)
Consult /var/lib/dkms/blackmagic/12.6a15/build/make.log for more information.
dkms autoinstall on 6.8.0-41-generic/x86_64 failed for blackmagic-io(10) blackmagic(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
 * dkms: autoinstall for kernel 6.8.0-41-generic
  ...fail!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11
dpkg: error processing package linux-headers-6.8.0-41-generic (--configure):
 installed linux-headers-6.8.0-41-generic package post-installation script subprocess returned error exit status 11
Setting up linux-image-6.8.0-41-generic (6.8.0-41.41) ...
I: /boot/initrd.img is now a symlink to initrd.img-6.8.0-41-generic
Setting up linux-image-6.8.0-40-generic (6.8.0-40.40) ...
I: /boot/initrd.img.old is now a symlink to initrd.img-6.8.0-40-generic
dpkg: dependency problems prevent configuration of linux-headers-generic:
 linux-headers-generic depends on linux-headers-6.8.0-41-generic; however:
  Package linux-headers-6.8.0-41-generic is not configured yet.

dpkg: error processing package linux-headers-generic (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Setting up linux-headers-6.8.0-40-generic (6.8.0-40.40) ...
/etc/kernel/header_postinst.d/dkms:
 * dkms: running auto installation service for kernel 6.8.0-40-generic
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

Building module:
Cleaning build area...
make -j32 KERNELRELEASE=6.8.0-40-generic KERNELRELEASE=6.8.0-40-generic...(bad exit status: 2)
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/desktopvideo.0.crash'
Error! Bad return status for module build on kernel: 6.8.0-40-generic (x86_64)
Consult /var/lib/dkms/blackmagic-io/12.6a15/build/make.log for more information.
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

Building module:
Cleaning build area...
make -j32 KERNELRELEASE=6.8.0-40-generic KERNELRELEASE=6.8.0-40-generic...(bad exit status: 2)
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/desktopvideo.0.crash'
Error! Bad return status for module build on kernel: 6.8.0-40-generic (x86_64)
Consult /var/lib/dkms/blackmagic/12.6a15/build/make.log for more information.
dkms autoinstall on 6.8.0-40-generic/x86_64 failed for blackmagic-io(10) blackmagic(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
 * dkms: autoinstall for kernel 6.8.0-40-generic
  ...fail!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11
dpkg: error processing package linux-headers-6.8.0-40-generic (--configure):
 installed linux-headers-6.8.0-40-generic package post-installation script subprocess returned error exit status 11
dpkg: dependency problems prevent configuration of linux-generic:
 linux-generic depends on linux-headers-generic (= 6.8.0-41.41); however:
  Package linux-headers-generic is not configured yet.

dpkg: error processing package linux-generic (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              Processing triggers for linux-image-6.8.0-41-generic (6.8.0-41.41) ...
/etc/kernel/postinst.d/dkms:
 * dkms: running auto installation service for kernel 6.8.0-41-generic
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

Building module:
Cleaning build area...
make -j32 KERNELRELEASE=6.8.0-41-generic KERNELRELEASE=6.8.0-41-generic...(bad exit status: 2)
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/desktopvideo.0.crash'
Error! Bad return status for module build on kernel: 6.8.0-41-generic (x86_64)
Consult /var/lib/dkms/blackmagic-io/12.6a15/build/make.log for more information.
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

Building module:
Cleaning build area...
make -j32 KERNELRELEASE=6.8.0-41-generic KERNELRELEASE=6.8.0-41-generic...(bad exit status: 2)
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/desktopvideo.0.crash'
Error! Bad return status for module build on kernel: 6.8.0-41-generic (x86_64)
Consult /var/lib/dkms/blackmagic/12.6a15/build/make.log for more information.
dkms autoinstall on 6.8.0-41-generic/x86_64 failed for blackmagic-io(10) blackmagic(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
 * dkms: autoinstall for kernel 6.8.0-41-generic
  ...fail!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
dpkg: error processing package linux-image-6.8.0-41-generic (--configure):
 installed linux-image-6.8.0-41-generic package post-installation script subprocess returned error exit status 11
No apport report written because MaxReports is reached already
                                                              Processing triggers for linux-image-6.8.0-40-generic (6.8.0-40.40) ...
/etc/kernel/postinst.d/dkms:
 * dkms: running auto installation service for kernel 6.8.0-40-generic
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

Building module:
Cleaning build area...
make -j32 KERNELRELEASE=6.8.0-40-generic KERNELRELEASE=6.8.0-40-generic...(bad exit status: 2)
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/desktopvideo.0.crash'
Error! Bad return status for module build on kernel: 6.8.0-40-generic (x86_64)
Consult /var/lib/dkms/blackmagic-io/12.6a15/build/make.log for more information.
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der

Building module:
Cleaning build area...
make -j32 KERNELRELEASE=6.8.0-40-generic KERNELRELEASE=6.8.0-40-generic...(bad exit status: 2)
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/desktopvideo.0.crash'
Error! Bad return status for module build on kernel: 6.8.0-40-generic (x86_64)
Consult /var/lib/dkms/blackmagic/12.6a15/build/make.log for more information.
dkms autoinstall on 6.8.0-40-generic/x86_64 failed for blackmagic-io(10) blackmagic(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
 * dkms: autoinstall for kernel 6.8.0-40-generic
  ...fail!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
dpkg: error processing package linux-image-6.8.0-40-generic (--configure):
 installed linux-image-6.8.0-40-generic package post-installation script subprocess returned error exit status 11
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 linux-headers-6.8.0-41-generic
 linux-headers-generic
 linux-headers-6.8.0-40-generic
 linux-generic
 linux-image-6.8.0-41-generic
 linux-image-6.8.0-40-generic
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)

On my previous try (on kernel 6.8.0.41 before the reboot fail), I only did this, accordingly to the issue https://ubuntuforums.org/showthread.php?t=2499832
sudo rm -rf /var/lib/dkms/blackmagic/12.6a15/source/dkms.conf

Can please anyone take a look and help me out ?

Viewing all articles
Browse latest Browse all 26379

Trending Articles