[Kernel-packages] [Bug 2055147] Re: Kernel upgrade to 6.5.0-21-generic fails to boot

2024-02-29 Thread Matthew Ruffell
Hi Sly,

We do actually test as many dkms builds as we can. Well, mainly all the
kernel modules present in the Ubuntu archive, like evdi-dkms.

The trouble starts when you get dkms sources from other places that we
don't know about, like the DisplayLink installer that I linked above.
You, me, and other users just install it, and forget all about it, until
something breaks.

The real solution is to get rid of as many out of tree kernel modules as
we can. In the case of evdi, a few people have tried, and failed, to get
it into the mainline kernel. Upstream aren't interested in tidying it up
for inclusion, so it just rots out of tree.

Anyway, I am glad that it works for you now.

Thanks,
Matthew

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/2055147

Title:
  Kernel upgrade to 6.5.0-21-generic fails to boot

Status in linux package in Ubuntu:
  Invalid

Bug description:
  After automatic update to kernel 6.5.0-21-generic my laptop fails to
  complete booting with a kernel panic. Safe mode did not work. Booting
  to previous kernel 6.5.0-17-generic is fine.

  Errors during failed boot include:
  ```
  VFS Cannot open root device /dev/mapper/vgubuntu-root or unknown-block(0.0) 
error -6
  Please append a correct root= boot option
  Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0.0)

  ```

  Trying clean up, I see the following error with the kernel
  installation:

  ```
  sly@sigil:~$ sudo apt-get autoremove
  Reading package lists... Done
  Building dependency tree... Done
  Reading state information... Done
  0 to upgrade, 0 to newly install, 0 to remove and 6 not to upgrade.
  3 not fully installed or removed.
  After this operation, 0 B of additional disk space will be used.
  Setting up linux-headers-6.5.0-21-generic (6.5.0-21.21) ...
  /etc/kernel/header_postinst.d/dkms:
   * dkms: running auto installation service for kernel 6.5.0-21-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 -j16 KERNELRELEASE=6.5.0-21-generic all 
INCLUDEDIR=/lib/modules/6.5.0-21-generic/build/include 
KVERSION=6.5.0-21-generic DKMS_BUILD=1...(bad exit status: 2)
  ERROR (dkms apport): binary package for evdi: 1.11.0 not found
  Error! Bad return status for module build on kernel: 6.5.0-21-generic (x86_64)
  Consult /var/lib/dkms/evdi/1.11.0/build/make.log for more information.
  dkms autoinstall on 6.5.0-21-generic/x86_64 succeeded for nvidia
  dkms autoinstall on 6.5.0-21-generic/x86_64 failed for evdi(10)
  Error! One or more modules failed to install during autoinstall.
  Refer to previous errors for more information.
   * dkms: autoinstall for kernel 6.5.0-21-generic
 ...fail!
  run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11
  dpkg: error processing package linux-headers-6.5.0-21-generic (--configure):
   installed linux-headers-6.5.0-21-generic package post-installation script 
subprocess returned error exit status 1
  dpkg: dependency problems prevent configuration of linux-headers-generic:
   linux-headers-generic depends on linux-headers-6.5.0-21-generic; however:
Package linux-headers-6.5.0-21-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.

No apport report written because the error message 
indicates its a followup error from a previous failure.
dpkg: dependency problems prevent 
configuration of linux-generic:
   linux-generic depends on linux-headers-generic (= 6.5.0.21.20); however:
Package linux-headers-generic is not configured yet.

  dpkg: error processing package linux-generic (--configure):
   dependency problems - leaving unconfigured
  Processing triggers for linux-image-6.5.0-21-generic (6.5.0-21.21) ...
  /etc/kernel/postinst.d/dkms:
   * dkms: running auto installation service for kernel 6.5.0-21-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 -j16 KERNELRELEASE=6.5.0-21-generic all 
INCLUDEDIR=/lib/modules/6.5.0-21-generic/build/include 
KVERSION=6.5.0-21-generic DKMS_BUILD=1...(bad exit status: 2)
  ERROR (dkms apport): binary package for evdi: 1.11.0 not found
  Error! Bad return status for module build on kernel: 6.5.0-21-generic (x86_64)
  Consult /var/lib/dkms/evdi/1.11.0/build/make.log for more information.
  dkms autoinstall on 6.5.0-21-generic/x86_64 

[Kernel-packages] [Bug 2055147] Re: Kernel upgrade to 6.5.0-21-generic fails to boot

2024-02-29 Thread Sly Gryphon
Thanks. Installing an updated EVDI seems to have done the trick `sudo
apt-get install evdi-dkms`. The new kernel is now working.

However it is not good that automatic updating the kernel broke boot up.

I know that there are so many different packages, etc, that you can't
possible test all combinations.

But maybe there is some way the install could test if the compile works,
and if it doesn't then don't add/configure the new kernel but instead
report an installation error. The problem would still need fixing, but
at least it can be checked before installing that would stop creating a
boot up issue.

Or maybe you have to install the kernel first before it can be checked,
so that may not be possible.


Anyway, thanks for the help.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/2055147

Title:
  Kernel upgrade to 6.5.0-21-generic fails to boot

Status in linux package in Ubuntu:
  Invalid

Bug description:
  After automatic update to kernel 6.5.0-21-generic my laptop fails to
  complete booting with a kernel panic. Safe mode did not work. Booting
  to previous kernel 6.5.0-17-generic is fine.

  Errors during failed boot include:
  ```
  VFS Cannot open root device /dev/mapper/vgubuntu-root or unknown-block(0.0) 
