I've added the following to the beginning of my shell provisioning script:
sudo systemctl disable apt-daily.service # disable run when system boot
sudo systemctl disable apt-daily.timer   # disable timer run

# Disable daily apt unattended updates.
sudo echo 'APT::Periodic::Enable "0";' >> /etc/apt/apt.conf.d/10periodic

but doesn't seem to help. am i understanding this incorrectly?

On Saturday, July 8, 2017 at 2:09:16 AM UTC-7, Rickard von Essen wrote:
>
> Guessing you are running Ubuntu and you have automatic updates on. 
>
> See this thread for different solutions 
> https://github.com/boxcutter/ubuntu/issues/86
>
> On Jul 8, 2017 00:21, "Joanna .Leong" <[email protected] <javascript:>> 
> wrote:
>
>> correction i mean when executing any package installation like:
>>                 "sudo apt-get install -y swig",
>>
>>
>> On Friday, July 7, 2017 at 3:08:17 PM UTC-7, Joanna .Leong wrote:
>>>
>>> Hi,
>>>
>>> I'm running packer and have a shell provisioner executing command 
>>> "apt-get update" and also tried "sudo apt-get update" and also tried 
>>> sleeping before executing these commands. Regardless I keep getting the 
>>> error:
>>>
>>> Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily 
>>> unavailable)
>>> Unable to lock the administration directory 
>>> (/var/lib/dpkg/)%!(PACKER_COMMA) is another process using it?
>>>
>>> No matter how long I sleep I keep seeing this error.
>>>
>> -- 
>> This mailing list is governed under the HashiCorp Community Guidelines - 
>> https://www.hashicorp.com/community-guidelines.html. Behavior in 
>> violation of those guidelines may result in your removal from this mailing 
>> list.
>>  
>> GitHub Issues: https://github.com/mitchellh/packer/issues
>> IRC: #packer-tool on Freenode
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Packer" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/packer-tool/9c599b9a-0fef-4042-8d31-3ec99934aa75%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/packer-tool/9c599b9a-0fef-4042-8d31-3ec99934aa75%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/39fef6ae-4c4d-4fb4-9150-854e6cd3804f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to