Upgrading from LMDE 5 to LMDE 6 fails on dpkg error

Open
#113 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
linux, python

Research direction

Start with the reported apt-get install -fyq output and trace the failure through /etc/kernel/postinst.d/dkms and the WireGuard DKMS path under /var/lib/dkms. Determine why the LMDE 5 to LMDE 6 upgrade leaves the kernel packages unconfigured, then verify that the upgrade completes without the reported dpkg error.

Written by the indexing model from the issue text.

Description

Error message:
DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt-get install -fyq
Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
android-libcrypto-utils clangd-11 ftp gcc-13-base gcc-13-base:i386
kdevelop56-libs libcmark-gfm-extensions0 libcmark-gfm0 libgdl-3-5
libgdl-3-common libgeos-3.9.0 libgig9 libgl1-mesa-dev libgles-dev libgles1
libglvnd-core-dev libglvnd-dev libgtkspell3-3-0 libhawtjni-runtime-java
libjansi-native-java libjson-glib-1.0-0:i386 libkdecorations2private7
liblept5 liblldb-11 libprotoc23 librest-0.7-0:i386 librtmidi5 libsharpyuv0
libsoundio1 libsoup-gnome2.4-1:i386 libstk-4.6.1 libyaml-cpp0.6
linux-headers-5.10.0-22-amd64 linux-headers-5.10.0-22-common
linux-headers-5.10.0-23-amd64 linux-headers-5.10.0-23-common
linux-image-5.10.0-22-amd64 linux-image-5.10.0-23-amd64 lld-11
mint-backgrounds-vera python3-mistune python3-mock python3-neovim
python3-pbr python3-testpath steam:i386 telnet x11proto-input-dev
x11proto-randr-dev x11proto-xf86dga-dev x11proto-xinerama-dev
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-image-6.1.0-26-amd64 (6.1.112-1) ...
/etc/kernel/postinst.d/dkms:
dkms: running auto installation service for kernel 6.1.0-26-amd64.
Sign command: /usr/lib/linux-kbuild-6.1/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Error! The /var/lib/dkms/wireguard/1.0.20210219/6.1.0-26-amd64/x86_64/dkms.conf for module wireguard includes a BUILD_EXCLUSIVE directive which does not match this kernel/arch/config.
This indicates that it should not be built.
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
dkms: autoinstall for kernel: 6.1.0-26-amd64 failed!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
dpkg: error processing package linux-image-6.1.0-26-amd64 (--configure):
installed linux-image-6.1.0-26-amd64 package post-installation script subprocess returned error exit status 1
Setting up linux-headers-6.1.0-26-amd64 (6.1.112-1) ...
/etc/kernel/header_postinst.d/dkms:
dkms: running auto installation service for kernel 6.1.0-26-amd64.
Sign command: /usr/lib/linux-kbuild-6.1/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Error! The /var/lib/dkms/wireguard/1.0.20210219/6.1.0-26-amd64/x86_64/dkms.conf for module wireguard includes a BUILD_EXCLUSIVE directive which does not match this kernel/arch/config.
This indicates that it should not be built.
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
dkms: autoinstall for kernel: 6.1.0-26-amd64 failed!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11
Failed to process /etc/kernel/header_postinst.d at /var/lib/dpkg/info/linux-headers-6.1.0-26-amd64.postinst line 11.
dpkg: error processing package linux-headers-6.1.0-26-amd64 (--configure):
installed linux-headers-6.1.0-26-amd64 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of linux-headers-amd64:
linux-headers-amd64 depends on linux-headers-6.1.0-26-amd64 (= 6.1.112-1); however:
Package linux-headers-6.1.0-26-amd64 is not configured yet.

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

dpkg: error processing package linux-image-amd64 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-image-6.1.0-26-amd64
linux-headers-6.1.0-26-amd64
linux-headers-amd64
linux-image-amd64
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
Error - Return code: 100

Dominant language
Python
Stars
50
Forks
20
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from linuxmint/mintupgrade

All issues in linuxmint/mintupgrade

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.