The version of curl in Ubuntu 20.04 does not have the --retry-all-errors option yet. It will be available when we move on to Ubuntu 22.04.