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

Initial Provisioning Fails #6

Open
Hoverbear opened this issue Aug 1, 2016 · 2 comments
Open

Initial Provisioning Fails #6

Hoverbear opened this issue Aug 1, 2016 · 2 comments
Labels

Comments

@Hoverbear
Copy link
Contributor

Hoverbear commented Aug 1, 2016

Following this initial provisioning fails.

Can be safely resolved by just issuing vagrant up --provision again. Seems to be that it's selecting a bad mirror? If that's the case this will resolve itself.

This seems to be the relevant error:

==> default: Debug: Class[Vim]: The container Stage[main] will propagate my refresh event
==> default: Debug: Executing: '/usr/bin/dpkg-query -W --showformat '${Status} ${Package} ${Version}\n' git'
==> default: Debug: Executing: '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install git'
==> default: Debug: Class[Git::Install]: Resource is being skipped, unscheduling all events
==> default: Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install git' returned 100: Reading package lists...
==> default: Building dependency tree...
==> default: Reading state information...
==> default: The following extra packages will be installed:
==> default:   git-man liberror-perl
==> default: Suggested packages:
==> default:   git-daemon-run git-daemon-sysvinit git-doc git-el git-email git-gui gitk
==> default:   gitweb git-arch git-bzr git-cvs git-mediawiki git-svn
==> default: The following NEW packages will be installed:
==> default:   git git-man liberror-perl
==> default: 0 upgraded, 3 newly installed, 0 to remove and 3 not upgraded.
==> default: Need to get 3346 kB of archives.
==> default: After this operation, 21.6 MB of additional disk space will be used.
==> default: Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty/main liberror-perl all 0.17-1.1 [21.1 kB]
==> default: Err http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main git-man all 1:1.9.1-1ubuntu0.1
==> default:   404  Not Found [IP: 91.189.91.26 80]
==> default: Err http://security.ubuntu.com/ubuntu/ trusty-security/main git-man all 1:1.9.1-1ubuntu0.1
==> default:   404  Not Found [IP: 91.189.88.149 80]
==> default: Err http://security.ubuntu.com/ubuntu/ trusty-security/main git amd64 1:1.9.1-1ubuntu0.1
==> default:   404  Not Found [IP: 91.189.88.149 80]
==> default: Fetched 21.1 kB in 0s (24.4 kB/s)
==> default: E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/git/git-man_1.9.1-1ubuntu0.1_all.deb  404  Not Found [IP: 91.189.88.149 80]
==> default: 
==> default: E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/git/git_1.9.1-1ubuntu0.1_amd64.deb  404  Not Found [IP: 91.189.88.149 80]
==> default: 
==> default: E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
==> default: Error: /Stage[main]/Git::Install/Package[git]/ensure: change from purged to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install git' returned 100: Reading package lists...
==> default: Building dependency tree...
==> default: Reading state information...
==> default: The following extra packages will be installed:
==> default:   git-man liberror-perl
==> default: Suggested packages:
==> default:   git-daemon-run git-daemon-sysvinit git-doc git-el git-email git-gui gitk
==> default:   gitweb git-arch git-bzr git-cvs git-mediawiki git-svn
==> default: The following NEW packages will be installed:
==> default:   git git-man liberror-perl
==> default: 0 upgraded, 3 newly installed, 0 to remove and 3 not upgraded.
==> default: Need to get 3346 kB of archives.
==> default: After this operation, 21.6 MB of additional disk space will be used.
==> default: Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty/main liberror-perl all 0.17-1.1 [21.1 kB]
==> default: Err http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main git-man all 1:1.9.1-1ubuntu0.1
==> default:   404  Not Found [IP: 91.189.91.26 80]
==> default: Err http://security.ubuntu.com/ubuntu/ trusty-security/main git-man all 1:1.9.1-1ubuntu0.1
==> default:   404  Not Found [IP: 91.189.88.149 80]
==> default: Err http://security.ubuntu.com/ubuntu/ trusty-security/main git amd64 1:1.9.1-1ubuntu0.1
==> default:   404  Not Found [IP: 91.189.88.149 80]
==> default: Fetched 21.1 kB in 0s (24.4 kB/s)
==> default: E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/git/git-man_1.9.1-1ubuntu0.1_all.deb  404  Not Found [IP: 91.189.88.149 80]
==> default: 
==> default: E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/git/git_1.9.1-1ubuntu0.1_amd64.deb  404  Not Found [IP: 91.189.88.149 80]
==> default: 
==> default: E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
==> default: Notice: /Stage[main]/Apt/Apt::Setting[conf-update-stamp]/File[/etc/apt/apt.conf.d/15update-stamp]/ensure: defined content as '{md5}0962d70c4ec78bbfa6f3544ae0c41974'
==> default: Info: /Stage[main]/Apt/Apt::Setting[conf-update-stamp]/File[/etc/apt/apt.conf.d/15update-stamp]: Scheduling refresh of Class[Apt::Update]
==> default: Debug: /Stage[main]/Apt/Apt::Setting[conf-update-stamp]/File[/etc/apt/apt.conf.d/15update-stamp]: The container Apt::Setting[conf-update-stamp] will propagate my refresh event
@Hoverbear Hoverbear added the bug label Aug 1, 2016
@justahero
Copy link
Member

Yes, you're right. The Vagrantfile links to an older base box and its repository links are partially outdated. In other projects we've triggered a separate shell script running sudo apt-get update before the puppet provisioner to avoid this error.

@Hoverbear
Copy link
Contributor Author

Would you like me to set this up and make a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants