- Linux mint software update
- Как обновить Linux Mint до новой версии
- Создание резервной копии
- Подготовка
- Обновление Linux Mint
- Перезагрузка компьютера
- Beginner’s Guide to System Updates in Linux Mint
- Linux Mint Update Manager
- Create Timeshift backup (optional yet recommended)
- Installing updates
- Rollback if the system crashed after the update (Backup required)
- Add the fastest mirrors to speed up the download (optional)
- Update everything at once (for intermediate to advanced users)
Linux mint software update
Installation of software updates are very important in every operating system. We can either configure the installation of package updates manually or automatically in Linux Mint. This tutorial explains you how to enable the installation of software package updates automatically in the Ubuntu-based editions of Linux Mint.
Open your terminal and run the update:
sudo apt-get update
Install the “unattended-upgrades” package:
sudo apt-get install unattended-upgrades
This is the package used to install the updated packages automatically.
The configuration files are located at /etc/apt/apt.conf.d
To configure the unattended-upgrades edit the /etc/apt/apt.conf.d/50unattended-upgrades file and make changes according to your need:
// Automatically upgrade packages from these (origin, archive) pairs Unattended-Upgrade::Allowed-Origins "$ $-security"; // "$ $-updates"; // "$ $-proposed"; // "$ $-backports"; >;
Note : “ // “ is a comment line. So whatever follows by the comment line ( // ) cannot be evaluated.
To enable the updates simply remove the comment line ( // ).
If you dont want to install the software updates for certain packages, just add those package names in the Blacklist:
// List of packages to not update Unattended-Upgrade::Package-Blacklist // "vim"; // "libc6"; // "libc6-dev"; // "libc6-i686"; >;
The results of unattended-upgrades will be logged to /var/log/unattended-upgrades
To enable automatic updates, edit /etc/apt/apt.conf.d/10periodic and set the appropriate apt configuration options:
APT::Periodic::Update-Package-Lists "1"; APT::Periodic::Download-Upgradeable-Packages "0"; APT::Periodic::AutocleanInterval "30"; APT::Periodic::Unattended-Upgrade "1";
The above configuration updates the package list, downloads, and installs available upgrades every day.
The local download archive is cleaned every thirty days.
Note : Here the number represents the days.
Как обновить Linux Mint до новой версии
Рассмотрим, как обновить установленную систему Linux Mint до свежей версии.
Мы будем рассматривать процесс обновления дистрибутива Linux Mint 19.1 до Linux Mint 19.2.
Создание резервной копии
Перед обновлением желательно создать резервную копию важных данных и сделать снимок системы (снапшот).
Снимок системы позволит вам восстановить прежнее состояние системы, если во время обновления возникнут какие-нибудь сбои.
Для создания снимка системы можно использовать программу Timeshift. Запустить программу можно из главного меню из раздела Администрирование ( Administration ) .
Подготовка
Разработчики дистрибутива рекомендуют отключить экранную заставку (скринсейвер) перед началом обновления, так как в некоторых случаях она может заблокировать вам доступ к рабочему столу. Чтобы отключить заставку в главном меню выберите пункт Параметры→Экранная заставка ( Preferences→Screensaver ) .
В открывшемся окне в разделе Настройки заставки установите время задержки в состояние Никогда
Также, если ранее вы устанавливали дополнения Cinnamon spices, обновите их через системные настройки.
Обновление Linux Mint
Теперь можно выполнить обновление дистрибутива.
Запустите утилиту Менеджер обновлений (Update Manager). Для этого в главном меню выберите пункт
Администрирование→Менеджер обновлений ( Administration→Update Manager )
В Менеджере обновлений нажмите кнопку Проверить обновления , чтобы проверить не появилась ли новая версия самой утилиты «Менеджер обновлений» (в которой вы сейчас находитесь): пакеты mintupdate и mint-upgrade-info.
Если есть обновления для пакетов mintupdate и mint-upgrade-info, то отметьте их галочками и нажмите кнопку Установить обновления
Теперь в меню выберите пункт Правка→Обновить до «Linux Mint 19.2 Tina» ( Edit→Upgrade to «Linux Mint 19.2 Tina» ) (версия дистрибутива может отличаться).
Откроется утилита, в которой необходимо выполнить несколько простых шагов.
Вам требуется только нажимать кнопку Следующая ( Next ) . На предпоследнем шаге установите галочку у пункта « Я понимаю риск. Я хочу обновиться до Linux Mint.. » и нажать кнопку Применить .
Начнется процесс обновления системы. Сначала будут загружены новые версии пакетов, затем будет произведена их установка. Процесс может занять продолжительное время.
Перезагрузка компьютера
Когда обновление завершится, необходимо перезагрузить компьютер.
Beginner’s Guide to System Updates in Linux Mint
New to Linux Mint? It has an excellent system updater tool. Learn about this tool and the best practices you should follow.
- Create backups using Timeshift (optional yet recommended)
- Prioritizing and installing updates (know the different types of updates)
- Restore from the Timeshift backup (if the update messed up the system)
- Adding the fastest mirrors (optional but good to know)
Linux Mint Update Manager
When there are updates available for your system, you’ll notice a ‘secure’ symbol with red dot on it in the bottom right corner of the screen (notification area).
If you click on it, you’ll see the available system updates. By default, all updates are selected to be installed. You can deselect some (if you know what you are doing).
Before you learn more about the types of updates and their installation, I would like to talk about backups.
This article is about updating the Linux Mint system. It is not about upgrading Mint to a newer version. That is a different topic.
Create Timeshift backup (optional yet recommended)
Linux Mint is a stable distro as it is based on the long-term support version of Ubuntu. Updates you install will rarely create problems.
Rarely but possible. Say you forced power off the system while it was installing package updates. It is possible that it may mess up the perfectly working system.
Precaution is better than cure. So I recommend making regular backups. If nothing else, make a backup before applying updates.
Linux Mint comes preinstalled with Timeshift backup application. It is a third-party tool but is highly recommended by Mint developers.
To create a backup, start the Timeshift from the system menu:
If you haven’t used it before, it will ask you several questions before allowing you to create a backup.
First, it will ask you which type of backup you want to create. There are two options: RSYNC and BTRFS.
RSYNC is based upon hard links and can work on any filesystem, whereas BTRFS is only used for the BTRFS filesystem.
If you don’t know what to choose, select RSYNC as it would work just fine:
Next, it will ask you where you want to store the snapshots.
If you have multiple drives, it would show multiple options but for most users, there will be a single option. In my case, it was vda3:
Now, it will ask you to choose the directories that need backing up.
By default, it will exclude all the files inside the home directory and I recommend you do the same.
Timeshift is primarily used for backing up system settings. Using it to backup personal files in home directory will take up a huge amount of disk space and is impractical. Use DejaDup for personal file backups on an external disk.
Once done, it will show you a page informing the setup is complete.
Now, you can create a backup by clicking on the Create button:
It may take a while, based on your choices during the setup.
Once done, the snapshot will reflect in the Timeshift:
Great! So now you have created the backup. Let’s go back to the system updater.
Installing updates
First, open the update manager from the system menu:
Here, you will find a list of packages that need to be updated and all of them will be selected by default (I would recommend you go with the same).
But if you want, you can uncheck software updates or kernel updates if you want to stick to that specific version only.
To make things simple, in Linux Mint, the updates are divided into three categories:
- Security patches (Highest priority and indicated by🛡): You are supposed to install the security patches immediately as it is supposed to save you from your system’s current vulnerability.
- Kernel updates (Medium priority and indicated by 🗲 ): New kernel brings hardware support for new hardware, bug fixes for your current kernel, and may also have performance improvement.
- Software updates (Lowest priority and indicated by ⬆ ): These updates are meant to roll out new features and bug fixes in your software.
Again, I will advise you to go with the defaults!
Once you are done selecting, click on the Install Updates button, enter the password and it will start the installation of new packages:
That’s it! The system is updated!
Rollback if the system crashed after the update (Backup required)
If you can access the GUI, you can easily roll back to the previous state using the Timeshift backup you had created earlier.
First, open the Timeshift from the system menu and it will show the created snapshots backup you took in the past:
To restore to the previous state, select the snapshot and click on the Restore button:
Next, it will ask you to select the targeted devices. I would recommend going with the selected options:
Click on the next button and it will start the restoration process!
If your system does not boot, you can use a live Linux Mint USB, boot from it and install Timeshift in the live environment. Run Timeshift and it should detect the Timeshift backups present on the hard disk. You can restore it from here.
Add the fastest mirrors to speed up the download (optional)
Selecting the fastest mirror is nothing but choosing the closest server to you, which will eventually reduce the latency and get you a faster experience.
That’s how it should work in theory. But sometimes, sticking to the main server is more reliable because the closest server may not always perform the best continuously. This is why this is an optional step.
To add the fastest mirror, first, open the software sources from the system menu and enter the password when asked:
Once you do that, you’d have to do the following:
- Select the first mirror (labeled as Main)
- Wait for some seconds and choose the fastest mirror
- Click on apply
- Now, choose the second mirror (labeled as Base)
- Choose the fastest mirror and click on the apply button
Once done, it will show the message saying, «Your configuration changed, click OK to update your APT cache.»
Click on the OK button and it will start updating the cache and will activate the fastest mirrors you chose recently:
Update everything at once (for intermediate to advanced users)
The Update Manager works on the deb packages through the apt command line utility.
But Linux packages are also fragmented. There are Snap, Flatpaks and AppImages. Using multiple package managers means updating each type of package manually.
This is where you can use a terminal utility called Topgrade which will update everything at once. Sounds interesting? Here’s the detailed guide:
Now, you should have a good idea about the system update process in Linux Mint.
🗨 Please let me know if you learned something new in this tutorial. Also, if I missed something you think I should have mentioned, please mention it in the comments.