Why Linux Mint 21 to 22 Upgrades Fail
Upgrading Linux Mint from version 21 (based on Ubuntu 22.04) to version 22 (based on Ubuntu 24.04) is a major release jump. Unlike point upgrades within the same version series, this upgrade replaces thousands of base packages and switches the underlying Ubuntu LTS base. That complexity creates multiple failure points.
The most common errors users encounter are broken package dependencies, PPA conflicts, NVIDIA driver issues, and mintupgrade stalling mid-process. This guide walks through each fix in order, starting with the safest and simplest approaches.
Before You Start — Critical Preparation Steps
Skipping these steps is the number-one reason upgrades fail and leave systems in a broken state.
- Create a Timeshift snapshot. Open Timeshift, take a snapshot of your current system, and confirm it completes successfully. This is your safety net — if the upgrade breaks something, you can restore to Mint 21 in minutes.
- Back up your home folder separately (external drive or cloud). Timeshift backs up the system, not necessarily all personal files depending on your configuration.
- Fully update Mint 21 first. Open Update Manager and install every pending update. Run
sudo apt update && sudo apt upgrade -yin Terminal to confirm nothing is held back. - Remove or disable all PPAs. Go to Software Sources > PPAs and disable every PPA. Third-party PPAs compiled for Ubuntu 22.04 will conflict with Ubuntu 24.04 packages and are the most common cause of upgrade failure.
Step 1: Install the mintupgrade Tool
Never use the regular Update Manager or apt dist-upgrade for a major Mint release upgrade. Always use the official mintupgrade tool, which checks system readiness and handles release-specific changes.
sudo apt install mintupgrade
Then check your system's upgrade readiness:
mintupgrade check
Read the output carefully. The tool identifies incompatible packages and PPAs before the upgrade begins and tells you exactly what needs to be resolved.
Step 2: Fix "Broken Packages" Before Upgrading
If mintupgrade check reports broken packages, fix them before proceeding:
sudo apt --fix-broken install
sudo dpkg --configure -a
sudo apt autoremove --purge
Then run sudo apt update and check the output for repository errors. If any PPAs return 404 errors, go to Software Sources > PPAs and disable them.
Re-run mintupgrade check after each fix until no issues are reported.
Step 3: Remove NVIDIA DKMS Packages Before Upgrading
NVIDIA DKMS packages (kernel modules built from source) are compiled against your current kernel headers. After the base Ubuntu switch, these modules become incompatible and cause mintupgrade to fail mid-process.
Check if you have NVIDIA DKMS installed:
dpkg -l | grep nvidia-dkms
If any packages are listed, remove them temporarily:
sudo apt remove --purge nvidia-dkms-*
After the upgrade completes, reinstall the NVIDIA driver through Driver Manager — it will select the correct version for your new Ubuntu 24.04 base automatically.
Step 4: Run the Upgrade
With all prerequisites satisfied, start the upgrade:
mintupgrade upgrade
The process downloads several gigabytes of packages and takes 30–90 minutes depending on your internet speed. Do not close the terminal or put the computer to sleep during the upgrade.
If the process asks about configuration files, accept the maintainer's version unless you know you have made custom changes to that file.
Fix: Upgrade Stalls at Package Configuration
If mintupgrade appears to hang for more than 20 minutes with no output, it may be waiting for a dpkg configuration prompt in the background. Open a second terminal and run:
sudo dpkg --configure -a
This completes any interrupted package configuration steps. Return to the original terminal window — the upgrade usually resumes automatically.
Fix: "E: Could not get lock /var/lib/dpkg/lock"
This error means another apt process is already running. Check what has the lock:
sudo lsof /var/lib/dpkg/lock
If the process is a legitimate background updater, wait for it to finish. If it is a dead process from a previous interrupted upgrade, remove the lock:
sudo rm /var/lib/dpkg/lock
sudo rm /var/lib/dpkg/lock-frontend
sudo dpkg --configure -a
Only delete the lock files if you are certain no apt/dpkg process is actively running.
Fix: System Won't Boot After Failed Upgrade
If the upgrade fails mid-process and the system becomes unbootable, restore your Timeshift snapshot from a live USB boot:
- Boot from a Linux Mint 21 live USB.
- Install Timeshift on the live environment:
sudo apt install timeshift - Open Timeshift, select your snapshot, and click Restore.
After restoring, resolve the specific issue that caused the upgrade to fail before attempting again.
After the Upgrade: Reinstall NVIDIA Drivers and Re-enable PPAs
Once the upgrade completes and your system boots into Linux Mint 22:
- Open Driver Manager and install the recommended NVIDIA driver for your GPU.
- Re-add PPAs one at a time through Software Sources > PPAs. Search for the PPA's Mint 22 / Ubuntu 24.04 (Noble) compatibility before enabling it — some PPAs may not have Noble packages available yet.
- Run a full system update:
sudo apt update && sudo apt upgrade -y
If you encounter persistent issues after upgrading, CloudHouse Technologies offers per-ticket Linux support — expert diagnosis without a monthly commitment.
Frequently Asked Questions
Can I upgrade from Linux Mint 21 to 22 using the Update Manager?
No. The Update Manager handles within-series updates (e.g., 22.0 to 22.1). For a major version upgrade like 21 to 22, you must use the mintupgrade tool, which handles the underlying Ubuntu base switch and checks system readiness first.
Why does mintupgrade say my system has broken packages?
Usually because a PPA package conflicts with the Ubuntu 24.04 base packages in Mint 22. Disable all PPAs in Software Sources, run sudo apt --fix-broken install, then retry mintupgrade check.
How long does the Linux Mint 21 to 22 upgrade take?
Typically 45–90 minutes on a fast internet connection (100 Mbps+). The upgrade downloads 2–4 GB of packages. On a slower connection, plan for 2–3 hours. Do not interrupt the process once it starts.
What if the upgrade fails halfway through?
If you created a Timeshift snapshot before starting, boot from a live USB, restore the snapshot, fix the specific error (usually a PPA or NVIDIA DKMS conflict), and try again. Without a Timeshift snapshot, you may need to run sudo dpkg --configure -a && sudo apt --fix-broken install to recover a partially upgraded system.
Is it safe to upgrade from Linux Mint 21.3 directly to 22?
Yes, upgrading from 21.3 to 22 is fully supported by the Mint team via mintupgrade. The tool handles the Ubuntu 22.04 → 24.04 base transition. The key is thorough preparation: update everything, remove PPAs, and create a Timeshift snapshot before starting.
