can include a bad cable, or a need to reboot your sdsektop machine or fully remove all power from the arduino board for long enough.
In this circumstance, a quick check is to use the blink sketch while you get the uploading problems sorted, so you on,y looking at one issue at a time.
a7