Hi,
Can you compile it but can’t upload the sketch?The error ‘No device found on ttyACM0’ indicates that the error is at the driver or hardware level, not related to the software, so it is not necessary to consider the ubuntu version or arduinoIDE version.
1.Have you ever tried to connect the same USB cable to the computer with different devices(maybe USB promble)?
2.Have you tried to replace a host to try?
3. The solutions in this post should help you, as this is one of the problems that most people face
[已解决]“在 ttyACM0 上找不到设备”:每次在 Ubuntu 20.04 LTS 中上传到 Nano 33 BLE Sense 失败 - 使用 Arduino / IDE 1.x - Arduino 论坛