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

Ubuntu 10.04 failed to fetch repository bug #3

Closed
czerasz opened this issue Jun 23, 2012 · 2 comments
Closed

Ubuntu 10.04 failed to fetch repository bug #3

czerasz opened this issue Jun 23, 2012 · 2 comments

Comments

@czerasz
Copy link

czerasz commented Jun 23, 2012

There is a bug on Ubuntu 10.04 related to the nginx repository.

The bug can be reproduced in this project after running the vm called application (vagrant up application).

The debug output contains this information:

err: /Stage[main]/Nginx::Package::Debian/Package[nginx]/ensure: change from purged to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install nginx' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  nginx
0 upgraded, 1 newly installed, 0 to remove and 23 not upgraded.
Need to get 336kB of archives.
After this operation, 819kB of additional disk space will be used.
Err http://us.archive.ubuntu.com/ubuntu/ lucid-updates/universe nginx 0.7.65-1ubuntu2.2
  404  Not Found [IP: 91.189.91.30 80]
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/universe/n/nginx/nginx_0.7.65-1ubuntu2.2_i386.deb  404  Not Found [IP: 91.189.91.30 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
@czerasz
Copy link
Author

czerasz commented Jun 24, 2012

I have commited a solution proposal:
https://github.com/czerasz/puppet-nginx/tree/iss3

@jfryman
Copy link
Contributor

jfryman commented Jul 5, 2012

I have seen this issue before, and it usually goes along with not having the apt-cache updated properly. I would recommend applying an 'apt-get update' somewhere before processing this line in order to fix. Likewise, there is another module (http://github.com/jfryman/puppet-apt) you can use to automatically have apt-get update every 24 hours at a minimum, which tends to fix stale vagrant boxes.

All the best!

@jfryman jfryman closed this as completed Jul 5, 2012
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

2 participants