Configurable apt-get behavior.

For:
https://bugs.launchpad.net/juju-core/+bug/1322302
https://bugs.launchpad.net/juju-core/+bug/1350493
Possibly an error from rebasing. Corrected, thank you!