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.
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
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.
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.
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.
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?
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.
No comments yet — be the first to share your thoughts!