Uploading sketch problem
In the Arduino IDE check for the available ports. Be sure that the COM Port on Windows or ACMO port on Linux based OS is selected. 

If the problem continues then check if the port is allowed in Windows and Linux.