Skip to content
Follow
Ubuntu Linux

How to Disable Automatic Updates in Ubuntu 24.04

Richard
Written by
Richard
Dec 18, 2024 Updated Sep 15, 2026 2 min read
How to Disable Automatic Updates in Ubuntu 24.04
How to Disable Automatic Updates in Ubuntu 24.04

Disabling automatic updates in Ubuntu 24.04 stops the operating system from downloading and installing software changes behind your back. Ubuntu uses a background tool called unattended-upgrades (a service that handles security patches automatically) to manage system updates.

Advertisement

Turning off this feature gives you complete control over your PC, letting you install updates only when you want. You can stop these background routines by editing a configuration file or using the terminal.

⚡ Quick Answer

You can disable automatic updates in Ubuntu 24.04 by uninstalling the unattended-upgrades package using `sudo apt remove unattended-upgrades`. Alternatively, edit the `20auto-upgrades` file to set update values to “0” or disable the unattended-upgrades service with `sudo systemctl disable –now unattended-upgrades`.

Advertisement

Uninstall the unattended-upgrades package

You can disable automatic updates Ubuntu by removing the unattended-upgrades package (a background tool that installs system updates). Open your terminal and run the command sudo apt remove unattended-upgrades to completely uninstall it. This stops your system from downloading and installing updates in the background without your permission.

To uninstall the package, run the command below.

Stopping background updates involves editing the `/etc/apt/apt.conf.d/20auto-upgrades` file without removing any installed programs. Open `/etc/apt/apt.conf.d/20auto-upgrades` in a text editor by running `sudo nano /etc/apt/apt.conf.d/20auto-upgrades`. Then, change the value from ‘1’ to ‘0’ within the file.

To do that, run the command below to open the file.

Advertisement
sudo nano /etc/apt/apt.conf.d/20auto-upgrades

Change the values to '0' to disable both Update-Package-Lists and Unattended-Upgrade in the file.

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

Save the file and exit.

Disable automatic updates via Systemd

You can disable automatic updates Ubuntu through systemd (a suite of system management tools) to stop background update routines immediately. Open your terminal and run the command sudo systemctl disable --now unattended-upgrades. This turns off the background service right away so it stops running in the background.

Run the command below to do that.

Advertisement
sudo systemctl disable --now unattended-upgrades

This completes the process.

Conclusion:

Disabling automatic updates grants greater control over system software management. Review these key points before proceeding:

  • Control: Disabling automatic updates lets you choose when and what updates to apply.
  • Testing: Manual updates allow you to test updates in a production environment before implementation thoroughly.
  • Avoid Conflicts: Prevents potential conflicts with critical applications relying on specific configurations.
  • Methods Available: You can disable automatic updates through package uninstallation, configuration file editing, or Systemd commands.
  • Trade-offs: While automatic updates enhance security and convenience, manual control can be crucial for specific environments.

Weigh system requirements carefully before choosing the update strategy that fits best.

How do I disable unattended upgrades in Ubuntu 24?

To disable unattended upgrades, set these options to zero: APT::Periodic::Update-Package-Lists "0"; APT::Periodic::Unattended-Upgrade "0"; Systemd timer units, apt-daily. timer and apt-daily-upgrade.

Was this guide helpful?

Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

Advertisement

📚 Related Tutorials

How to Disable Automatic Windows Updates in Windows 11
Windows How to Disable Automatic Windows Updates in Windows 11
How to Enable or Disable Windows 11 Updates with wushowhide.diagcab
Windows How to Enable or Disable Windows 11 Updates with wushowhide.diagcab
How to Install GNOME Desktop on Ubuntu 24.04
Ubuntu Linux How to Install GNOME Desktop on Ubuntu 24.04
How to Install KDE Desktop on Ubuntu 24.04
Ubuntu Linux How to Install KDE Desktop on Ubuntu 24.04

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *