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)
To: root@xxxxx
Subject: Cron <root@xxxxx> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
Content-Type: text/plain; charset=ANSI_X3.4-1968
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <LOGNAME=root>
Date: Thu, 28 Aug 2014 06:36:06 -0400 (EDT)
/etc/cron.daily/apt:
DB Update failed, database locked
The error message is NOT received on days where security updates are actually installed and an automatic reboot occurs.
What I would like to know please:
- Is this error message a "real problem" since security updates appear to be auto-installing as expected.
- Manually running the following commands occurs without error, so why is the (APT?) DB locked when run as a cron job? :
unattended-upgrades -d
orapt-get update
The same/similar issue is asked here but unfortunately with no solution: what can be causing /etc/cron.daily/apt to hang?