Native upgrade from Linux Mint 21.3 to Linux Mint 22
Greetings!

A new release of the Linux Mint 22 distribution (based on Ubuntu 24.04) codenamed Wilma has just come out. And just recently the developers prepared instructions and a tool for a native (without reinstalling the OS) system upgrade, from Linux Mint 21.3 to Linux Mint 22. In this short note I’ll demonstrate this simple process 😉

I’d like to note that my test system has been upgraded this way since Linux Mint 20. Still alive so far)

Updating the current system to the latest version

The first thing to do is update our current system.

You can do this using the graphical program — Update Manager, launching it from the main menu or via the icon in the tray:

Or, in the classic way, run the following commands in the terminal:

BASH
sudo apt update

sudo apt upgrade -y
Click to expand and view more

If necessary, restart the OS after this procedure completes.

Creating a system backup with Timeshift

Now a very important step (!): creating a system backup using the preinstalled tool — Timeshift.

Let’s launch this program from the main menu (you’ll need to enter the root password) and create a new snapshot (or delete the old one and create a new one, if disk space is low):

Installing and running the system upgrade tool — mintupgrade

Now let’s install a special graphical tool (hereinafter the tool or utility), which is a step-by-step wizard. It will let us easily upgrade our system to Linux Mint 22.

Run in the terminal:

BASH
sudo apt install mintupgrade
Click to expand and view more

After that, run the utility as root:

BASH
sudo mintupgrade
Click to expand and view more

The program window will open. Don’t close the terminal until the update is finished.

Upgrading to Linux Mint 22

Well, let’s go!

The program will run a series of tests to make sure your system is ready for the global upgrade:

If you didn’t create a fresh backup of your system in the previous step, the upgrade tool will kindly remind you of this necessity:

Without a backup the wizard simply won’t let you proceed. This is done to protect you. And, well, this way the developers also protect themselves from angry users)

Next the tool will check for the presence of unsupported Linux Mint 22 software repositories.

If you continue the procedure, the tool will remove them from the list of software sources in your OS:

Next, similarly, a search for unsupported packages installed in the system will be performed. They will also be removed. Just write down their list in a separate file so you can reinstall them later.

The next step will be removing packages that are absent from the supported Linux Mint 22 repositories:

After that the utility will perform a simulation of the upgrade:

For this it will need additional disk space. It may turn out that there isn’t enough:

To continue, you’ll need to clean the system of “unnecessary” files)

To quickly find large files, use this command in the terminal:

BASH
du -h ~/ 2> /dev/null | sort -rh | head -n 20
Click to expand and view more

It uses the du (disk usage) utility to output the size of subdirectories at the given path as a list, redirecting error output to a “black hole” — the /dev/null pseudo device. Then, using the pipe mechanism, the result of the command is passed to the sort utility to sort by file size, and then the head command trims the output to the first 20 lines. The end result is the paths to the 20 “heaviest” directories.

To determine the size of each file in a specific directory, slightly modify the command:

BASH
du -sh ~/Изображения/* 2> /dev/null | sort -rh | head -n 20
Click to expand and view more

We added the -s option and the wildcard character *, which means “all items.”

After cleaning up, return to the upgrade tool.

If everything went successfully, next comes the actual system upgrade (finally):

At this step third-party packages may also be detected, which will accordingly be removed:

At the end of the tunnel you’ll see light this message:

Here I congratulate you for the first time — you’ve successfully upgraded to Linux Mint 22 Wilma 😉

Final reboot and verification

Now you need to restart the system for the changes to take effect. Let’s do this as usual, through the menu or in the terminal:

BASH
reboot
Click to expand and view more

And let’s cross our fingers 🤞

If you see the desktop, then everything is fine. To make sure the system has actually been updated, open the “About the system” utility from the main menu:

Or run in the terminal:

BASH
hostnamectl
Click to expand and view more

If the system doesn’t start, maybe the steps from the Chief, everything’s gone! section will help.

from my previous guide: Upgrading Linux Mint 20 to Linux Mint 21.1.

Conclusion

That’s how, in this simple way, we upgraded our system to Linux Mint 22, based on Ubuntu 24.04.

The Linux Mint developers put in a lot of effort to ensure the system’s stability, paying particular attention to developing convenient tools that make it easier for users to operate the operating system.

There are countless distributions in the Linux world, but very few maintainers who are so conscientious about the product they maintain. In a word, respect.

Thanks for reading the Raven blog. Stop by our telegram chat @r4ven_me_chat, and subscribe to our channel @r4ven_me, so you don’t miss new posts on the site.

Wishing you success and only successful upgrades!

Useful sources

Copyright Notice

Author: Ivan Cherniy

Link: https://r4ven.me/en/linux/nativnoe-obnovlenie-s-linux-mint-21-3-do-linux-mint-22/

License: CC BY-NC-SA 4.0

Blog materials may be used with attribution to the author and source, for non-commercial purposes, and under the same license.

Start searching

Enter keywords to search articles

↑↓
ESC
⌘K Shortcut