What counts as transient errors in apt-get update?
https:/
> We introduce a new flag, --error-on=any that makes apt update also error out on transient errors.
Without using this flag, _transient errors_ with `apt-get update` should return a 0 as error code.
What kind of errors are transient according to apt-get? On Ubuntu 18.04, the following error returned an error code 100.
```
E: Failed to fetch http://
Hashes of expected file:
- Filesize:2770327 [weak]
- SHA256:
- SHA1:44ff706155
- MD5Sum:
Release file created at: Thu, 23 Sep 2021 16:47:21 +0000
E: Failed to fetch http://
E: Some index files failed to download. They have been ignored, or old ones used instead.
```
---
My use case is I have an internal apt-mirror. When the internal mirror or upstream goes down, I should be able to fall back to the other one (upstream or internal) automatically and `apt-get update` should return error code 0.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu apt Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Manfred Hampl
- Solved:
- Last query:
- Last reply: