those addresses don't exist.
eg,
http://mirrordirector.raspbian.org/raspbian stretch
does not exist.
It is now
http://mirrordirector.raspbian.org/raspbian/dists/stretch/
but that is empty, cause stretch is old.
basically, whatever flatpack is, the person that made it needs to update.
Or you're using an old install script for it and need to find the updated one.