Ubuntu 25.04 and later let an administrator allow users to postpone automatic updates for a limited number of days, configured in a single file. The value you set is the number of days allowed, and setting it to 0 disables the feature.
Key takeaways
- Confirm every machine runs Ubuntu 25.04 or later, because the option starts with that release.
- Edit
/etc/apt/apt.conf.d/50unattended-upgrades(as root) and setUnattended-Update::Postpone-For-Daysto your chosen number of days. - Set the value to 0 to turn the postpone feature off.
- Check the log after each run. A scheduled restart shows a shutdown warning with the reboot time and the cancel command.
- A critical service set to 0 is excluded from automatic restarts while the rest of the system still updates.
Why the postpone setting matters before you update
You run office PCs on Ubuntu. You set update rules once, then people work. The point of automatic updates is that you are not the one clicking "install" on thirty machines.
But an update that lands mid-morning can pull someone out of a document. Since Ubuntu 25.04, you can hand that person a short window to push the update later. The window is a number of days you choose.
Ubuntu introduced this in the 25.04 release: "Starting with Ubuntu 25.04, a system administrator can allow users to postpone these automatic updates for a limited number of days by setting the Unattended-Update::Postpone-For-Days option." The full note is on the Automatic updates page in Ubuntu Server documentation.
Three things are worth checking before you push anything. You need to confirm your fleet can use the option. You need to know where the setting lives. And you need to know what happens when the postpone window closes, so you can check the log.
The bigger frame for this work sits in the NCSC's device-security collection: "Guidance for organisations on how to choose, configure and use devices securely." That is the NCSC device security guidance on policies and settings.
Who this is for
This is for the person who is the whole IT function. You are not a team. You are one person with a config file, a shared spreadsheet of machine names, and a Tuesday afternoon.
Your machines are office desktops and laptops. Staff use them for documents, mail, and a browser. A restart at the wrong moment costs someone an afternoon of work. An update that never happens costs you a security gap.
If you manage servers rather than desktops, the postpone feature is less central. Servers usually run headless. No one sits at the console to click "postpone". For those, the restart and service-exclusion rules matter more.
If your fleet runs an Ubuntu version older than 25.04, the postpone option will not be recognised. Check the release of every machine first. Then decide whether the fleet is ready for a version that supports it.
The three rules
Rule one: confirm the version supports postpone
The postpone feature exists on Ubuntu 25.04 and later.
Run your version check across the fleet before you edit anything. You are looking for machines on 25.04 or a later release. Anything older needs an upgrade path first, or you ship an option those machines do not offer. For related Ubuntu upgrade rules, see Ubuntu upgrade prompts: 3 rules for office Linux PCs.
If most of the office is on an older release, the clean move is to plan a version upgrade for the fleet first. Then apply the postpone rule once, fleet-wide, on a base you trust.
Rule two: set the days in the right file
You enable the feature in one file. Ubuntu's instructions are explicit: "To enable the feature, edit the /etc/apt/apt.conf.d/50unattended-upgrades file and set the number of days that a user is allowed to postpone the automatic updates for." That is from the Automatic updates page.
The file path is /etc/apt/apt.conf.d/50unattended-upgrades. You need root to edit it. Make a copy first so you can restore the old behaviour if something goes wrong.
The option name is Unattended-Update::Postpone-For-Days in Ubuntu's main instructions, but its worked example spells it Unattended-Upgrade::Postpone-For-Days. Confirm the exact name in your 50unattended-upgrades file before you deploy.
Ubuntu gives a worked example: "For example, if Unattended-Upgrade::Postpone-For-Days "3" is set, then the user can postpone upgrades for up to three days." A three-day window means a person who is mid-project can finish, then take the update.
Pick a number that matches how your office actually works. A team that ships on Fridays will want a window that carries them past the weekend. A team with a quiet Monday may want the shortest useful window.
Here is what the main choices look like side by side:
| Setting value | What happens on the office PC |
|---|---|
| A number such as 3 | The user may postpone automatic updates for up to three days |
| 0 | The postpone feature is disabled |
After editing the file, you can force a run to see the behaviour on one machine before you touch the rest. Watch the log for the run. Ubuntu's own example starts with a log line for an unattended-upgrades run that began at 20:43, on the Automatic updates page.
Rule three: know what the restart log shows
A postpone window limits how long updates can be deferred. You should know what a run looks like when it needs a restart, because a restart during working hours is what you are trying to avoid.
A run that needs a restart writes a warning to the log. The example on the Automatic updates page shows the exact shape: 2025-03-13 20:43:40,207 WARNING Shutdown msg: b"Reboot scheduled for Thu 2025-03-13 20:45:00 UTC, use 'shutdown -c' to cancel." The machine sets its own reboot time and logs the command that would cancel it.
That log line is your post-update check. After each update run, check the log for what the system decided. If a restart fired at a bad hour, you will see it there.
Ubuntu also documents a related exclusion: "Set a critical service to 0 to exclude it from automatic restarts while still allowing the rest of the system to be handled automatically." The setting is on the same Automatic updates page. Use it when a service on an office machine must not bounce while updates land.
Excluding a service does not stop the update. It stops that one service from restarting with the rest, so test it on one machine first.
To turn the postpone feature off, the instruction is plain: "To disable the feature, set the number of days to 0." That is also on the Automatic updates page. Setting the value to 0 restores a machine that never offers a postpone prompt.
Turning the feature on and off
The same file controls both states. You set a positive number of days to enable postponing. You set 0 to disable the feature.
If you change your mind mid-rollout, you do not need a new config file. Edit the value, save, and verify the change on a test machine. Push the change to the fleet with whatever tool you already use for config.
Keep a record of what value was live on each date. If a user reports a restart they did not expect, you will want to know whether postpone was on, and for how many days, at that moment.
Things that go wrong in practice
Option not recognised. If the machine runs a release older than 25.04, the option is not offered. Confirm the version before you write the file.
Restart at a bad time. The postpone window has a limit. If a reboot is scheduled, check the shutdown warning in the log to see its time.
Critical service bounced. If a service on an office machine must stay up, set that service to 0 for automatic restarts. Test on one machine first.
Fleet split across versions. Some machines accept the option, others do not offer it. You end up with inconsistent behaviour across the office. Normalize the Ubuntu version first.
Edit lost on package update. Configuration in /etc/apt/apt.conf.d/ can be touched by package operations. Re-check the file after any major system change.
Setting up the change across the office
You have confirmed the version. You have picked a number of days. You have the file path. Now you roll it out.
Start with one machine that is not someone's main workstation. Edit the file there. Save a copy of the original first. Force an unattended-upgrades run and read the log.
Watch for the run log line with the start time. Watch for a shutdown warning if a reboot is scheduled. Confirm the postpone prompt appears on the desktop when you try to defer.
Once one machine behaves, push the same file to the rest. For how to time the rollout around your other patches, see Office update timing: 4 rules to check before patching. If you manage machines centrally, treat this as a config item with a version, not a one-off edit.
Check the logs after the first update run. Look at the log on a sample of machines. Confirm restarts happened when you expected and not in the middle of a meeting.
If something in your setup is not covered by the Ubuntu documentation or your own testing, ask your Ubuntu support contact or the maintainer of the package before you change the fleet.
Checklist before you push updates
- Confirm every office machine runs Ubuntu 25.04 or a later release.
- Decide the number of days you will allow, and write it down.
- Copy
/etc/apt/apt.conf.d/50unattended-upgradesbefore you edit it. - Set
Unattended-Update::Postpone-For-Daysto your chosen value. - Force a test run on one machine and read the log.
- Confirm the postpone prompt appears on the desktop.
- Check the shutdown warning line for the reboot time it chose.
- Set any must-not-restart service to 0 for automatic restarts.
- Push the file to the fleet.
- Review the logs after the first update run.
Your next step today: pick one machine that is not someone's main workstation, and copy its 50unattended-upgrades file before you change anything.
FAQs
What is the maximum number of days a user can postpone?
You set the number yourself in the config file, so the limit is whatever value you choose for your office.
Does setting postpone to a number also stop the updates?
No. Postpone only delays.
Where is the setting stored?
In /etc/apt/apt.conf.d/50unattended-upgrades, under the option name Unattended-Update::Postpone-For-Days. You need root access to edit that file.
Can I exclude a single service from restarting during updates?
Yes. Set that critical service to 0 for automatic restarts. The rest of the system still handles updates automatically.
What log line tells me a reboot was scheduled?
A shutdown warning line that names the reboot time and the command you would use to cancel it. It is written by the update run when a restart is needed.
Should I set the same value on every machine?
For an office fleet, a single consistent value is simpler to support. Different values across machines make it hard to answer a user who asks why their colleague got a prompt and they did not.
Does the postpone prompt appear on a server?
On a headless server, nobody is there to postpone, so the restart and service-exclusion rules matter more there.
What happens if I set the value to a number the package does not understand?
The file will still hold your text, but the behaviour will not match what you expect. Test on one machine after any edit, and read the run log to confirm.