Sorry that's not the problem.
I dont need to change where the packages download TO. I need to change where they download FROM.
I've rebuilt a site server so it's blank with nothing on it any more.
But the database still thinks it's a site server that can distribute packages, so it's trying to download packages from itself that are not there any more. I need to change it so the download URL point to another server.