I have a multi-stage, multi-arch Docker build process using Docker's debian:latest image and the Chromium/Firefox packages from Debian Sid. Sometimes when building the images, something fails with the following error:
Errors were encountered while processing: #0 221.2 system-config-printer-common #0 221.2 system-config-printer #0 221.3 E: Sub-process /usr/bin/dpkg returned an error code (1) If I rerun the build, it then works. This suggests that it's not necessarily a broken package. Because this is an automated build, I'm wondering if there is a way to "catch" these errors and retry whatever step failed automatically?