Actually do I need to run a command to have packer restart the VM for my changes to take in effect?
Still I"m getting the following error: Reading package lists... 2017-07-20T00:38:23.0415790Z 1500511103,,ui,message, prod: E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) 2017-07-20T00:38:23.0467600Z 1500511103,,ui,message, prod: E: Unable to lock the administration directory (/var/lib/dpkg/)%!(PACKER_COMMA) is another process using it? On Friday, July 14, 2017 at 1:09:27 PM UTC-7, Joanna .Leong wrote: > > nevermind, got it working; needed to do: > sudo sh -c 'echo "APT::Periodic::Enable "0";" >> > /etc/apt/apt.conf.d/10periodic' > > On Thursday, July 13, 2017 at 9:11:44 PM UTC-7, Rickard von Essen wrote: >> >> Could you attach your packer template and scripts. >> >> On 14 July 2017 at 01:59, Joanna .Leong <[email protected]> wrote: >> > 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]> 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. >> >> >> >>> 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. >> > -- 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/76b0aa9b-1c1c-4c7c-b30e-289dcb62d423%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
