Disabling automatic upgrades on Ubuntu

In case some of your machines need to be updated automatically, you can disable the automatic upgrades in the following file :

/etc/apt/apt.conf.d/20auto-upgrades

Note: the naming of auto-upgrade script located in /etc/apt/apt.conf.d/ could be subjected to variations, usually the number indicating the read priority is the variable part and the file name will contain the “auto-upgrades” suffix.

Then, change all the values matching the pattern APT::Periodic::* to “0” :

APT::Periodic::Update-Package-Lists "0";
APT::Periodic::Unattended-Upgrade "0";

The changes will take effect immediatly.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s