Skip to content
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

Apt-get update failing during provision #11

Closed
jodyHamilton opened this issue Feb 23, 2015 · 7 comments
Closed

Apt-get update failing during provision #11

jodyHamilton opened this issue Feb 23, 2015 · 7 comments

Comments

@jodyHamilton
Copy link
Contributor

apt-get update was failing for me during provision
Adding
config.vm.provision :shell, :inline => "apt-get update --fix-missing"
to VagrantFile resolved it

@tizzo
Copy link
Contributor

tizzo commented Feb 23, 2015

PR welcome ;)

@jodyHamilton
Copy link
Contributor Author

I don't understand the problem or fix well enough to propose a patch, just leaving this here in case others run into the issue. Perhaps it only occurs on 2008 imacs...

@tizzo
Copy link
Contributor

tizzo commented Feb 23, 2015

Could you post the logs that you saw? I don't know what you mean by
"apt-get update was failing" - that's pretty broad and could mean a number
of things.

This puppet setup runs apt-get update and apt-get upgrade as a first
step before doing anything else. In theory, that should work if running it
as a shell provisioner works too. Adding the shell provision run is fine
and might be cleaner than having it happen in puppet anyway.

On Mon, Feb 23, 2015 at 1:55 PM, Jody Hamilton [email protected]
wrote:

I don't understand the problem or fix well enough to propose a patch, just
leaving this here in case others run into the issue. Perhaps it only occurs
on 2008 imacs...


Reply to this email directly or view it on GitHub
#11 (comment)
.

@jodyHamilton
Copy link
Contributor Author

Not really because my terminal doesn't scroll back far enough. It was similar to this error (from a bug report i googled) but different paths:

err: /Stage[main]/Apt/Exec[/usr/bin/apt-get update]: Failed to call refresh: /usr/bin/apt-get update returned 100 instead of one of [0] at /tmp/vagrant-puppet/modules-0/apt/manifests/init.pp:80

@tizzo
Copy link
Contributor

tizzo commented Feb 23, 2015

My bet is it was a one-off network error.

If not reopen. Also - you should set iterms scrollback to be bigger or
unlimited - you'll thank me.

On Mon, Feb 23, 2015 at 2:16 PM, Jody Hamilton [email protected]
wrote:

Not really because my terminal doesn't scroll back far enough. It was
similar to this error (from a bug report i googled) but different paths:

err: /Stage[main]/Apt/Exec[/usr/bin/apt-get update]: Failed to call refresh: /usr/bin/apt-get update returned 100 instead of one of [0] at /tmp/vagrant-puppet/modules-0/apt/manifests/init.pp:80


Reply to this email directly or view it on GitHub
#11 (comment)
.

@Frug
Copy link

Frug commented Nov 10, 2015

Thanks @jodyHamilton for the fix. I had the same problem and this works well.
It may just be a one-off issue, but it seems puppet doesn't know how to handle that.

@sk33lz
Copy link
Contributor

sk33lz commented Feb 18, 2016

We have a bit of a different line in our puppet master config, so I am going to use that line instead and test locally. PR upcoming if that works out.

lliss added a commit that referenced this issue Feb 23, 2016
Ading apt-get update provision line. Fixes Issue #11.
@sk33lz sk33lz closed this as completed Dec 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants