Can't activate new modules (Debian)

For me, it seems related to Connection closed every couple of minutes if the connection is not commit nothing can be stored.