Package: apt Version: 0.8.16~exp12ubuntu10.7 If a mirror fails in such a way as to trigger the "Unable to connect" error, it is not represented as a transient error.
To reproduce, add an unallocated IP to sources.list, e.g., deb http://10.26.57.199/repos/apt/foo precise dependencies main for a repo that contains then run apt-get update: Ign http://10.26.57.199 precise InRelease Err http://10.26.57.199 precise Release.gpg Unable to connect to 10.26.57.199:http: Ign http://10.26.57.199 precise Release Ign http://10.26.57.199 precise/dependencies TranslationIndex Ign http://10.26.57.199 precise/main TranslationIndex Err http://10.26.57.199 precise/dependencies amd64 Packages Unable to connect to 10.26.57.199:http: Err http://10.26.57.199 precise/main amd64 Packages Unable to connect to 10.26.57.199:http: Err http://10.26.57.199 precise/dependencies i386 Packages Unable to connect to 10.26.57.199:http: Err http://10.26.57.199 precise/main i386 Packages Unable to connect to 10.26.57.199:http: Err http://10.26.57.199 precise/dependencies Translation-en Unable to connect to 10.26.57.199:http: Err http://10.26.57.199 precise/main Translation-en Unable to connect to 10.26.57.199:http: ... W: Failed to fetch http://10.26.57.199/repos/apt/puppetlabs/dists/precise/Release.gpg Unable to connect to 10.26.57.199:http: W: Failed to fetch http://10.26.57.199/repos/apt/puppetlabs/dists/precise/dependencies/binary-amd64/Packages Unable to connect to 10.26.57.199:http: W: Failed to fetch http://10.26.57.199/repos/apt/puppetlabs/dists/precise/main/binary-amd64/Packages Unable to connect to 10.26.57.199:http: W: Failed to fetch http://10.26.57.199/repos/apt/puppetlabs/dists/precise/dependencies/binary-i386/Packages Unable to connect to 10.26.57.199:http: W: Failed to fetch http://10.26.57.199/repos/apt/puppetlabs/dists/precise/main/binary-i386/Packages Unable to connect to 10.26.57.199:http: W: Failed to fetch http://10.26.57.199/repos/apt/puppetlabs/dists/precise/dependencies/i18n/Translation-en Unable to connect to 10.26.57.199:http: W: Failed to fetch http://10.26.57.199/repos/apt/puppetlabs/dists/precise/main/i18n/Translation-en Unable to connect to 10.26.57.199:http: E: Some index files failed to download. They have been ignored, or old ones used instead. [r...@talos-linux64-ix-044.test.releng.scl3.mozilla.com ~]# echo $? 100 Expected result: Exit status 0, since this is a transient failure of the host containing that repo. http://anonscm.debian.org/loggerhead/apt/apt/debian-squeeze/view/head:/apt-pkg/algorithms.cc#L1495 should write "Some index files failed to download, they have been ignored, or old ones used instead." as a warning in that case. Use case: I have multiple mirrors of the debian repos used internally. Temporary failure of a single mirror should not cause 'apt-get update' to fail: that's why I have multiple mirrors! Related links: https://bugzilla.mozilla.org/show_bug.cgi?id=906785 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org