If you are careful, I believe you can copy /var/lib/apt/lists to your SD before flashing and put it back after flashing, and then change whatever repo needs to be change.