| ... | ... |
@@ -211,6 +211,11 @@ sudo mv $TEMPFILE /etc/sudoers.d/50_stack_sh |
| 211 | 211 |
# Additional repos |
| 212 | 212 |
# ---------------- |
| 213 | 213 |
|
| 214 |
+# For debian/ubuntu make apt attempt to retry network ops on it's own |
|
| 215 |
+if is_ubuntu; then |
|
| 216 |
+ echo 'APT::Acquire::Retries "20";' | sudo tee /etc/apt/apt.conf.d/80retry |
|
| 217 |
+fi |
|
| 218 |
+ |
|
| 214 | 219 |
# Some distros need to add repos beyond the defaults provided by the vendor |
| 215 | 220 |
# to pick up required packages. |
| 216 | 221 |
|