How to Disable Automatic Updates in Ubuntu

Regularly updating your applications is important to protect your system from vulnerabilities and keep it updated with the latest features and security patches.

In Ubuntu, automatic updates are enabled by default and keep your system updated without needing to manually update packages. Some users prefer to have manual control over updates as it gives them the flexibility to install updates according to their preferences.

4

Let’s see how you may disable automatic updates in Ubuntu.

Why Disable Automatic Updates on Ubuntu?

Manually updating your systemregularly can be a time-consuming and tiresome task. Automatic update, also known as the Unattended Upgrade feature on Ubuntu makes this task easier. It automatically checks and installs security and other updates without any manual intervention.

It also has some drawbacks like it consumes bandwidth and resources which slow down your system and affect other processes, particularly during peak hours. By disabling automatic updates, you can have manual control over when and which update to run.

a woman disabling automatic updates in ubuntu

Furthermore, when you try to install some packages on Ubuntu while the automatic update is running in the background, you will receive an error stating “Waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend.”

This is quite irritating as it does not let you install the package until the update is finished. To prevent this from happening again, the only option you have is to disable automatic updates.

error due to unattended upgrades

How to Disable Automatic Updates on Ubuntu

Automatic updates in Ubuntu are handled by the unattended-upgrades package which is preinstalled on most of the Ubuntu releases. To check if Unattended Upgrades is installed and running on your system, use the following command:

You can also check this by viewing the current configuration of Unattended Upgrades:

check current configuration of automatic updates

If you see an output like below, it means the automatic update is enabled.

If the value ofAPT::Periodic::Update-Package-ListsandAPT::Periodic::Unattended-Upgradeis"0", it means automatic updates are disabled.

disable automatic upgrade

To disable Unattended Upgrades on Ubuntu, run the following command:

This will open the configuration file in the Nano editor. Change the value ofUpdate-Package-ListsandUnattended-Upgradeto0:

Once done, save and close the file.

This would tell the system to disable the automatic downloading and installation of updates. After that, run the following commands to verify if the automatic updates are disabled:

If they are, you would receive the following output:

In the future, if you want to re-enable automatic updates, open the/etc/apt/apt.conf.d/20auto-upgradesfile and change the values ofUpdate-Package-ListsandUnattended-Upgradeto1.

If you want to permanently disable the automatic updates feature, run the following command:

Disable Automatic Updates on Ubuntu Graphically

You can also disable automatic updates on Ubuntu graphically. To do so, press theSuperkey on your keyboard and type “software and updates.” From the search results, select theSoftware & Updatesoption.

Under theUpdatestab, you will see different options for update configuration. By default, it is configured to check for updates daily. If you do not want the system to automatically check for updates, set the value ofAutomatically check for updatestoNever.

Similarly, changeWhen there are security updatesfromDownload and install automaticallytoDisplay immediately. This will let you know about any security updates as soon as they are available.

These settings only disable the system from checking the updates automatically. You can still check and install the updates manually whenever you want.

Installing Updates Manually on Ubuntu

To manually check and install updates on your system, run the followingupdate and upgrade commands:

You can alsomanually install updates on Ubuntu graphicallyusing the Ubuntu Software Updater tool.

Package Updates Help Maintain System Security

While it is not recommended to disable automatic updates in any operating system, there may be some reasons you might want to do anyway.

Whatever the reason, you can now easily disable automatic updates in Ubuntu either through the command line or graphically. However, make sure to manually upgrade your system and applications regularly to maintain system security and minimize the risk of breaches.

Regular app updates are important for any Linux system. Here’s how you may update one app or all apps on Linux easily.

The best features aren’t the ones being advertised.

Every squeak is your PC’s way of crying for help.

Don’t let aging hardware force you into buying expensive upgrades.

These are the best free movies I found on Tubi, but there are heaps more for you to search through.

Who asked for these upgrades?

Technology Explained

PC & Mobile