Every Windows user is familiar with such a notification as "Do not turn off your computer, a system update is in progress". Now this situation can happen when using Ubuntu system. Automatic update is started immediately after the distribution is loaded and interferes with the installation of packages. For automatic updates is responsible for the program unattended-upgrades, which comes with Ubuntu by default. You can disable the program, and with it the automatic update, in various ways.
In the GUI, there is an option to disable checking for updates. Logically, if the system will not search for and find updates, then no installation in automatic mode will not take place. To do this, "Programs and Updates" and then click on the "Updates" tab:
Select "Never" against the "Automatically check for updates" option.
The next way to disable automatic updates involves configuring a package called unattended-updates
. To do this, open the file named /etc/apt/apt.conf.d/20auto-upgrades
and make the following changes: set APT::Periodic::Unattended-Upgrade and APT::Periodic::Update-Package-Lists
to 0:
$ sudo vi /etc/apt/apt.conf.d/20auto-upgrades
The user still has the option to disable only individual update sources. To this end, you need to work with the configuration file /etc/apt/apt.conf.d/50unattended-upgrades
. In Unattended-Upgrade::Allowed-Origins
, selectively comment out individual positions, for example:
$ sudo vi /etc/apt/apt.conf.d/50unattended-upgrades
Unattended-Upgrade::Allowed-Origins {
// "${distro_id}:${distro_codename}-security";
// "${distro_id}:${distro_codename}-updates";
// "${distro_id}:${distro_codename}-proposed";
// "${distro_id}:${distro_codename}-backports";
};
If you add the names of certain programs to the package sections of Unattended-Upgrade::Package-Blacklist
, this will command you not to search for or install service packs for them:
Unattended-Upgrade::Package-Blacklist {
"vim";
"libc6";
};
Disable only those programs and updates that you really don't need. Otherwise you will have to search for and install them in Ubuntu yourself in the future.