27
July
2021
16:15

Features of the Linux Mint 19.3 Tricia -> 20.0 Ulyana -> 20.2 Uma update

27 July 2021 16:15

Upgrading Linux 19.3 to 20.2 took a whole day, but was successful.

Preparing to upgrade to Linux Mint 19.3

    1. B official Linux Mint instructions for upgrading to version 20.0 it says that first you need disable all PPA repositories
      in "Settings" - "Application sources" - "PPA repositories". Likewise, during installation I disabled additional repositories in the "Application Sources" menu - "Additional repositories".
  1. The same instructions say that you need to remove third-party packages in "Settings" - "Application sources" - "Maintenance" - "Removing third-party packages". Following the instructions, I first rolled back the “Maintenance” versions -"Rolling back third party packages", then removed maximum packages from the window "Removing third party packages"

    I did not remove third-party packages immediately, but in portions of 10 pieces. Because there are packages that cannot be removed:

    initscripts
    isserv

    • libcryptsetup4
    • libprocps4
      *mountall
    • sysv-rc
      I left them in the hope that they will be updated from the repository during the next steps.
  2. The mysql SQL server "breaks" the process of updating the Linux Mint version. Therefore, before updating, be sure to delete mysql with the command

sudo apt-get remove mysql-server mysql-server8.0

Before deleting the mysql server, do not forget to make a backup copy of the databases using the mysql-backup program.

  1. Also, the following programs interfere with the installation process (messages about the wrong package version appear):
    wine-stable
    wine-hq
    Let's remove them for now:

sudo apt-get remove wine-stable

  1. It is necessary to provide free space on the /dev/sda1 hard drive partition where the OS is installed - at least 4 GB. Team verification df -h.

  2. We update all packages to the latest versions:

    sudo apt-get update
    sudo apt-get upgrade
    sudo apt-get dist-upgrade

  3. Disabled the screen saver password. Even better, disable the screen saver completely, in the "Start" menu - "Settings" - "Screensaver" or by running the command

xscreensaver-demo

In the graphical shell you need to disable the screen lock!

Updating version from 19.3 to 20.0

Install the program to update version 19.3 to 20.0 from the repository:

sudo apt-get install mint-upgrade

We execute 3 commands sequentially, as written in the instructions

mintupgrade check
mintupgrade download
mintupgrade upgrade

At the "check" stage, a temporary transition to version 20.0 repositories will be performed and dependencies will be checked.

You may receive an incompatible package message due to dependency requirements. So, I had to remove the xfce4-keyboard-shortcuts package. Others may have their own conflicting packages. We ensure that the preparatory stage 'mintupgrade check' passes without errors.

At the “download” stage, a download is performed from the Internet - a high-quality connection is required (I have 100 Mbit/s) - about 2.6 GB of packages have been downloaded to replace versions.

During the 'mintupgrade upgrade' upgrade stage, a window may appear asking you to compare versions of configuration files. In this case, we first study the upcoming changes to the configuration file (by selecting the “Compare” item) and mentally select the best option: whether to leave the old file or replace it with the new one that comes with the new version of the package. In my case, Samba was configured on the PC, I left my smb.conf option by pressing the N key.

Team mintupgrade upgrade irreversible. You must wait until it finishes working and do not restart the computer. (Execution is very long).

В мIn this case, at the very end, due to the mysql-server service, an execution error occurred - return code 1. But this error turned out to be insignificant: after rebooting the PC, the operating system loaded.

After updating the system version, there will be a lot of unnecessary “junk” system package files, remaining old dependencies, we clean them with the command

sudo apt-get autoremove

I also completed the point Start - Settings - Application Sources - Maintenance - "Clean up residual configuration".
This item caused the system to intensively access the hard drive, about 4-5 minutes, then the message "There is no more residual configuration in the system." appeared.

Upgrading Linux Mint version 20.0 to 20.2

ОсоThe disadvantage of the Linux Mint Ulyana 20 version is a forced kernel update from 4.15 to 5.4.0-80. Also, icons and some desktop animations will be updated.

  1. After updating and restarting the computer, version 20.0 will first launch and you will be asked to select a window manager (if there are several installed). I'm using Openbox, clicked on the appropriate line.

  2. Since there were runtime errors earlier, I first checked that all packages were configured:

dpkg --configure -a

The program completed in a second.

  1. Now I updated the cache of packages from the Internet (if they suddenly changed):

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade

  1. Launching the update version 20.2 - through the menu:
    "Start" - "Settings" - "Update Manager" - "Edit" where is the corresponding item "Upgrade to..." to update to version 20.2.

The transition to the new version this time took no more than 15-20 minutes. Just like last time, the update requires a lot of free space on your hard drive: I estimate 3 GB.

Conclusion

All problems were successfully resolved. The Linux Mint version update was successful.

After installation

  1. After the transition, the icons on the “Desktop” (next to the “exclamation mark” symbol) may be damaged. Solving the problem - right click on the shortcut -"Trust this executable".
  2. I'll have to reinstall wine from the repository with the command apt install wine-stable.
  3. You will have to restore the databases from backups.
  4. Connect third-party PPA repositories and install the necessary programs from them.
  5. It is advisable to study the output of the command sudo journalctl -xe: are there any errors when starting services, and a log of the last boot sudo journalctl -b. In my case, the services "bluez" - the Bluetooth system, "phpmyadmin" for administering MySQL and stopped starting rc-local.service - local startup scripts.
  6. Solving problems with services:
    • bluez -sudo apt-get remove bluez- if not used (there are no Bluetooth adapters on the PC),
    • phpmyadmin - installation mysql using commands sudo apt-get update,
      sudo apt-get install tasksel, sudo tasksel install lamp-server and my phpmyadmin update article
    • rc-local - see article at external link enabling rc.local- the service was disabled in Ubuntu 20.2 for security reasons, as in Debian. but the rc-local.service service can be configured and turned back on.

Sources:



Related publications