When using wget, -c is used to keep wget retrying to download, usually in the event of an internet interruption. What equivalent of -c can we use for apt-get to keep on retrying even in the case of unstable internet connection which keeps on getting disconnected?
Asked
Active
Viewed 1.3k times
12
Moyo Freeman
- 355
- 1
- 4
- 12
1 Answers
26
From man apt.conf
Retries Number of retries to perform. If this is non-zero APT will retry failed files the given number of times.
echo 'Acquire::Retries "3";' > /etc/apt/apt.conf.d/80-retries
Since apt 2.3.2, the default is 3.
gliptak
- 664