Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Testing - Trixie] [Solved] Kernel was not properly installed while upgrading from bookworm to trixie

- - ALL UNSTABLE / TESTING THREADS SHOULD BE POSTED HERE - -
This sub-forum is the dedicated area for the ongoing Unstable/Testing releases of Debian. Advanced, or Experienced User support only. Use the software, give, and take advice with caution.
Post Reply
Message
Author
roopesh
Posts: 4
Joined: 2024-03-30 11:13

[Testing - Trixie] [Solved] Kernel was not properly installed while upgrading from bookworm to trixie

#1 Post by roopesh »

I was upgrading from bookworm to trixie by following this page: https://wiki.debian.org/DebianUpgrade
while running apt-get full-upgrade at the first time upgraded several packages except the kernel. So i ran it again and got this error

Code: Select all

# apt-get full-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  clang-format-14 clangd-14 fcitx5-chewing fonts-noto-hinted gcc-11-base gdisk golang-1.19 golang-1.19-doc golang-1.19-go golang-1.19-src kross
  kuserfeedback-doc libamd2 libappstream4 libappstreamqt2 libarmadillo11 libasan6 libavutil57 libblockdev-crypto2 libblockdev-fs2 libblockdev-loop2
  libblockdev-part-err2 libblockdev-part2 libblockdev-swap2 libblockdev-utils2 libblockdev2 libboost-chrono1.74.0 libboost-date-time1.74-dev
  libboost-date-time1.74.0 libboost-dev libboost-filesystem1.74.0 libboost-program-options1.74.0 libboost-regex1.74-dev libboost-regex1.74.0
  libboost-serialization1.74-dev libboost-serialization1.74.0 libboost1.74-dev libcamd2 libcbor0.8 libccolamd2 libchewing3 libchewing3-data libcholmod3
  libcodec2-1.0 libcolamd2 libdav1d6 libexecs0 libgcab-1.0-0 libgcc-11-dev libgdal32 libgeos3.11.1 libgfortran-11-dev libgit2-1.5 libgps28
  libgupnp-igd-1.0-4 libhiredis0.14 libixml10 libjim0.81 libkf5js5 libkf5jsapi5 libkf5krosscore5 libkf5krossui5 liblc3-0 libllvm15 libmagick++-6.q16-8
  libmagickcore-6.q16-6 libmagickcore-6.q16-6-extra libmagickwand-6.q16-6 libmetis5 libnfs13 libnunit-cil-dev libnunit-console-runner2.6.3-cil
  libnunit-core-interfaces2.6.3-cil libnunit-core2.6.3-cil libnunit-framework2.6.3-cil libnunit-mocks2.6.3-cil libnunit-util2.6.3-cil libobjc-12-dev
  libokular5core10 libopenblas-dev libopenblas-pthread-dev libopenblas0 libperl5.36 libphonon4qt5-data libplacebo208 libpostproc56 libpython3-all-dev
  libpython3.12 libpython3.12-dev libqt5script5 libraw20 libre2-9 libsdl-image1.2 libsmbios-c2 libspatialite7 libspdlog1.10 libsrt1.5-openssl
  libstdc++-11-dev libsuitesparseconfig5 libsuperlu5 libswscale6 libtsan0 libumfpack5 libupnp13 libwireshark16 libwiretap13 libwsutil14 libxsimd-dev
  libzxing2 linux-headers-6.1.0-17-amd64 linux-headers-6.1.0-17-common linux-image-6.1.0-17-amd64 node-busboy node-end-of-stream node-pump p7zip
  perl-modules-5.36 python3-all-dev python3-beniget python3-gast python3-jdcal python3-ply python3-py python3-pythran python3.12-dev rtmpdump xtl-dev
