Problem uploading the code into an Arduino Uno
Ubuntu and other Linux operating systems don’t name the serial ports “COM1” or similar. 

They use special files like

/dev/tty.[something]


The [something] depends on the USB device driver. The IDE should list available serial ports in the Port selection menu.