Questions tagged [unattended-upgrades]
15 questions
10
votes
2 answers
How to make `needrestart` not defer restarting some services
With unattended-upgrades duly set up to automatically do upgrades, reboots and all, I'm stumped to find output like this in its daily report sometimes:
...
Restarting services...
/etc/needrestart/restart.d/systemd-manager
systemctl restart…
cueedee
- 235
4
votes
3 answers
How to make sure docker service will start after containerd upgrade?
this morning I woke up to a 'service down' email I have received from watchdog.
After connecting to the server I have found the docker service down.
After little investigation, I have found that this morning Ubuntu made an unattended upgrade of the…
Krystian
- 326
- 2
- 7
- 19
3
votes
1 answer
Best practice for unattended upgrades on immutable servers
I use packer to build immutable Ubuntu 20.04 servers.
How can it work smoothly with unattended upgrades?
Since the image is not bundled like it was in the past the updates do not apply to new instances.
It means that when a server comes up…
Niro
- 1,551
2
votes
1 answer
Unattended-Upgrade configuration time used
While configuring Unattended-Upgrades, the "/etc/apt/apt.conf.d/50unattended-upgrades" file contains the following:
// If automatic reboot is enabled and needed, reboot at the specific
// time instead of immediately // Default:…
trebonedoow
- 21
- 1
1
vote
2 answers
mailx default FROM: address
I'm setting up email alert for unattended upgrades on ubuntu 18.04.
It looks like unattended-upgrades cannot set the 'FROM' address and rely on mailx.
On mailx I'm using SMTP so the from address must be qualified.
I get error that the from address…
Niro
- 1,551
1
vote
1 answer
Unattended-Upgrade sends status e-mail to wrong address
I have a strange error that I cannot figure out myself.
I want unattended upgrades to send a status e-mail to a certain address. But somehow it always changes the "to" field in that email to something else. No matter what I…
xronin
- 11
1
vote
2 answers
apt-get upgrade vs unattended-upgrades under ubuntu 20.04
unattended-upgrades seems to skip certain upgrades, e. g. google chrome upgrade.
A subsequent call of apt-get upgrade then finds and installs the ugrade.
Does this mean, I must schedule apt-get upgrade in addition to my unattended-upgrades config if…
user3599802
- 21
- 1
- 4
1
vote
0 answers
Is it safe to include upstream Nginx in unattended-upgrades?
My company has Nginx deployed from upstream's repositories. I would ideally like to include this repository in unattended-upgrades, but I'm concerned that this will break things at some point.
I understand that this carries the risk of bugs, which…
strugee
- 913
0
votes
1 answer
How to delay unattended ubuntu upgrades
I just discovered that this night both my mariadb server in cluster has been restarted by ap unattended upgrades. They are ubuntu 22.04 servers.
These servers are joined in a cluster and then I was lucky because the installation of the second server…
Tobia
- 1,426
0
votes
2 answers
unattended-upgrades breaking java processes
Recently due to a vulnerability detected in java, new version of packages (Ubuntu 22.04) were installed via the unattended upgrades procedure:
Start-Date: 2024-11-12 06:15:15
Commandline: /usr/bin/unattended-upgrade
Upgrade: openjdk-17-jre:amd64…
Kuba
- 103
0
votes
1 answer
Specify Log (journal) source of systemd service
I am using unattended-upgrades on Debian 12 to run system upgrades automatically.
My problem is, that this package doesn't write logs to stdout, but to a file in /var/logs/unattended-upgrades/. That's unpractical for me.
Can I specify an input…
0
votes
2 answers
Trigger a monit reload after unattended upgrades
I have run into an issue when combining monit with Ubuntu/Debian unattended upgrades. Monit monitors services and binaries, and flags changes, restarts processes, etc as needed. However, when a package providing a service is updated (say, nginx), a…
Synchro
- 3,339
- 6
- 30
- 40
0
votes
1 answer
Cron Docker container not rebooting properly after unattended upgrades
Disclaimer, I have very little experience with Docker and servers in general. Most of the server-related things I do by following manuals created by former employees and a lot of Googling.
We are using Docker swarm to manage updates to our Docker…
0
votes
0 answers
Windows 10 1909 OS Corruption Preventing Further Updates
We have multiple computers on the domain which have corruption within the OS. This corruption prevents the install of updates or upgrades.
I know the computers which have issues from the results of the command
DISM /online /cleanup-image /scanhealth…
RLBChrisBriant
- 625
0
votes
1 answer
`unattended-upgrades` seemingly fails to do `apt-get update` first
I have unattended-upgrades that won't upgrade. It's been a full month and its log is empty.
So I checked manually to confirm it thinks there's nothing to upgrade.
# unattended-upgrades --dry-run --debug
Initial blacklist :
Initial whitelist:…
ᴍᴇʜᴏᴠ
- 655