Ubuntu 20.04 Stucked during kernel 5.4.0-52-generic update

Asked by Gran Jacob

Ubuntu 20.04 Stucked during kernel 5.4.0-52-generic update
I simply turn off the computer and try again, then again.

How can avoid the update of the kernel or how can I update without get stucked.

You can see the picture here for more details:
https://cdn.livechat-files.com/api/file/lc/att/3412142/2d3cb46f62327cfa9b6d213af099ff57/6f996b8f-96b1-47a2-b70b-aec8e43ce35b.jpeg

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Bashing-om (bashing-om) said :
#1

Gran Jacob - Hello

For diagnostic purposes - please post back the outputs of terminal commands:
sudo apt update
sudo apt upgrade
sudo apt -f install
sudo dpkg -C
dpkg -l | grep linux-

-see then where we go -

Revision history for this message
Gran Jacob (granjacob) said :
#2

sudo apt update

Get:1 file:/var/opt/amdgpu-pro-local ./ InRelease
Ign:1 file:/var/opt/amdgpu-pro-local ./ InRelease
Get:2 file:/var/opt/amdgpu-pro-local ./ Release [816 B]
Get:2 file:/var/opt/amdgpu-pro-local ./ Release [816 B]
Get:3 file:/var/opt/amdgpu-pro-local ./ Release.gpg
Ign:3 file:/var/opt/amdgpu-pro-local ./ Release.gpg
Hit:4 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:5 http://us.archive.ubuntu.com/ubuntu focal InRelease
Hit:6 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:7 http://ppa.launchpad.net/cartes/drawing/ubuntu focal InRelease
Ign:8 http://dl.google.com/linux/webdesigner/deb stable InRelease
Hit:9 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:10 http://us.archive.ubuntu.com/ubuntu focal-security InRelease
Hit:11 http://dl.google.com/linux/webdesigner/deb stable Release
Hit:12 http://ppa.launchpad.net/christian-boxdoerfer/fsearch-daily/ubuntu focal InRelease
Hit:13 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal InRelease
Hit:14 http://ppa.launchpad.net/klaus-vormweg/bluefish/ubuntu focal InRelease
Hit:15 https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/focal pgadmin4 InRelease
Hit:16 http://ppa.launchpad.net/linrunner/tlp/ubuntu focal InRelease
Hit:18 http://ppa.launchpad.net/oibaf/graphics-drivers/ubuntu focal InRelease
Hit:19 http://ppa.launchpad.net/ondrej/php/ubuntu focal InRelease
Hit:20 http://ppa.launchpad.net/rvm/smplayer/ubuntu focal InRelease
Hit:21 http://ppa.launchpad.net/ubuntuhandbook1/apps/ubuntu focal InRelease
Hit:22 http://ppa.launchpad.net/ubuntuhandbook1/gimp/ubuntu focal InRelease
Reading package lists...
Get:1 file:/var/opt/amdgpu-pro-local ./ InRelease
Ign:1 file:/var/opt/amdgpu-pro-local ./ InRelease
Get:2 file:/var/opt/amdgpu-pro-local ./ Release [816 B]
Get:2 file:/var/opt/amdgpu-pro-local ./ Release [816 B]
Get:3 file:/var/opt/amdgpu-pro-local ./ Release.gpg
Ign:3 file:/var/opt/amdgpu-pro-local ./ Release.gpg
Hit:4 http://us.archive.ubuntu.com/ubuntu focal InRelease
Hit:5 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:6 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:7 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease
Hit:8 http://ppa.launchpad.net/cartes/drawing/ubuntu focal InRelease
Hit:9 http://us.archive.ubuntu.com/ubuntu focal-security InRelease
Ign:10 http://dl.google.com/linux/webdesigner/deb stable InRelease
Hit:11 http://dl.google.com/linux/webdesigner/deb stable Release
Hit:12 http://ppa.launchpad.net/christian-boxdoerfer/fsearch-daily/ubuntu focal InRelease
Hit:13 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal InRelease
Hit:14 https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/focal pgadmin4 InRelease
Hit:15 http://ppa.launchpad.net/klaus-vormweg/bluefish/ubuntu focal InRelease
Hit:17 http://ppa.launchpad.net/linrunner/tlp/ubuntu focal InRelease
Hit:18 http://ppa.launchpad.net/oibaf/graphics-drivers/ubuntu focal InRelease
Hit:19 http://ppa.launchpad.net/ondrej/php/ubuntu focal InRelease
Hit:20 http://ppa.launchpad.net/rvm/smplayer/ubuntu focal InRelease
Hit:21 http://ppa.launchpad.net/ubuntuhandbook1/apps/ubuntu focal InRelease
Hit:22 http://ppa.launchpad.net/ubuntuhandbook1/gimp/ubuntu focal InRelease
Reading package lists...

