# Make apt open one connection per server in parallel 

# Queuing mode; 
# Queue-Mode can be one of host or access which determines how APT parallelizes outgoing connections. host means that one connection per target host will be opened, access means that one connection per URI type will be opened.

# Retries
# Number of retries to perform. If this is non-zero APT will retry failed files the given number of times.

sudo /bin/bash -c "/bin/cat > /etc/apt/apt.conf.d/99_parallel" << 'EOF'
APT::Acquire::Queue-Mode "access";
APT::Acquire::Retries 3;
EOF
