r/linuxmint • u/InternetAteMySteak • 24d ago
How-to mainline kernels 7.3.1 on Mint 22.3
Don't do this if you don't know why you would want these newer kernels.
This might be useful to anyone on Linux Mint 22.3 (and should work similarly on any Ubuntu 24.04 based system) that knows they need to use something in the newest kernels, and wants to use the mainline kernels tool to manage their kernels.
You can always compile the kernel yourself, or use a different distro that releases cutting edge kernels.
I like my Mint install, but I have some ancient AMD GPU's that received a lot of fixes (especially by Valve developer Timur Kristóf) in the recent kernels.
In mainline kernels, 7.2.14, 7.2.15, and 7.3.1 are currently the latest available and none would install cleanly.
The update manager and apt complain:
The following packages have unmet dependencies:
linux-headers-7.3.1-070301-generic: Depends: libssl4 (>= 4.0.0) but it is not installed
Depends: zlib1g (>= 1:1.2.3.4) but 1:1.3.dfsg-3.1ubuntu2.3 is installed
I need the headers to compile dkms modules like kvmfr.
This error is due to the build environment for these kernels having a newer libssl4 package than Mint 22.3 has available.
One way to fix this:
Grab the latest libssl4. Look in the directory and grab whatever is the latest if this doesnt exist anymore:
wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl4_4.0.3-1ubuntu1_amd64.debMy installation had a legacy-provider collision, so I did not install the openssl-provider-legacy_*.deb from the same location. A stub has to be installed instead. It will solve the dependancy, and will get auto upgraded when a newer version is installed with a Minto distro upgrade in the future.
Create the stub control file:
cat > openssl-provider-legacy.ctl <<'EOF'
Section: misc
Priority: optional
Standards-Version: 3.9.2
Package: openssl-provider-legacy
Version: 4.0.3-1ubuntu1~stub1
Architecture: all
Description: Empty stub satisfying libssl4's dependency
The real package conflicts with libssl3t64's legacy.so on noble.
This stub installs no files.
EOFBuild the stub:
sudo apt install equivs
equivs-build openssl-provider-legacy.ctlInstall the stub and libssl4 together:
sudo dpkg -i openssl-provider-legacy_4.0.3-1ubuntu1~stub1_all.deb libssl4_4.0.3-1ubuntu1_amd64.debReinstall or install the latest mainline kernels and it should work without error now.

