New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ubuntu Desktop 16.04: /usr/bin/systemd.apt.daily causing apt-get update
to fail when vagrant provisioning starts
#73
Comments
Looking at the scripts that should run for the Ubuntu 16.04 desktop box. Found https://github.com/boxcutter/ubuntu/blob/2.0.18/script/update.sh#L5 to disable release upgrades. This looks good and is still happening, the config is there with |
Looks like Ubuntu 16.04 introduces unattended upgradey by default via a systemd timer: I can find the relevant files here:
To disable the above systemd service / timer:
|
PR #74 is ready and fixes the issue by disabling the automatic / periodic updates and unattended upgrades |
A version of this has been merged |
I have a simple
Vagrantfile
here:Upon
vagrant up
it fails immediately with this error:I suspect this is because as soon as the VM starts either an unattended auto upgrade or the
/usr/lib/apt/apt.systemd.daily
is running concurrently:Also, same behaviour after
vagrant up --no-provision
and then in the vm viavagrant ssh
A while later
ps aux | apt
shows this:Mor evidence in
/var/log/unattended-upgrades/unattended-upgrades.log
:Imho unattended-upgrades should be disabled by default for vagrant baseboxes, otherwise it's likely the provisioning fails due to such behaviour.
Box version is
2.0.18
(Virtualbox) ofubuntu1604-desktop.json
, downloaded via AtlasThe text was updated successfully, but these errors were encountered: