Bug#50530: apt-get crashes when installing many packages...
I just was installing a new machine. I loaded a list
of selected packages into dpkg --set-selections and
started apt-get dselect-install (about 800 packages, 1 GB).
Unfortunately, apt-get crashes every 5-15 (or so) packages
while unpacking the packages:
Errors were encountered whie processing:
E: Sub-process returned an error code(1)
Sometimes even a segfault.
At the moment I use it from a script:
dpkg --configure --pending