Arduino Mega <avrdude: stk500v2_ReceiveMessage(): timeout>

Hello.I run a simple code in my arduino MEGA and I receive:
avrdude: stk500v2_ReceiveMessage(): timeout every time I upload.
I have selected the right board(Arduino Mega 2560) and port: /dev/ttyUSB0
I disconnected the usb , I restarted the board , I restarted my laptop , I uninstalled and installed arduino app , I used arduino web editor , I searched for this error and I always receive this message.
What can I do?

~ Linux Ubuntu 18.04.5
~ Arduino 1.8.13


how do you know it’s the right port?

Because it is the only port that appears

how did you install the Arduino IDE?
I would recommend to get it directly from

Yes ,I installed it from that site.Before a few months I had no problems with Uno/nano ,but it seems that generally arduino mega has problems(not mine,generally) I think.

I work mostly on Mac but I never experienced the issue with my MEGA on Linux

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.