Upload fails: avrdude: ser_open(): can't set com-state for "\\.\COM6"

does your arduino look like this (1):

or this (2):

and are you coding it using the online ide or the arudino ide app for a computer,