Thanks for the link. Increasing the size of the local repository in /etc/apt/apt.conf solved my problem.