sudo apt upgrade

E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.

sudo dpkg --configure -a

Setting up linux-image-5.4.0-52-generic (5.4.0-52.57) ...
Processing triggers for linux-image-5.4.0-52-generic (5.4.0-52.57) ...
/etc/kernel/postinst.d/dkms:
 * dkms: running auto installation service for kernel 5.4.0-52-generic

Kernel preparation unnecessary for this kernel. Skipping...

Running the pre_build script:
checking for a BSD-compatible install... /bin/install -c
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking kernel source directory... /usr/src/linux-headers-5.4.0-52-generic
checking kernel build directory... /usr/src/linux-headers-5.4.0-52-generic
checking kernel source version... 5.4.0-52-generic
checking kernel file name for module symbols... Module.symvers
checking for linux/dma-fence.h... yes
checking for drm/drm_drv.h... yes
checking for drm/drmP.h... yes

(STUCK) ...

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

What is the output of the command

dkms status

How long did you wait for the command to complete before you declared it stuck? Just a few seconds or longer?

Revision history for this message
Gran Jacob (granjacob) said :
#4

granjacob@Jacob:~$ dkms status
amdgpu, 5.6.0.15-1098277, 5.4.0-48-generic, x86_64: installed
amdgpu, 5.6.0.15-1098277, 5.4.0-51-generic, x86_64: installed

After "Kernel preparation unnecessary for this kernel. Skipping..." ... pass 20 seconds, then stuck

Revision history for this message
Gran Jacob (granjacob) said :
#5

granjacob@Jacob:~$ dkms status
amdgpu, 5.6.0.15-1098277, 5.4.0-48-generic, x86_64: installed
amdgpu, 5.6.0.15-1098277, 5.4.0-51-generic, x86_64: installed

After "Kernel preparation unnecessary for this kernel. Skipping..." ... pass 20 seconds, then stuck

Revision history for this message
Bashing-om (bashing-om) said :
#6

Gran Jacob - humm ..

So, DKMS does not see the new 5.4.0-52 kernel.

What then is the installed states of the kernels.
post back:
dpkg -l | grep linux-
ls -al /usr/src/
ls -al /lib/modules/
ls -al /boot/

Also what does the package manager think of installed states ?
Post too:
sudo dpkg -C

-gots to be a reason-

Revision history for this message
Gran Jacob (granjacob) said :
#7

I tryed to install kernel 5.9 as a solution but get the same result (STUCK).

5.9 Was installed using Deb files and command: dpkg -i *.deb

This is the output of the commands of Bashing-om

