Lower timeout for apt update

Create a file /etc/apt/apt.conf.d/99timeout:

Acquire::http::Timeout "10";
Acquire::ftp::Timeout "10";

Now run apt update