tee --append
, just in case...?
]]>I had this problem using Devuan on Docker images and bare-metal installations when connecting to certain mirrors and even on pkgmaster.
Not sure if anyone has a better solution, so far mine is this adding an "Acquire::Retries" policy of "5" to apt.conf.d
echo "Acquire::Retries \"5\";" | sudo tee /etc/apt/apt.conf.d/avoid-timeouts
Hope this helps anyone experiencing the same problem.
ciao
]]>