granjacob@Jacob:~$ dpkg -l | grep linux-
ii binutils-x86-64-linux-gnu 2.34-6ubuntu1 amd64 GNU binary utilities, for x86-64-linux-gnu target
ii linux-base 4.5ubuntu3.1 all Linux image base package
ii linux-firmware 1.187.3 all Firmware for Linux kernel drivers
ii linux-generic-hwe-20.04 5.4.0.52.55 amd64 Complete Generic Linux kernel and headers
ii linux-headers-5.4.0-48 5.4.0-48.52 all Header files related to Linux kernel version 5.4.0
ii linux-headers-5.4.0-48-generic 5.4.0-48.52 amd64 Linux kernel headers for version 5.4.0 on 64 bit x86 SMP
ii linux-headers-5.4.0-51 5.4.0-51.56 all Header files related to Linux kernel version 5.4.0
ii linux-headers-5.4.0-51-generic 5.4.0-51.56 amd64 Linux kernel headers for version 5.4.0 on 64 bit x86 SMP
ii linux-headers-5.4.0-52 5.4.0-52.57 all Header files related to Linux kernel version 5.4.0
ii linux-headers-5.4.0-52-generic 5.4.0-52.57 amd64 Linux kernel headers for version 5.4.0 on 64 bit x86 SMP
ii linux-headers-5.9.0-050900 5.9.0-050900.202010112230 all Header files related to Linux kernel version 5.9.0
iF linux-headers-5.9.0-050900-generic 5.9.0-050900.202010112230 amd64 Linux kernel headers for version 5.9.0 on 64 bit x86 SMP
ii linux-headers-generic 5.4.0.52.55 amd64 Generic Linux kernel headers
ii linux-headers-generic-hwe-20.04 5.4.0.52.55 amd64 Generic Linux kernel headers
rc linux-image-5.4.0-42-generic 5.4.0-42.46 amd64 Signed kernel image generic
ii linux-image-5.4.0-48-generic 5.4.0-48.52 amd64 Signed kernel image generic
ii linux-image-5.4.0-51-generic 5.4.0-51.56 amd64 Signed kernel image generic
iF linux-image-5.4.0-52-generic 5.4.0-52.57 amd64 Signed kernel image generic
ii linux-image-generic-hwe-20.04 5.4.0.52.55 amd64 Generic Linux kernel image
iU linux-image-unsigned-5.9.0-050900-generic 5.9.0-050900.202010112230 amd64 Linux kernel image for version 5.9.0 on 64 bit x86 SMP
ii linux-libc-dev:amd64 5.4.0-52.57 amd64 Linux Kernel Headers for development
rc linux-modules-5.4.0-42-generic 5.4.0-42.46 amd64 Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
ii linux-modules-5.4.0-48-generic 5.4.0-48.52 amd64 Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
ii linux-modules-5.4.0-51-generic 5.4.0-51.56 amd64 Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
ii linux-modules-5.4.0-52-generic 5.4.0-52.57 amd64 Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
iU linux-modules-5.9.0-050900-generic 5.9.0-050900.202010112230 amd64 Linux kernel extra modules for version 5.9.0 on 64 bit x86 SMP
rc linux-modules-extra-5.4.0-42-generic 5.4.0-42.46 amd64 Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
ii linux-modules-extra-5.4.0-48-generic 5.4.0-48.52 amd64 Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
ii linux-modules-extra-5.4.0-51-generic 5.4.0-51.56 amd64 Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
ii linux-modules-extra-5.4.0-52-generic 5.4.0-52.57 amd64 Linux kernel extra modules for version 5.4.0 on 64 bit x86 SMP
ii linux-sound-base 1.0.25+dfsg-0ubuntu5 all base package for ALSA and OSS sound systems
ii syslinux-common 3:6.04~git20190206.bf6db5b4+dfsg1-2 all collection of bootloaders (common)
ii syslinux-legacy 2:3.63+dfsg-2ubuntu9 amd64 Bootloader for Linux/i386 using MS-DOS floppies
granjacob@Jacob:~$ ls -al /usr/src/
total 44
drwxr-xr-x 11 root root 4096 oct 25 20:59 .
drwxr-xr-x 15 root root 4096 oct 3 22:59 ..
drwxr-xr-x 7 root root 4096 oct 2 12:16 amdgpu-5.6.0.15-1098277
drwxr-xr-x 24 root root 4096 sep 30 00:05 linux-headers-5.4.0-48
drwxr-xr-x 7 root root 4096 sep 30 00:05 linux-headers-5.4.0-48-generic
drwxr-xr-x 24 root root 4096 oct 15 10:37 linux-headers-5.4.0-51
drwxr-xr-x 7 root root 4096 oct 15 10:38 linux-headers-5.4.0-51-generic
drwxr-xr-x 24 root root 4096 oct 20 08:22 linux-headers-5.4.0-52
drwxr-xr-x 7 root root 4096 oct 20 08:22 linux-headers-5.4.0-52-generic
drwxr-xr-x 23 root root 4096 oct 25 20:59 linux-headers-5.9.0-050900
drwxr-xr-x 7 root root 4096 oct 25 20:59 linux-headers-5.9.0-050900-generic
granjacob@Jacob:~$ ls -al /lib/modules/
total 36
drwxr-xr-x 7 root root 4096 oct 25 20:57 .
drwxr-xr-x 155 root root 12288 oct 23 13:17 ..
drwxr-xr-x 2 root root 4096 oct 16 09:31 5.4.0-42-generic
drwxr-xr-x 6 root root 4096 oct 2 12:26 5.4.0-48-generic
drwxr-xr-x 6 root root 4096 oct 15 10:49 5.4.0-51-generic
drwxr-xr-x 5 root root 4096 oct 25 20:32 5.4.0-52-generic
drwxr-xr-x 5 root root 4096 oct 25 21:00 5.9.0-050900-generic
granjacob@Jacob:~$ ls -al /boot/
total 261904
drwxr-xr-x 4 root root 4096 oct 25 21:00 .
drwxr-xr-x 22 root root 4096 oct 17 19:56 ..
-rw-r--r-- 1 root root 237769 sep 10 05:12 config-5.4.0-48-generic
-rw-r--r-- 1 root root 237790 oct 5 08:34 config-5.4.0-51-generic
-rw-r--r-- 1 root root 237807 oct 15 05:28 config-5.4.0-52-generic
-rw-r--r-- 1 root root 248117 oct 11 17:31 config-5.9.0-050900-generic
drwx------ 3 root root 4096 dic 31 1969 efi
drwxr-xr-x 4 root root 4096 oct 25 20:58 grub
lrwxrwxrwx 1 root root 31 oct 25 20:57 initrd.img -> initrd.img-5.9.0-050900-generic
-rw-r--r-- 1 root root 49537741 oct 2 12:26 initrd.img-5.4.0-48-generic
-rw-r--r-- 1 root root 49549046 oct 2 12:26 initrd.img-5.4.0-48-generic.old-dkms
-rw-r--r-- 1 root root 49556861 oct 15 10:50 initrd.img-5.4.0-51-generic
-rw-r--r-- 1 root root 49277543 oct 25 20:58 initrd.img-5.9.0-050900-generic
-rw-r--r-- 1 root root 182704 ago 18 05:46 memtest86+.bin
-rw-r--r-- 1 root root 184380 ago 18 05:46 memtest86+.elf
-rw-r--r-- 1 root root 184884 ago 18 05:46 memtest86+_multiboot.bin
-rw------- 1 root root 4743112 sep 10 05:12 System.map-5.4.0-48-generic
-rw------- 1 root root 4743490 oct 5 08:34 System.map-5.4.0-51-generic
-rw------- 1 root root 4743490 oct 15 05:28 System.map-5.4.0-52-generic
-rw------- 1 root root 5658895 oct 11 17:31 System.map-5.9.0-050900-generic
lrwxrwxrwx 1 root root 28 oct 25 20:57 vmlinuz -> vmlinuz-5.9.0-050900-generic
-rw------- 1 root root 11678464 sep 10 05:36 vmlinuz-5.4.0-48-generic
-rw------- 1 root root 11678464 oct 5 08:54 vmlinuz-5.4.0-51-generic
-rw------- 1 root root 11678464 oct 15 05:33 vmlinuz-5.4.0-52-generic
-rw------- 1 root root 13756064 oct 11 17:31 vmlinuz-5.9.0-050900-generic
lrwxrwxrwx 1 root root 24 oct 25 20:57 vmlinuz.old -> vmlinuz-5.4.0-52-generic
granjacob@Jacob:~$ sudo dpkg -C
[sudo] password for granjacob:
The following packages have been unpacked but not yet configured.
They must be configured using dpkg --configure or the configure
menu option in dselect for them to work:
 linux-image-unsigned-5.9.0-050900-generic Linux kernel image for version 5.9.0
 linux-modules-5.9.0-050900-generic Linux kernel extra modules for version 5.9.

The following packages are only half configured, probably due to problems
configuring them the first time. The configuration should be retried using
dpkg --configure <package> or the configure menu option in dselect:
 linux-headers-5.9.0-050900-generic Linux kernel headers for version 5.9.0 on 6
 linux-image-5.4.0-52-generic Signed kernel image generic

In the GRUB appears the three versions: 5.4.0-52 (fails), 5.4.0-51 (working), 5.9 (fails)

Revision history for this message
Manfred Hampl (m-hampl) said :
#8

The packages involved in the problem are
- the new versions of the kernel packages (5.4.0-52 and 5.9.0-050900)
- and amdgpu

From where did you download the amdgpu software? There might be a newer version that works better with the new kernel versions (maybe https://drivers.amd.com/drivers/linux/amdgpu-pro-20.40-1147286-ubuntu-20.04.tar.xz with amdgpu-dkms version 5.6.14.224-1147286).

Can you help with this problem?

Provide an answer of your own, or ask Gran Jacob for more information if necessary.

To post a message you must log in.