Skip to content
Follow
Ubuntu Linux

How to Disable Automatic Updates in Ubuntu 24.04

Richard
Written by
Richard
Dec 18, 2024 Updated Jul 13, 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 means stopping your computer from downloading and installing software changes by itself. Ubuntu uses a tool called unattended-upgrades to handle these background updates automatically.

These automatic updates normally install important security fixes and software improvements without you needing to do anything. They run in the background to keep your system up-to-date.

You might want to turn off automatic updates in Ubuntu 24.04 if you manage a server and need complete control over when changes happen, or if you prefer to check software updates yourself before they are installed.

⚡ 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`.

Uninstall the unattended-upgrades package

⚠️Warning
One way to disable automatic updates is to uninstall the unattended-upgrades package, which Ubuntu uses to update the OS. Running the command below will disable automatic updates on your system.

To uninstall the package, run the command below.

Disabling automatic updates in Ubuntu 24.04 involves editing the `/etc/apt/apt.conf.d/20auto-upgrades` file. This action stops background updates without removing any installed programs. To disable automatic updates, open the `/etc/apt/apt.conf.d/20auto-upgrades` file using the command `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.

🐧Bash / Shell
sudo nano /etc/apt/apt.conf.d/20auto-upgrades

Then, change the values to ‘0’ to disable both Update-Package-Lists and Unattended-Upgrade in the file.

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

Save the file and exit.

Disable automatic updates via Systemd

Disabling automatic updates in Ubuntu 24.04 can also be done using a Systemd command (a tool for managing system services), which is a fast way to manage background services like unattended upgrades. To stop these updates immediately, run the command: sudo systemctl disable –now unattended-upgrades. This command turns off the automatic update service right away.

Run the command below to do that.

🐧Bash / Shell
sudo systemctl disable --now unattended-upgrades

That should do it!

Conclusion:

Disabling automatic updates in Ubuntu gives you more control over how your system’s software is managed. Here are the key points to consider:

  • 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.

Consider your system’s needs carefully before choosing the update strategy that works best.

How do I disable unattended upgrades in Ubuntu 24?

To disable unattended upgrades, you’ll need to 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.

📚 Related Tutorials

How to Pause Updates in Windows 11
Windows How to Pause 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 *