Use 'sudo apt autoremove' to remove them.
The following packages have been kept back:
  libboost-dev
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] 
Setting up linux-image-6.6.15-amd64 (6.6.15-2) ...
/etc/kernel/postinst.d/dkms:
dkms: running auto installation service for kernel 6.6.15-amd64.
Sign command: /lib/modules/6.6.15-amd64/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Running the pre_build script:
checking for a BSD-compatible install... /usr/bin/install -c
checking for gcc... gcc-13
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 the compiler supports GNU C... yes
checking whether gcc-13 accepts -g... yes
checking for gcc-13 option to enable C11 features... none needed
checking how to run the C preprocessor... gcc-13 -E
checking kernel source directory... /usr/src/linux-headers-6.6.15-common
checking kernel build directory... /usr/src/linux-headers-6.6.15-amd64
checking kernel source version... 6.6.15-amd64
checking kernel file name for module symbols... Module.symvers
checking for linux/bits.h... yes
checking for linux/io-64-nonatomic-lo-hi.h... yes
checking for asm/set_memory.h... yes
checking for asm/fpu/api.h... yes
checking for linux/compiler_attributes.h... yes
checking for linux/fence-array.h... no
checking for linux/dma-resv.h... yes
checking for linux/mmap_lock.h... yes
checking for linux/pci-p2pdma.h... yes
checking for linux/dma-attrs.h... no
checking for linux/dma-buf-map.h... no
checking for linux/iosys-map.h... yes
checking for linux/stdarg.h... yes
checking for linux/dma-fence-chain.h... yes
checking for linux/xarray.h... yes
checking for linux/container_of.h... yes
checking for linux/cc_platform.h... yes
checking for linux/processor.h... yes
checking for linux/dma-map-ops.h... yes
checking for linux/apple-gmux.h... yes
checking for linux/build_bug.h... yes
checking for linux/device/class.h... yes
checking for drm/drm_backport.h... no
checking for drm/amdgpu_pciid.h... no
checking for drm/drm_probe_helper.h... yes
checking for drm/drmP.h... no
checking for drm/task_barrier.h... yes
checking for drm/drm_managed.h... yes
checking for drm/amd_asic_type.h... yes
checking for drm/drm_aperture.h... yes
checking for drm/dp/drm_dp_helper.h... no
checking for drm/dp/drm_dp_mst_helper.h... no
checking for drm/drm_gem_atomic_helper.h... yes
checking for drm/display/drm_dp_helper.h... yes
checking for drm/display/drm_dp_mst_helper.h... yes
checking for drm/display/drm_dsc.h... yes
checking for drm/display/drm_dsc_helper.h... yes
checking for drm/display/drm_hdmi_helper.h... yes
checking for drm/display/drm_hdcp_helper.h... yes
checking for drm/display/drm_hdcp.h... yes
checking for drm/display/drm_dp.h... yes
checking for linux/pgtable.h... yes
checking for drm/drm_fbdev_generic.h... yes
checking for drm/drm_suballoc.h... yes
checking for nproc... yes
checking for supported chips... done
checking for nproc... (cached) yes
checking for nproc... (cached) yes
checking for nproc... (cached) yes
checking for nproc... (cached) yes
checking for nproc... (cached) yes
checking for nproc... (cached) yes
...
checking for nproc... (cached) yes
checking for nproc... (cached) yes
checking for module configuration... done
configure: creating ./config.status
config.status: creating config/config.h

Building module:
Cleaning build area...(bad exit status: 2)
Failed command:
make -C /lib/modules/6.6.15-amd64/build M=/var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build clean
Building module(s)...(bad exit status: 2)
Failed command:
make -j12 KERNELRELEASE=6.6.15-amd64 TTM_NAME=amdttm SCHED_NAME=amd-sched -C /lib/modules/6.6.15-amd64/build M=/var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build
Error! Bad return status for module build on kernel: 6.6.15-amd64 (x86_64)
Consult /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/make.log for more information.
dkms autoinstall on 6.6.15-amd64/x86_64 failed for amdgpu(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
dkms: autoinstall for kernel: 6.6.15-amd64 failed!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
dpkg: error processing package linux-image-6.6.15-amd64 (--configure):
 installed linux-image-6.6.15-amd64 package post-installation script subprocess returned error exit status 11
dpkg: dependency problems prevent configuration of linux-image-amd64:
 linux-image-amd64 depends on linux-image-6.6.15-amd64 (= 6.6.15-2); however:
  Package linux-image-6.6.15-amd64 is not configured yet.

dpkg: error processing package linux-image-amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-headers-6.6.15-amd64:
 linux-headers-6.6.15-amd64 depends on linux-image-6.6.15-amd64 (= 6.6.15-2) | linux-image-6.6.15-amd64-unsigned (= 6.6.15-2); however:
  Package linux-image-6.6.15-amd64 is not configured yet.
  Package linux-image-6.6.15-amd64-unsigned is not installed.

dpkg: error processing package linux-headers-6.6.15-amd64 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-headers-amd64:
 linux-headers-amd64 depends on linux-headers-6.6.15-amd64 (= 6.6.15-2); however:
  Package linux-headers-6.6.15-amd64 is not configured yet.

dpkg: error processing package linux-headers-amd64 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-image-6.6.15-amd64
 linux-image-amd64
 linux-headers-6.6.15-amd64
 linux-headers-amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)
So i checked
/var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/make.log
and got this:

Code: Select all

