For me this happened in 14.04.
I've found that root cause was PATH environment variable that lack /sbin and
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
Unattended upgrade fails with "Error in function"
To manage notifications about this bug go to:
ubuntu-bugs mailing list