Issues uploading sketch

In the tools menu did you select the UNO assuming it is a real UNO? If you have something else selected you can get that error, same as with a bad or charger cable.