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]> 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].
> 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/CALz9Rt-d7A%2B7oRY3Uxg6Asqj3ah9kRrLFGUJnNFm5ovKRzo6kg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to