Comments (3)
I am sometimes living behind a (really not small) proxy service and I am getting quite often such sequences of failure as you can see below. When manually invoked for me it can take some 1 to >10 attempts to get all querys succeeding.
I suspect that opening this bigger bunch of locations is just giving up a tiny little bit too fast - you might know from your browser... trying the refresh keystroke after an "endlesse loading" situation will nearly instantly succeed, for whatever non-evident reason this happens. Care should be taken to allow similar behaviour either by default or by special expressed desire. An option for changing (=increasing) the retry count value on the command line that applies to the any individual open for a location should be made availabel.
See here an expample what currently happens to me:
# apt update [...] Get:6 http://de.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [391 kB] Err:6 http://de.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages Hash Sum mismatch [...] Get:10 http://de.archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [114 kB] Fetched 562 kB in 3s (182 kB/s) Reading package lists... Done E: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-amd64/by-hash/SHA256/6a4dfa61229a6e9d1e82f5fb3434c9b650bc856aca68add08343380e3fb48afe Hash Sum mismatch E: Failed to fetch http://de.archive.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-i386/by-hash/SHA256/17dc81048807986276d6314abbacc968efe9da255679863b06667b5ffa60ffd8 E: Some index files failed to download. They have been ignored, or old ones used instead.
from apt.
We've removed the apt_update and apt_repository resources from this cookbook as they were merged into core chef. I'm going to close this issue out now. If you think it's still valid against a new chef-client release please open it up against the chef/chef repo so we can work on it where the code now resides.
from apt.
the resource change is not related, but the original bug seems to be "fixed" by setting "ignore_failure" to true in 24a68c0 anyhow
from apt.
Related Issues (20)
- apt_repository should honour the components values given, regardless of whether it's a ppa repository HOT 2
- Issue with v3.0.0 execute[apt-get update] HOT 5
- Truncating URI HOT 1
- apt_repository with key option creates ~/.gnupg owned by root in Vagrant's homedir HOT 2
- Add a warning on the README that https://github.com/chef/chef/pull/4782 supersedes this cookbook's `apt_repository` LWRP HOT 6
- execute[apt-cache gencaches] cannot be found in the resource collection HOT 6
- Apt update fails on Chef < 12.4.0 HOT 1
- Port apt_preference to chef/chef HOT 3
- Adding apt key doesn't work on Ubuntu 16.10 HOT 2
- apt update fails with "STDERR: E: The method driver /usr/lib/apt/methods/deb https could not be found."
- 6.1.0 removal of apt_update isn't actually in 6.1.0 supermarket code. HOT 3
- Request to add attribute allow-unauthenticated config option HOT 4
- apt_repository needs dirmngr installed HOT 1
- origins_patterns not applied for unattended_upgrades HOT 6
- master build fails with "undefined method contains"
- unattended-upgrades forced to check daily HOT 3
- apt_package resource should support source HOT 4
- Converge of apt::default fails as it tries to install version of a package that does not exist HOT 1
- Dependency Dashboard
- apt-key deprecated - use signed-by
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apt.