Score:0

Bad return status for module build on kernel: 5.11.0-25-generic (x86_64)

cz flag

Unfortunately I've been facing this issue for a few days and I'm unsure how to solve it.

It occurs when I try installing most packages or trying to update existing software through the Software Updater.

My Ubuntu version:

❯ lsb_release -a                                                                                                                                                             45.7s  wo 25 aug 2021 13:01:21 CEST
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.3 LTS
Release:        20.04
Codename:       focal
~

Kernel info:

❯ uname -r                                                                                                                                                                           wo 25 aug 2021 13:06:28 CEST
5.11.0-25-generic
~
❯ dpkg --list | grep linux-image                                                                                                                                                     wo 25 aug 2021 13:06:33 CEST
ii  linux-image-5.11.0-25-generic                               5.11.0-25.27~20.04.1                                        amd64        Signed kernel image generic
ii  linux-image-5.11.0-27-generic                               5.11.0-27.29~20.04.1                                        amd64        Signed kernel image generic
ii  linux-image-5.4.0-42-generic                                5.4.0-42.46                                                 amd64        Signed kernel image generic
ii  linux-image-5.4.0-54-generic                                5.4.0-54.60                                                 amd64        Signed kernel image generic
rc  linux-image-5.8.0-43-generic                                5.8.0-43.49~20.04.1                                         amd64        Signed kernel image generic
ii  linux-image-5.8.0-59-generic                                5.8.0-59.66~20.04.1                                         amd64        Signed kernel image generic
ii  linux-image-generic-hwe-20.04                               5.11.0.27.29~20.04.11                                       amd64        Generic Linux kernel image
   

                                                                                                                                                          

Error log:

-----------------------------
Deleting module version: 5.9.10.69-1234664
completely from the DKMS tree.
------------------------------
Done.
Loading new amdgpu-5.9.10.69-1234664 DKMS files...
Building for 5.11.0-25-generic 5.11.0-27-generic
Building for architecture x86_64
Building initial module for 5.11.0-25-generic
ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/amdgpu-dkms.0.crash'
Error! Bad return status for module build on kernel: 5.11.0-25-generic (x86_64)
Consult /var/lib/dkms/amdgpu/5.9.10.69-1234664/build/make.log for more information.
dpkg: error processing package amdgpu-dkms (--configure):
 installed amdgpu-dkms package post-installation script subprocess returned error exit status 10
Setting up grub-common (2.04-1ubuntu26.13) ...
Installing new version of config file /etc/grub.d/10_linux ...
Created symlink /etc/systemd/system/multi-user.target.wants/grub-common.service → /lib/systemd/system/grub-common.service.
Created symlink /etc/systemd/system/sleep.target.wants/grub-common.service → /lib/systemd/system/grub-common.service.
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
dpkg: dependency problems prevent configuration of amdgpu:
 amdgpu depends on amdgpu-dkms (= 1:5.9.10.69-1234664); however:
  Package amdgpu-dkms is not configured yet.

dpkg: error processing package amdgpu (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Setting up lib32gcc-s1 (11.1.0-1ubuntu1~20.04) ...
Setting up lib32stdc++6 (11.1.0-1ubuntu1~20.04) ...
Setting up libquadmath0:amd64 (11.1.0-1ubuntu1~20.04) ...
Setting up libatomic1:amd64 (11.1.0-1ubuntu1~20.04) ...
Setting up libatomic1:i386 (11.1.0-1ubuntu1~20.04) ...
Setting up libipt2 (2.0.1-1) ...
Setting up libxxhash0:amd64 (0.7.3-1) ...
Setting up libstdc++6:amd64 (11.1.0-1ubuntu1~20.04) ...
Setting up libstdc++6:i386 (11.1.0-1ubuntu1~20.04) ...
Setting up liblsan0:amd64 (11.1.0-1ubuntu1~20.04) ...
Setting up libitm1:amd64 (11.1.0-1ubuntu1~20.04) ...
Setting up libtsan0:amd64 (11.1.0-1ubuntu1~20.04) ...
dpkg: dependency problems prevent configuration of amdgpu-pro:
 amdgpu-pro depends on amdgpu (= 20.50-1234664); however:
  Package amdgpu is not configured yet.

dpkg: error processing package amdgpu-pro (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Setting up grub2-common (2.04-1ubuntu26.13) ...
Setting up libgcc1 (1:11.1.0-1ubuntu1~20.04) ...
Setting up libobjc4:amd64 (11.1.0-1ubuntu1~20.04) ...
Setting up grub-pc-bin (2.04-1ubuntu26.13) ...
Setting up shim-signed (1.40.7+15.4-0ubuntu9) ...
dpkg: dependency problems prevent configuration of amdgpu-pro-lib32:
 amdgpu-pro-lib32 depends on amdgpu (= 20.50-1234664) | amdgpu-hwe (= 20.50-1234664); however:
  Package amdgpu is not configured yet.
  Package amdgpu-hwe is not installed.
 amdgpu-pro-lib32 depends on amdgpu-pro (= 20.50-1234664) | amdgpu-pro-hwe (= 20.50-1234664); however:
  Package amdgpu-pro is not configured yet.
  Package amdgpu-pro-hwe is not installed.

dpkg: error processing package amdgpu-pro-lib32 (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              Setting up grub-pc (2.04-1ubuntu26.13) ...
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.11.0-27-generic
Found initrd image: /boot/initrd.img-5.11.0-27-generic
Found linux image: /boot/vmlinuz-5.11.0-25-generic
Found initrd image: /boot/initrd.img-5.11.0-25-generic
Found linux image: /boot/vmlinuz-5.8.0-59-generic
Found initrd image: /boot/initrd.img-5.8.0-59-generic
Found linux image: /boot/vmlinuz-5.4.0-54-generic
Found initrd image: /boot/initrd.img-5.4.0-54-generic
Found linux image: /boot/vmlinuz-5.4.0-42-generic
Found initrd image: /boot/initrd.img-5.4.0-42-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
done
Setting up libboost-regex1.71.0:amd64 (1.71.0-6ubuntu6) ...
Setting up libubsan1:amd64 (11.1.0-1ubuntu1~20.04) ...
Setting up gdbserver (10.2-0ubuntu1~20.04~1) ...
Setting up libcc1-0:amd64 (11.1.0-1ubuntu1~20.04) ...
Setting up libsource-highlight4v5 (3.1.8-1.2build5) ...
Setting up gdb (10.2-0ubuntu1~20.04~1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
Processing triggers for systemd (245.4-4ubuntu3.11) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for install-info (6.7.0.dfsg.2-5) ...
Errors were encountered while processing:
 amdgpu-dkms
 amdgpu
 amdgpu-pro
 amdgpu-pro-lib32
E: Sub-process /usr/bin/dpkg returned an error code (1)

If there's anyone that might have an idea on how to solve this? That would be great :)

If any additional information is needed, please let me know.

Thanks in advance.

James S. avatar
de flag
The very first order of business would be to inspect the crash report.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.