Hi Nathan
1)
Which version of Ubuntu and the unattended-upgrades package are you using?
I believe the mail option was added in Feisty (Ubuntu 7.04) and is not
available in early versions.
2)
You say that the version of the /usr/bin/unattended-upgrade script you are
using does only import apt_pkg and apt_inst, but all of the versions I've seen
from 0.2 to 0.25 include a seperate import apt line a few lines later, usually
in the following section:
----------------------------------------
import warnings
warnings.filterwarnings("ignore", "apt API not stable yet", FutureWarning)
import apt
import logging
----------------------------------------
Could you also check this by running:
grep 'import.*apt' /usr/bin/unattended-upgrade
3)
There is also an undeclared dependency on the mailx package - see bug #137994:
https://bugs.launchpad.net/ubuntu/+source/unattended-upgrades/+bug/137994
So make sure that the mail binary from the mailx program is installed by
running:
ls -la /usr/bin/mail
Or you can try my patch to use Python's own smtplib to send the emails.
--
does not send mail despite Unattended-Upgrade::Mail set
https://bugs.launchpad.net/bugs/136720
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs