Linux Mint

Linux Mint

community.linuxmint.com - Linux Mint

A. Introduction

This tutorial explains how to upgrade to Linux Mint 20.

B. Requirements

B1. 64-bit only

Although both 32-bit and 64-bit versions of Linux Mint 19.3 are supported until April 2023, new releases of Linux Mint, including 20, are only available in 64-bit.

To upgrade to Linux Mint 20 you need to run the 64-bit version of Linux Mint 19.3.

To check which version you're running type:

dpkg --print-architecture

If it says "amd64" you can upgrade to Linux Mint 20.

If it says "i386", it means you're using the 32-bit version. In this case you cannot upgrade and you need to stick with Linux Mint 19.3.

B2. Experience

To upgrade to Linux Mint 20 you need experience with APT and the command line.

Upgrading to a newer package base is not trivial and it should not be performed by novice users.

You need to know how to type commands and read their output.

You also need to be experienced with APT. During the upgrade you'll need to understand the output of APT commands. You'll need to understand if a package needs to be removed, if it blocks the upgrade or if it conflicts with another package.

C. Preparation

C1. Apply all package updates

To apply all updates:

  • Launch the Update Manager with "Menu -> Administration -> Update Manager".
  • Press the "Refresh" button to update the cache.
  • Press the "Select All" button to select all updates.
  • Press the "Install Updates" button.
  • Follow the instructions from the Update Manager and install all updates until the manager tells you the system is up to date.
  • Reboot the computer.

C2. Create a system snapshot

If anything breaks or if anything goes wrong during the upgrade, you can go back in time and revert all changes by restoring your latest system snapshot. Whatever happens, you're covered. You'll be able to restore your operating to this current state, either from within Linux Mint, or by launching Timeshift from a live Mint session (live DVD or live USB).

To create a system snapshot:

  • Launch Timeshift with "Menu -> Administration -> Timeshift".
  • Follow the wizard to select a destination for your snapshots.
  • In the toolbar, click on the "Create" button to make a manual snapshot of your operating system.

D. Upgrade

D1. Install the upgrade tool

To install the upgrade tool, open a terminal and type:

apt install mintupgrade

D2. Check the upgrade

To simulate an upgrade, open a terminal and type:

mintupgrade check

Then follow the instructions on the screen.

This command temporarily points your system to the Linux Mint 20 repositories and calculates the impact of an upgrade.

Note that this command doesn't affect your system. After the simulation is finished, your original repositories are restored.

The output shows you if the upgrade is possible, and if it is, which packages would be upgraded, installed, removed and kept back.

It is extremely important that you pay close attention to the output of this command.

Keep using "mintupgrade check" and do not proceed to the next step, until you're happy with the output.

D3. Download the package upgrades

To download the packages necessary to upgrade, type the following command:

mintupgrade download

Note that this command doesn't actually perform the upgrade itself, but just downloads the packages.

D4. Apply the upgrades

Note: This step is non-reversible. Once you perform it, the only way to go back is by restoring a system snapshot.

To apply the upgrades, type the following command:

mintupgrade upgrade

D5. Downgrade foreign packages

Some packages either no longer exist in Linux Mint 20, or have a lower version than in Linux Mint 19.3. To guarantee they function properly, they need to be downgraded.

  • Launch the Software Sources tool from "Menu -> Administration -> Software Sources".
  • Open the "Maintenance" tab and click on "Downgrade Foreign Packages".
  • Select all foreign packages and click "Downgrade".

D6. Delete foreign packages

  • Launch the Software Sources tool from "Menu -> Administration -> Software Sources".
  • Open the "Maintenance" tab and click on "Remove Foreign Packages".
  • With the exception of packages you installed yourself (from 3rd party sources), select all foreign packages and click "Remove".

E. Alternatives

If you cannot upgrade please perform a fresh installation.

Generic instructions on "fresh upgrades" are also available at https://community.linuxmint.com/tutorial/view/2

F. Notes

  • It is recommended to use the default Linux Mint mirror before upgrading, to make sure you're using the latest version of mintupgrade. You can check your version of mintupgrade with "apt policy mintupgrade".
  • The upgrade overwrites files in /etc/ with default configuration files. You can restore files indivually by the Timeshift snapshot you made prior to upgrading.
  • To restore your lightDM settings, run the Login Window configuration tool (sudo lightdm-settings).
  • A known issue affects Timeshift. When restoring a snapshot, if the "Disclaimer" window is empty, wait for about 2 minutes for the text to appear. Once the disclaimer text is there you can press Next and restore your snapshot. Pressing Next before the text appears results in a failure to restore. If you did, reboot and try to restore again.
  • If for some reason you do not want to use timeshift, you can force the upgrader to not require it by typing the following command: "sudo touch /etc/timeshift.json".
  • The upgrade is quite intensive and it can temporarily freeze. This can last for up to 10 minutes at times and it can also freeze Cinnamon. This is OK, be patient and give it time. If this becomes a problem, logout completely, drop to console (CTRL+ALT+F1) and run "mintupgrade upgrade" from there instead.

Source community.linuxmint.com

Report Page