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)
/var/lib/dkms/amdgpu/6.3.6-1718217.22.04/build/make.logand 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'
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.