Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [unattended-upgrades]

A package for automatically downloading and applying package upgrades, particularly security patches.

Filter by
Sorted by
Tagged with
137
votes
5answers
96k views

How do I enable automatic updates?

Update Manager is constantly offering me updates (e.g. security fixes, updates from PPAs). How can I tell my Ubuntu installation to automatically download and install updates whenever they become ...
20
votes
3answers
19k views

Why unattended-upgrades does not fix heartbleed bug?

I've followed the instruction to install unattended-upgrades to install automatic security updates on my server (ubuntu server 13.10). https://help.ubuntu.com/community/AutomaticSecurityUpdates Can ...
19
votes
2answers
18k views

How can I stop unattended-upgrades from rebooting the machine?

I just had a look at my Amazon EC2 instance and noticed I had 20 minutes exactly of downtime. I didn't know what caused it so I logged in to SSH and tried upgrading my packages, and saw that the ...
17
votes
1answer
2k views

Apt - strange requests to d16r8ew072anqo.cloudfront.net:80

On Saturday (May 18) I started one of my VMs (running Ubuntu 18.04 Server). To my surprise, the VM almost immediately attempted to connect to d16r8ew072anqo.cloudfront.net:80, something that I have ...
17
votes
1answer
4k views

Does unattended-upgrades also include apt-get autoremove?

Say I recently installed unattended-upgrades via: sudo apt-get install unattended-upgrades -y sudo dpkg-reconfigure --priority=low unattended-upgrades -y Does unattended-upgrades also include apt-...
17
votes
1answer
10k views

How can I force unattended-upgrades to run on demand?

This is probably an easy thing to do but I found no answers while googling for it. I have unattended-upgrades installed and running successfully for the past few months. It will run again tonight - ...
15
votes
1answer
4k views

How to remove Ubuntu's automatic internet connection needs?

Imagine that, I have a fresh Ubuntu 18.04 installed. But there are some default packages or services that connects to the Internet without my consent. How to get rid of them completely or make them ...
14
votes
1answer
8k views

Unattended upgrades status?

Does anyone know if it is possible to determine the status of an unattended upgrade? Is it possible to find out which packages are being installed or where we are in the process? I appreciate the ...
14
votes
1answer
7k views

What is the difference between security, updates, proposed and backports in /etc/apt/apt.conf.d/50unattended-upgrades?

I see the following lines in /etc/apt/apt.conf.d/50unattended-upgrades. But I'm not able to find the man page for them. Could anybody point me the detailed document for each of them? Thanks. ...
14
votes
1answer
4k views

How to automatically install updates before shutdown?

Windows 7 automatically installs updates before shutdown. Can I get the same effect on Xubuntu? I want to install Xubuntu on a friend's machine and make sure that security updates are installed, but ...
13
votes
3answers
21k views

apt/unattended-upgrades stalls shutdown

When unattended-upgrades is installed, 9 out of 10 shutdowns/reboots hang while "starting unattended upgrades shutdown". This hang stalls the shutdown process for 5-10 mins. If I disable unnattended-...
12
votes
1answer
11k views

How to customize unattended-upgrades notification emails?

Is there any way to customize the unattended-upgrades results mail in ubuntu? The current configuration in /etc/apt/apt.conf.d/50unattended-upgrades file - // Send email to this address for problems ...
12
votes
1answer
3k views

unattended-upgrades vs cron-apt on a server

What are the advantages of unattended-updates over cron-apt and vice versa? Basically I want a fully automatic upgrade process in the night: install all updates (even non-security) reboot if ...
11
votes
3answers
7k views

Ubuntu 16.04: Unattended-upgrades runs at random times

I have configured unattended-upgrades to install security packages and notify by mail when it does so. I have noticed that the installation happens at very random times. I know that the latest ...
11
votes
1answer
7k views

Best practices for keeping EC2 Ubuntu machines updated

