When $generator is /usr/lib/apt-setup/generators/50mirror, it exits with exitcode 10 as I described in the original post of this tread.