27
July
2021
16:15

Peculiarities of upgrade Linux Mint 19.3 Tricia -> 20.0 Ulyana -> 20.2 Uma

27 July 2021 16:15

The upgrade of the Linux 19.3 version to 20.2 took all day, but passed successfully.

Preparation for updating the version of Linux Mint 19.3

  1. In the official Linux Mint instructions for updating the version until 20.0 it is said that first you need to disable all PPA repositories
    In "Parameters" - "sources of applications" - "PPA repository". Similarly, during the installation, I disconnected additional repositories in the menu "Applications Sources" - "additional repositories".

  2. The same instructions say that you need to delete third -party packages in “Parameters” - “Application Sources” - “Service” - “Removing third -party packages”. Guided by the instructions, I initially rolled back the versions of "Service" - "Rolling back of third-party packages", then removed the maximum of packages from the window "Removing third-party packages"

    The removal of third-party packages did not immediately produce effect, but in portions of 10 pieces. Since there are packages that cannot be deleted:

    • initscripts
    • isserv
    • libcryptsetup4
    • libprocps4
    • mountall
    • sysv-rc
      We left them, in the hope that they will update from the repository at the next steps.
  3. SQL server mysql "breaks" the process of updating the version of Linux Mint. Therefore, before updating, be sure to remove

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

Do not forget before removal of mysql server to make a backup copy of the databases using the mysql-backup program.

  1. Also, the installation process interfere (there are reports of the wrong version of the packages) the following programs:
    • Wine-Stable
    • Wine-HQ
      We delete them for a while:

sudo apt-get remove wine-stable

  1. It is necessary to ensure free space on the section of the hard drive /DEV /SDA1, where the OS is installed - at least 4 GB. Checking the command df -h.

  2. We update all packages to the very latest versions:

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

  1. Disabled the password of the Guardian of the screen. Even better, turn off the Screen saver completely, in the "Start" menu - "Parameters" - "Screensaver" or by completing the command

xscreensaver-demo

In the graphic interface, you need to turn off the "Lock" switch of the Screensaver!

Version update from 19.3 to 20.0

We install the program for updating version 19.3 to 20.0 from the repository:

sudo apt-get install mint-upgrade

Consistently execute 3 commands, as written in the instructions

mintupgrade check
mintupgrade download
mintupgrade upgrade

At the Check stage, a temporary transition to the version of version 20.0 and a check of dependencies will be performed.

A message about an incompatible package due to the requirements of dependencies can be displayed. So, I had to remove the XFCE4 packagekeyboard-shortcuts. Others may have their own conflicting packages. We achieve that the preparatory stage 'mintupgrade check' passes without errors.

At the stage "Downloadad", downloading from the Internet - a high-quality connection is required (I have 100 Mbit/s) - about 2.6 GB of packages for replacing versions loaded.

At the renewal stage 'mintupgrade upgrade' a window may appear about comparing the versions of configuration files. In this case, first we study the upcoming changes to the configuration file (by selecting the "Compare" item) and mentally choose 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 version smB.Conf by pressing the N. key.

Command mintupgrade upgrade is irreversible. You must wait until it finishes and do not reboot your computer. (It takes a long time to complete).

In my case, at the very end due to the service mysql-server a runtime 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 many unnecessary "garbage" systems of packages that remain old dependencies, we clean them with the command

sudo apt-get autoremove

I also completed the item Start - Parameters - Applications sources - maintenance - "Cleaning the residual configuration".
This item caused an intensive address of the system to a hard disk, about 4-5 minutes, then a message "There is no longer a residual configuration in the system".

Linux Mint update version 20.0 to 20.2

Feature of Linux Mint Ulyna 20 update - forced kernel update from 4.15 to 5.4.0-80. Also, icons and some desktop animations will be updated.

  1. After updating and rebooting the computer, first version 20.0 will start and it will be proposed to choose a window manager (if several of them are installed). I use OpenBox, pressed on the corresponding line.

  2. Since there were previously an error of execution, at first I checked that all packages were configured:

dpkg --configure -a

The program was completed in a second.

  1. Now I have completed the cache of the packets from the Internet (if they suddenly have changed):
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
4. Launch of update version 20.2 - through the menu: **"Start" - "Parameters" - "Update Manager" - "Edit" ** where there is the corresponding item **"Upgrade to ..."** for updating to the version **20.2**. The transition to the new version this time took no more than 15-20 minutes. As last time, for updating you need a lot of free space on a hard drive: according to my estimates, 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" may suffer (next to the symbol "exclamation mark"). The solution to the problem is the right click on the label - **"Trust this executable file"**. 2. I will have to re -install **wine** from the repository by the team **`apt install wine-stable`**. 3. We will have to restore databases from backup copies. 4. Connect third -party PPA repositories and install the necessary programs from them. 5. It is advisable to study the withdrawal of the command **sudo Journalctl -xe**: are there any errors when starting services, and the last boot log **sudo journalctl -b**. In my case, the services stopped starting _"bluez"_ - Bluetooth system, _"phpmyadmin"_ for MySQL administration and _`rc-local.serVice`_ - Local Automotive Scripts. 6. Solving problems with services: * _bluez_ -`sudo apt-get remove bluez` - если не используется (на ПК нет адаптеров Bluetooth), * _phpmyadmin_ - setup **mysql** using commands `sudo apt-get update`, `sudo apt-get install tasksel`, `sudo tasksel install lamp-server` and [PHPMyAdmin update article](/kak-obnovit-phpmyadmin) * _rc-local_ - see article on external link [inclusion of rc.local](https://wp.secretnest.info/archives/12170) - The service was disabled in Ubuntu 20.2 for security reasons, as in Debian. But the service rc-local.serVice can be configured and turned on. --- ** Sources: ** * [Upgrade to Mint 20](https://linuxmint-user-guide.readthedocs.io/en/latest/upgrade-to-mint-20.html). * [Upgrade to Mint 20.2 - Linux Blog](https://blog.linuxmint.com/? p = 4111) * [System cheat sheetmctl -- статья lostt.ru](https://losst.ru/shpargalka-po-journaLCTL-V-LINUX)


Related publications