Following the recent heartbleed vulnerability of OpenSSL, I would like to keep my EC2 machines updated on a regular basis. The naive approach would be setting an hourly cron job for security updates (...
9
votes
1answer
2k views

Why unattended-upgrades upgraded so few packages, seemingly?

In Ubuntu 16.04 xenial I've installed unattended-upgrades about six months ago. sudo apt-get install unattended-upgrades sudo dpkg-reconfigure --priority=low unattended-upgrades after that time I ...
8
votes
2answers
547 views

What if NO update, security or otherwise is ever installed? [duplicate]

I am in need of expert advice: Our system admin who is new to Ubuntu in particular and *nix in general is reluctant to install any updates. His view is what if after installing updates the system ...
7
votes
1answer
1k views

Unattended-upgrades mail only on error or reboot?

I have unattended-upgrades installed on several servers, some version 12, some 14. I would like to enable MailOnlyOnError for them but would still like to receive email notices when an update ...
6
votes
1answer
4k views

Is it possible to do an unattended/silent lamp installation?

Is there a way to set up and pre-configure a lamp environment within a bash script without user prompting by dpkg and present data like mysql or root user password and such kinds of things?
6
votes
3answers
8k views

unattended-upgrades not running, /etc/cron.daily/apt missing

I have automatic-upgrades installed and configured, but it never seems to run, because there are always security updates waiting to be installed when I check. https://help.ubuntu.com/community/...
6
votes
3answers
508 views

Unattended upgrade is ignoring some packages

I have unattended-upgrades set up, but some packages are not being auto-updated. root@survey:/home/martin# apt update root@survey:/home/martin# unattended-upgrade -v --dry-run Initial blacklisted ...
6
votes
1answer
1k views

unattended-upgrades error: “/etc/cron.daily/apt: DB Update failed, database locked”

Ubuntu 14.04.1 LTS Since installing unattended-upgrades, the following error message is received daily: From root@xxxxx Thu Aug 28 06:36:06 2014 X-Original-To: root From: root@xxxxx (Cron Daemon) ...
5
votes
3answers
1k views

Cron jobs are disabled on clean installation of 14.04

I have a clean installation of Ubuntu 14.04 and in my /etc/cron.daily/ I see *.disabled files: -rwxr-xr-x 1 root root 15481 Apr 10 09:04 apt.disabled -rwxr-xr-x 1 root root 314 Feb 17 2014 ...
5
votes
2answers
5k views

Ubuntu 18.10 - Unattended-upgrades-shutdown --wait-for-signal

I have a process as listed in htop under Command stating the following: /usr/bin/python3 /usr/share/unattended-upgrades/unattended-upgrade-shutdown --wait-for-signal Judging by the: --wait-...
5
votes
1answer
5k views

Why do both cron and systemd execute automatic upgrades?

I am trying to understand how automatic upgrades are happening through the unattended-upgrades package. What is described below is what I found on a fresh install of Ubuntu 16.04.3. /etc/cron.daily/...
5
votes
1answer
1k views

What is the meaning of the different Unattended-Upgrade::Allowed-Origins?

Sounds extremely basic, yet I could not actually find the meaning of the different options available to configure unattended-upgrades... In particular, what is the difference between these two ? "${...
5
votes
1answer
3k views

Does unattended upgrades restart services automatically?

I have been trying to find a straight answer for this but I can't find it anywhere. Does unattended upgrades for security patches restart services automatically? If so, any way to prevent it from ...
5
votes
1answer
171 views

Effects on applications caused by security updates?

I want my Server to run unattended-upgrades regularly and keep my server auto updated and install only security updates. But I don't want to update the main versions of several packages. For Example:...
4
votes
2answers
12k views

Heavy load by APT unattended-upgrade

16.04 Xenial APT automatic update check: enabled APT automatic update download & install: disabled No cron jobs listed below, $ for user in $(cut -f1 -d: /etc/passwd); do sudo ...
4
votes
2answers
1k views

Possible values for apt-get “Automatic-Reboot-Time”

/etc/apt/apt.conf.d/50unattended-upgrades says the default automatic reboot time is now, unless you set it to a time. The time that is puts in the config file and comments out is 02:00 but I don't ...
4
votes
2answers
2k views

Configure unattended upgrades notification e-mail's from address

I've recently built a server using 14.04.1 LTS, I wanted a very quick and simple way for it to let me know if, for example, it needed a system restart after installing upgrades. I decided e-mail was ...
4
votes
1answer
267 views

Is it possible to patch without spiking the CPU? [duplicate]

I'm using unattended upgrades to patch about 300 ubuntu (16.04 LTS) machines (network appliances really), some are 1 CPU VMs running on ESXi, azure and AWS and others bare-metal quad core Atom IOT ...
4
votes
1answer
767 views

Prevent postgresql from restarting via automatic updates

I know I could probably do the following: How to prevent updating of a specific package? And prevent postgresql from upgrading altogether. But then if I want to upgrade it manually I would have to ...
4
votes
2answers
249 views

Xenial with 4.4 kernel still requiring reboots

I'm seeing a 16.04 system with a 4.4 kernel requiring reboots upon upgrading the kernel. I had thought that with the 4.x kernel no more reboots would be required due to the hot patching support that ...
4
votes
1answer
671 views

unattended-upgrades sends attachment instead of text

I'm trying to setup automatic security updates on Ubuntu Server 12.04 LTS with an email response: sudo apt-get install unattended-upgrades sudo dpkg-reconfigure unattended-upgrades # Answered Yes ...
4
votes
2answers
1k views

unattended-upgrades do not work properly

I have Welcome to Ubuntu 16.04.5 LTS (GNU/Linux 4.15.0-24-generic x86_64) 15 packages can be updated. 7 updates are security updates. I wachted this serveral weeks and tried so many things to fix ...
4
votes
2answers
414 views

Overriding configuration options for unattended-upgrades

I have several Ubuntu servers which I want to have all upgrades applied automatically. I used to use a simple script which ran apt-get update && apt-get upgrade but that wasn't very robust, so ...
4
votes
1answer
299 views

Which unattended-upgrades system takes precedence and how?

I've just run into an answer that has made me question how the unattended upgrade system works. There seem to be at least two systems on my computer: unattended-upgrades with /etc/apt/apt.conf.d/...
3
votes
2answers
4k views

How to verify that unattended-upgrades are enabled?

Let us assume you just logged via SSH into a server running Ubuntu. Is there a simple command to find out whether unattended-upgrades are enabled and will install security critical updates ...
3
votes
3answers
1k views

Removing the Unmount Partition Disks Prompt During Unnattended Ubuntu Install

I'm trying to create a completely unattended install of Ubuntu and have removed nearly every possible prompt from the installation process. The only remaining prompt is the one shown in the text ...
3
votes
1answer
619 views

how to exclude kernel updates from unattended upgrades

What do I need to do to exclude kernel updates from unattended upgrades? I would rather livepatching to update the kernel. Should i simply add "linux-image"; to the package blacklist?
3
votes
1answer
218 views

Where is the “unattended-upgrades” email notification template?

I'm using Ubuntu Server (16.04) with "unattended-upgrades", and I've set everything in order to receive notification emails when this packages does its thing. Now I want to change the notification ...
3
votes
2answers
768 views

Which is actual difference between package update and security updates? [duplicate]

This is probably a real noob question... I would like to understand what the "updates" alerts I get when logging onto my Lubuntu box actually mean. When I read: 35 packages can be updated. 22 ...
3
votes
2answers
661 views

Are updates to libapache2-mod-php5 update causing apache to crash?

The latest security updates on 5/25/2016 seem to have cause apache-php5 module to fail loading. Anyone else seeing this? Reboot resolves but here is the error detail. Possibly this security update ...
3
votes
1answer
1k views

unattended-upgrade CPU 100% for 4 hours (every time) [in case of many routing tables]

Distributor ID: Ubuntu Description: Ubuntu 18.04.2 LTS Release: 18.04 Codename: bionic During unattended-upgrade the CPU use 100% of resouce for 4 hours Example: unattended-...
3
votes
0answers
19 views

Why do I get duplicate e-mails from unattended-upgrades?

I have no idea where to look for this. Since the upgrade from Ubuntu Server 14.04 to 16.04 I consistently get every single e-mail from unattended-upgrade exactly twice. They have the same content and ...
3
votes
1answer
132 views

What are the possible reasons a kernel security update would fail to occur during unattended-upgrades?

I have setup unattended-upgrades along the lines of the Ubuntu AutomaticSecurityUpdates doc. However, it had not updated to the latest Linux kernel, which was definitely a "security" update. What are ...
3
votes
0answers
479 views

Can we extend the repositories for which unattended upgrades are enabled?

The usual advice regarding enabling unattended upgrades for some repository is to edit /etc/apt/apt.conf.d/50unattended-upgrades and manually add the appropriate Origin values. I wonder whether one ...
3
votes
0answers
714 views

Prevent automatic updates on certain WiFi networks

I have a 200 MB / month plan on my cell phone and automatic updates on my Ubuntu machine. That works just fine, unless I tether them together. A couple days ago, something, I presume automatic updates,...
2
votes
1answer
390 views

Is using dpkg a must for using unattended-upgrades?

I've installed unattended-upgrades via sudo apt-get install unattended-upgrades. I understand from the man that after doing sudo apt-get install unattended-upgrades, one should do: sudo dpkg-...