Lately I've been getting a mail from the server every day,
Subject
Cron <root@host> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
Body
/etc/cron.daily/apt:
DB Update failed, database locked
If i just run the /etc/cron.daily/apt part it just stays there with no output, i tried running tail -f /var/log/apt/*.log /var/log/syslog & and then running /etc/cron.daily/apt but no output either
Which database is locked and by what, i'm able to do apt-get update successfully.
Did some updates yesterday and had to restart, so the microsoft fix wont work here (this has been going on since before the updates so not related)
What else can I look into?
This is a amazon instance incase it matters
I'd like to quote a bit from your blog post (the reason I clicked through): "it seems that Synaptic, the Ubuntu graphical package manager probably uses Xapian. On my Ubuntu server I don’t use Synaptic so I don’t care if the Apt Xapian index is not updated. The usual apt-tools should still work perfectly." As your post says, YMMV. Works for me, not using Synaptic.
– Vaz Feb 18 '16 at 22:03