Automatic package upgrades on APT based systems
Questions tagged [unattended-upgrades]
58 questions
39
votes
4 answers
How is unattended-upgrades started and how can I modify its schedule?
I'm wondering who starts unattended-upgrades in my debian-jessie:
my man page
DESCRIPTION
This program can download and install security upgrades automatically
and unattended, taking care to only install packages from the config‐
ured…
user3371854
- 525
- 1
- 5
- 9
35
votes
1 answer
How do I stop/disable unattended upgrades from being launched automatically?
I recently installed Trisquel 8.0 LTS (Flidas) on my Desktop PC which was running on Trisquel 7.0 for 4 year. The system became very slow. When I check the RAM and CPU Usage, I found that CPU is almost at 100 % I tun top to see what is going wrong…
Pandya
- 23,898
- 29
- 92
- 144
17
votes
1 answer
How to check progress of unattended-upgr process? Should I kill it?
I've been getting the following after running a dpkg command:
dpkg: error: dpkg status database is locked by another process
After running (from here):
sudo fuser -vki /var/lib/dpkg/lock
I get:
USER PID ACCESS…
Lee
- 471
- 3
- 5
- 15
10
votes
1 answer
Why does this man page have today's date?
Why would a specific man page (in my case, for the nc command) have today's date without me doing any updates to the system ? Also, why doesn't the "unattended update" log show any specific activity for that day?
2018-03-14 07:47:38,124 INFO Initial…
ychaouche
- 945
- 8
- 25
8
votes
1 answer
Terminate and disable/remove unattended upgrade before command returns
I'm having an issue here where I try to automate a setup with Ansible.
Some of the steps require interaction with apt, but occasionally I get an error because unattended-upgrade kicked off and locked apt. This will make the playbook stop.
I've tried…
Daniel F
- 817
- 2
- 10
- 24
7
votes
1 answer
What Unattended-Upgrade::Origins-Pattern matches "all"?
In addition to /etc/apt/sources.list I have a couple of origins defined in /etc/apt/sources.list.d/ How can I adjust /etc/apt/apt.conf.d/50unattended-upgrades so that all origins are allowed?
I tried setting an empty string as…
lofidevops
- 2,967
- 6
- 39
- 58
7
votes
2 answers
Unattended-upgrades not detecting Linux kernel security update by default
(N.B. in the below, I have replaced the domain of my VPS hosting provider with , for privacy.)
My Debian 9.3 "Stretch" instance is showing a kernel update as being available:
# apt list --upgradable -a
Listing...…
user6860
6
votes
3 answers
Unattended Upgrades failing
I keep getting this error on apt-get upgrade:
Installing unattended-upgrades (0.93.1+nmu1) ...
Failed to start unattended-upgrades.service: Unit unattended-upgrades.service failed to load: Invalid argument. See system logs and 'systemctl status…
Miguel Mesquita Alfaiate
- 429
- 7
- 16
5
votes
1 answer
unattended-upgrades does not upgrade packages from backport
unattended-upgrades works fine, I get daily updates, but once in a while, when I open aptitude, I realize backports packages are not automatically upgraded.
This happens on two different machines (desktop and server), both Debian Jessie.
Anything…
Jérôme
- 1,898
- 3
- 26
- 47
4
votes
1 answer
How to use s-nail with unattended-upgrades?
My ISP blocks port 25 and I want to send email after unattended-upgrades completes. I set things up so that I can successfully send mail with s-nail, but unattended-upgrades still isn't sending me email and I don't know why.
s-nail setup
First, the…
Erasmus
- 163
- 5
4
votes
3 answers
Verifying the running kernel matches the latest installed kernel in Ubuntu
unattended-upgrades in Ubuntu automatically installs security updates including the kernel but does not reboot automatically (and it's OK, I don't need/want automatic reboots).
How can I find out whether the running kernel = the latest installed…
Artem S. Tashkinov
- 26,392
- 4
- 33
- 64
4
votes
3 answers
Unattended upgrades calls my machine "localhost" instead of its hostname
On some of my machines, unattended upgrades sends an email to tell me a reboot is required, and says:
[reboot required] unattended-upgrades result for localhost: SUCCESS
While on others, it specifies the correct hostname instead of localhost. Where…
The Quantum Physicist
- 905
- 2
- 16
- 32
4
votes
1 answer
Can unattended-upgrades send a test email?
I've been tearing my hair out trying to figure out why running unattended-upgrade wouldn't result in an email in my inbox, only for one to turn up this morning.
Is there a way to help debugging a new config by forcing unattended-upgrade to send an…
sandyscott
- 235
- 3
- 9
4
votes
0 answers
Debian - unattended-upgrades: environment variables
I need to set environment variables for unattended-upgrades:
Packages that attempted to upgrade:
msodbcsql17
Package installation log:
Log started: 2019-10-28 06:51:03
apt-listchanges: Reading changelogs...
Preconfiguring packages ...
Preparing to…
Kevin
- 51
- 1
4
votes
2 answers
Unattended upgrades won’t use mailx when run by Systemd
I have setup unattended-upgrades on servers running Raspbian (Raspbian GNU/Linux 9.4 (stretch)). Version of Unattended-upgrades: 0.93.1+nmu1
Updates work, but I am having problems with the email reporting.
I want to use mailx for sending reports. If…
Madoc Comadrin
- 218
- 3
- 11