error -6
  Please append a correct root= boot option
  Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0.0)

  ```

  Trying clean up, I see the following error with the kernel
  installation:

  ```
  sly@sigil:~$ sudo apt-get autoremove
  Reading package lists... Done
  Building dependency tree... Done
  Reading state information... Done
  0 to upgrade, 0 to newly install, 0 to remove and 6 not to upgrade.
  3 not fully installed or removed.
  After this operation, 0 B of additional disk space will be used.
  Setting up linux-headers-6.5.0-21-generic (6.5.0-21.21) ...
  /etc/kernel/header_postinst.d/dkms:
   * dkms: running auto installation service for kernel 6.5.0-21-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 -j16 KERNELRELEASE=6.5.0-21-generic all 
INCLUDEDIR=/lib/modules/6.5.0-21-generic/build/include 
KVERSION=6.5.0-21-generic DKMS_BUILD=1...(bad exit status: 2)
  ERROR (dkms apport): binary package for evdi: 1.11.0 not found
  Error! Bad return status for module build on kernel: 6.5.0-21-generic (x86_64)
  Consult /var/lib/dkms/evdi/1.11.0/build/make.log for more information.
  dkms autoinstall on 6.5.0-21-generic/x86_64 succeeded for nvidia
  dkms autoinstall on 6.5.0-21-generic/x86_64 failed for evdi(10)
  Error! One or more modules failed to install during autoinstall.
  Refer to previous errors for more information.
   * dkms: autoinstall for kernel 6.5.0-21-generic
 ...fail!
  run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11
  dpkg: error processing package linux-headers-6.5.0-21-generic (--configure):
   installed linux-headers-6.5.0-21-generic package post-installation script 
subprocess returned error exit status 1
  dpkg: dependency problems prevent configuration of linux-headers-generic:
   linux-headers-generic depends on linux-headers-6.5.0-21-generic; however:
Package linux-headers-6.5.0-21-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.

No apport report written because the error message 
indicates its a followup error from a previous failure.
dpkg: dependency problems prevent 
configuration of linux-generic:
   linux-generic depends on linux-headers-generic (= 6.5.0.21.20); however:
Package linux-headers-generic is not configured yet.

  dpkg: error processing package linux-generic (--configure):
   dependency problems - leaving unconfigured
  Processing triggers for linux-image-6.5.0-21-generic (6.5.0-21.21) ...
  /etc/kernel/postinst.d/dkms:
   * dkms: running auto installation service for kernel 6.5.0-21-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 -j16 KERNELRELEASE=6.5.0-21-generic all 
INCLUDEDIR=/lib/modules/6.5.0-21-generic/build/include 
KVERSION=6.5.0-21-generic DKMS_BUILD=1...(bad exit status: 2)
  ERROR (dkms apport): binary package for evdi: 1.11.0 not found
  Error! Bad return status for module build on kernel: 6.5.0-21-generic (x86_64)
  Consult /var/lib/dkms/evdi/1.11.0/build/make.log for more information.
  dkms 

[Kernel-packages] [Bug 2055147] Re: Kernel upgrade to 6.5.0-21-generic fails to boot

2024-02-28 Thread Matthew Ruffell
Hi Sly,

Your evdi kernel module for DisplayLink docks failed to compile. It
likely couldn't generate your initramfs, leaving your 6.5.0-21-generic
not able to boot.

Your logs say its trying to build version 1.11.0:

ERROR (dkms apport): binary package for evdi: 1.11.0 not found
Error! Bad return status for module build on kernel: 6.5.0-21-generic (x86_64)
Consult /var/lib/dkms/evdi/1.11.0/build/make.log for more information.

This is a bit old and outdated. You can re-install the DisplayLink
drivers from the upstream source, that has a newer version of evdi:

https://www.synaptics.com/products/displaylink-graphics/downloads/ubuntu

That will probably remove the old evdi and install a newer one.

Alternatively, you can remove the old evdi dkms entry and install evdi-
dkms from the Ubuntu repositories which has a evdi compatible with
6.5.0-21-generic.

DisplayLink support is kinda bad on Ubuntu, but its what we must do to
have working displays with our docks.

Thanks,
Matthew

** Changed in: linux (Ubuntu)
   Status: New => Invalid

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/2055147

Title:
  Kernel upgrade to 6.5.0-21-generic fails to boot

Status in linux package in Ubuntu:
  Invalid

Bug description:
  After automatic update to kernel 6.5.0-21-generic my laptop fails to
  complete booting with a kernel panic. Safe mode did not work. Booting
  to previous kernel 6.5.0-17-generic is fine.

  Errors during failed boot include:
  ```
  VFS Cannot open root device /dev/mapper/vgubuntu-root or unknown-block(0.0) 
error -6
  Please append a correct root= boot option
  Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0.0)

  ```

  Trying clean up, I see the following error with the kernel
  installation:

  ```
  sly@sigil:~$ sudo apt-get autoremove
  Reading package lists... Done
  Building dependency tree... Done
  Reading state information... Done
  0 to upgrade, 0 to newly install, 0 to remove and 6 not to upgrade.
  3 not fully installed or removed.
  After this operation, 0 B of additional disk space will be used.
  Setting up linux-headers-6.5.0-21-generic (6.5.0-21.21) ...
  /etc/kernel/header_postinst.d/dkms:
   * dkms: running auto installation service for kernel 6.5.0-21-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 -j16 KERNELRELEASE=6.5.0-21-generic all 
INCLUDEDIR=/lib/modules/6.5.0-21-generic/build/include 
KVERSION=6.5.0-21-generic DKMS_BUILD=1...(bad exit status: 2)
  ERROR (dkms apport): binary package for evdi: 1.11.0 not found
  Error! Bad return status for module build on kernel: 6.5.0-21-generic (x86_64)
  Consult /var/lib/dkms/evdi/1.11.0/build/make.log for more information.
  dkms autoinstall on 6.5.0-21-generic/x86_64 succeeded for nvidia
  dkms autoinstall on 6.5.0-21-generic/x86_64 failed for evdi(10)
  Error! One or more modules failed to install during autoinstall.
  Refer to previous errors for more information.
   * dkms: autoinstall for kernel 6.5.0-21-generic
 ...fail!
  run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11
  dpkg: error processing package linux-headers-6.5.0-21-generic (--configure):
   installed linux-headers-6.5.0-21-generic package post-installation script 
subprocess returned error exit status 1
  dpkg: dependency problems prevent configuration of linux-headers-generic:
   linux-headers-generic depends on linux-headers-6.5.0-21-generic; however:
Package linux-headers-6.5.0-21-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.

No apport report written because the error message 
indicates its a followup error from a previous failure.
dpkg: dependency problems prevent 
configuration of linux-generic:
   linux-generic depends on linux-headers-generic (= 6.5.0.21.20); however:
Package linux-headers-generic is not configured yet.

  dpkg: error processing package linux-generic (--configure):
   dependency problems - leaving unconfigured
  Processing triggers for linux-image-6.5.0-21-generic (6.5.0-21.21) ...
  /etc/kernel/postinst.d/dkms:
   * dkms: running auto installation service for kernel 6.5.0-21-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 -j16 KERNELRELEASE=6.5.0-21-generic all