DKMS make.log for amdgpu-6.3.6-1718217.22.04 for kernel 6.6.15-amd64 (x86_64)
Saturday 30 March 2024 04:59:16 PM IST
make: Entering directory '/usr/src/linux-headers-6.6.15-amd64'
/var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/Makefile:52: *** dma_resv->seq is missing. exit....  Stop.
make[1]: *** [/usr/src/linux-headers-6.6.15-common/Makefile:1938: /var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build] Error 2
make: *** [/usr/src/linux-headers-6.6.15-common/Makefile:246: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-6.6.15-amd64'
How to resolve this issue?

Hardware: HP laptop with AMD Ryzen 5 5500U (GPU: Radeon)

Update:
I had installed amdgpu-install package. And it was causing this compilation error. Removing it fixed the problem.
Last edited by roopesh on 2024-03-31 09:10, edited 1 time in total.

Aki
Global Moderator
Global Moderator
Posts: 3078
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 76 times
Been thanked: 416 times

Re: [Testing - Trixie] Kernel was not properly installed while upgrading from bookworm to trixie

#2 Post by Aki »

Hello,

It may be worth reporting the output of the following commands:

Code: Select all

dkms status
apt list "dkms*"
dpkg-query -l "dkms*"
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

roopesh
Posts: 4
Joined: 2024-03-30 11:13

Re: [Testing - Trixie] Kernel was not properly installed while upgrading from bookworm to trixie

#3 Post by roopesh »

Aki wrote: 2024-03-30 16:28 Hello,

It may be worth reporting the output of the following commands:

Code: Select all

dkms status
apt list "dkms*"
dpkg-query -l "dkms*"
Here's the output:

Code: Select all

# dkms status
amdgpu/6.3.6-1718217.22.04, 6.1.0-18-amd64, amd64: installed

# apt list "dkms*"
Listing... Done
dkms-noautoinstall-test-dkms/testing 3.0.13-1 all
dkms-test-dkms/testing 3.0.13-1 all
dkms/testing,now 3.0.13-1 all [installed,automatic]

# dpkg-query -l "dkms*"
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name             Version      Architecture Description
+++-================-============-============-===================================
ii  dkms             3.0.13-1     all          Dynamic Kernel Module System (DKMS)
un  dkms-autopkgtest <none>       <none>       (no description available)

Aki
Global Moderator
Global Moderator
Posts: 3078
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 76 times
Been thanked: 416 times

Re: [Testing - Trixie] Kernel was not properly installed while upgrading from bookworm to trixie

#4 Post by Aki »

Hello,
roopesh wrote: 2024-03-30 17:18 Here's the output:

Code: Select all

# dkms status
amdgpu/6.3.6-1718217.22.04, 6.1.0-18-amd64, amd64: installed
How did you install the amdgpu kernel module with dkms support ?

IIRC, it's not a Debian package.

Is it from an Ubuntu package (for example amdgpu-dkms) ?
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

milomak
Posts: 2168
Joined: 2009-06-09 22:20
Been thanked: 2 times

Re: [Testing - Trixie] Kernel was not properly installed while upgrading from bookworm to trixie

#5 Post by milomak »

can you post

Code: Select all

dpkg -l | grep unsigned
Desktop: A320M-A PRO MAX, AMD Ryzen 5 3600, GALAX GeForce RTX™ 2060 Super EX (1-Click OC) - Sid, Win10, Arch Linux, Gentoo, Solus
Laptop: hp 250 G8 i3 11th Gen - Sid
Kodi: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid

roopesh
Posts: 4
Joined: 2024-03-30 11:13

Re: [Testing - Trixie] Kernel was not properly installed while upgrading from bookworm to trixie

#6 Post by roopesh »

milomak wrote: 2024-03-30 19:54 can you post

Code: Select all

dpkg -l | grep unsigned

Code: Select all

~ dpkg -l | grep unsigned
ii  shim-unsigned                                               15.7-1                                    amd64        boot loader to chain-load signed boot loaders under Secure Boot

roopesh
Posts: 4
Joined: 2024-03-30 11:13

Re: [Testing - Trixie] Kernel was not properly installed while upgrading from bookworm to trixie

#7 Post by roopesh »

Aki wrote: 2024-03-30 17:25 How did you install the amdgpu kernel module with dkms support ?

IIRC, it's not a Debian package.

Is it from an Ubuntu package (for example amdgpu-dkms) ?
Oh my bad. A week ago i was trying to install ROCm. But it failed..
Before i began upgrading i removed those apt sources, but forgot to delete those packages. I removed amdgpu-dpkg and now kernel has installed without any error.
Thanks :)

Aki
Global Moderator
Global Moderator
Posts: 3078
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 76 times
Been thanked: 416 times

Re: [Testing - Trixie] Kernel was not properly installed while upgrading from bookworm to trixie

#8 Post by Aki »

Hello,
roopesh wrote: 2024-03-31 01:45 [..] A week ago i was trying to install ROCm. But it failed.. Before i began upgrading i removed those apt sources, but forgot to delete those packages. I removed amdgpu-dpkg and now kernel has installed without any error. Thanks :)
I'm glad you sorted it out. :)

Please, mark the discussion as "solved" manually adding the text tag "[Solved]" at the beginning of the subject of the first message (after other tags, if any). It is also an opportunity to the make the subject more understandable to other forum users and readers, if necessary; i.e. :
[Testing - Trixie] [Solved] Kernel upgrade was not successfully upgrading from bookworm to trixie (with not debian kernel module
Happy Debian !
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

Post Reply