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

python-dev failed to fetch during provisioning #8

Open
firmread opened this issue Nov 10, 2014 · 0 comments
Open

python-dev failed to fetch during provisioning #8

firmread opened this issue Nov 10, 2014 · 0 comments

Comments

@firmread
Copy link

after vagrant up I was stuck at the apt name=python-dev with this error

TASK: [apt name=python-dev] ***************************************************
failed: [default] => {"failed": true}
stderr: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl-dev_1.0.1-4ubuntu5.18_i386.deb  404  Not Found [IP: 91.189.91.24 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl-doc_1.0.1-4ubuntu5.18_all.deb  404  Not Found [IP: 91.189.91.24 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

stdout: Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
  libexpat1-dev libssl-dev libssl-doc python2.7-dev zlib1g-dev
The following NEW packages will be installed:
  libexpat1-dev libssl-dev libssl-doc python-dev python2.7-dev zlib1g-dev
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,460 kB/32.1 MB of archives.
After this operation, 44.0 MB of additional disk space will be used.
Err http://archive.ubuntu.com/ubuntu/ precise-updates/main libssl-dev i386 1.0.1-4ubuntu5.18
  404  Not Found [IP: 91.189.88.149 80]
Err http://security.ubuntu.com/ubuntu/ precise-security/main libssl-dev i386 1.0.1-4ubuntu5.18
  404  Not Found [IP: 91.189.91.24 80]
Err http://security.ubuntu.com/ubuntu/ precise-security/main libssl-doc all 1.0.1-4ubuntu5.18
  404  Not Found [IP: 91.189.91.24 80]

msg: 'apt-get install 'python-dev' ' failed: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl-dev_1.0.1-4ubuntu5.18_i386.deb  404  Not Found [IP: 91.189.91.24 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl-doc_1.0.1-4ubuntu5.18_all.deb  404  Not Found [IP: 91.189.91.24 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?


FATAL: all hosts have already failed -- aborting

PLAY RECAP ********************************************************************

I fixed it by adding this line to line 10 of playbook.yml

    - apt: update_cache=yes

Hope this is helpful for anyone on similar problem.
Cheers,

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

1 participant