Recently, I upgraded my Ubuntu from 22.04 to 24.04. The upgrade process went smoothly. However, I get the result below when I check the Ubuntu version using the lsb_release -a
command.
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04.1 LTS
Release: 24.04
Codename: noble
But the next day, things went wrong.
When I powered on my laptop, I left it to grab coffee. Ten minutes laterโjust a blank, black screen. Even after waiting longer, nothing changed. I had to force shutdown and try again.
This cycle repeated. On my third attempt, I observed the boot process. In the boot menu (I use dual boot), I selected Advanced Options for Ubuntu, chose an older kernel (5.15.0-124
), and it booted normally.
Debugging the Issue
The first thing I do is try to fix any dpkg error using
sudo dpkg --configure -a
It failed. So, I try to update and upgrade the package manually using
sudo apt update
sudo apt upgrade
Failed again. After checking the error carefully, I found below error
Building module:
Cleaning build area...
unset ARCH; [ ! -h /usr/bin/cc ] && export CC=/usr/bin/gcc; env NV_VERBOSE=1 'make' -j8 NV_EXCLUDE_BUILD_MODULES='' KERNEL_UNAME=6.8.0-49-generic IGNO
RE_XEN_PRESENCE=1 IGNORE_CC_MISMATCH=1 SYSSRC=/lib/modules/6.8.0-49-generic/build LD=/usr/bin/ld.bfd CONFIG_X86_KERNEL_IBT= modules............(bad ex
it status: 2)
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/nvidia-dkms-450-server.0.crash'
Error! Bad return status for module build on kernel: 6.8.0-49-generic (x86_64)
Consult /var/lib/dkms/nvidia-srv/450.248.02/build/make.log for more information.
dkms autoinstall on 6.8.0-49-generic/x86_64 failed for nvidia-srv(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-49-generic
...fail!
The nvidia-dkms-450-server.0.crash
peak my interest. After some Google search, I found the solution.
First, I remove it using the below command.
sudo apt remove dkms nvidia-dkms-450-server
Then, I execute sudo apt update && sudo apt upgrade
again
Next, I tried to install nvidia-dkms-450-server
again but failed because the package was unavailable. The error message shows the new package that replaces it.
sudo apt install nvidia-kernel-common-450-server
The next thing I do is remove all unused packages using sudo apt autoremove
.
Finally, I reboot my laptop. It boots up normally. Below is the kernel version that I use (I check it using uname -a
command).
Top comments (0)