# Возможные ошибки в Ubuntu при работе с Arduino

***1) avrdude: ser\_open(): can't open device "/dev/ttyACM0": Permission denied Failed uploading: uploading error: exit status 1***

Вы не установили разрешения на чтение/запись для соответствующего порта (в убунту /dev/ttyACM0). Вернитесь к главе [Установка среды программирвоания на Ubuntu](https://app.gitbook.com/o/-LH8GGAMl1RzhNcjusHM/s/BjLyfPc4FcQUfXFi5fQr/~/changes/364/nastroika-po/arduino-ide/ustanovka-sredy-programmirovaniya-na-ubuntu), там рассказано, как поставить нужные разрешения.

2\) Не открывается скетч из папки Examples. Это может быть из-за того, что скетч имеет расширение .pde, а не .ino&#x20;

Решение: зайдите в директорию, в которой лежит скетч, который вы хотите открыть. Например, HelloWorld из библиотеки ros\_lib лежит в Arduino/libraries/ros\_lib/examples/HelloWorld. Дальше переименуйте скетч, заменив расширение .pde на .ino

**3)*****ST-LINK error (DEV\_CONNECT\_ERR)***

***Error: Problem occurred while trying to connect***

Решение этой проблемы можно найти на [stackoverflow](https://stackoverflow.com/questions/68009635/st-link-error-on-stm32cubeprogrammer-problem-occurred-while-trying-to-connect). Не забудьте потом перезагрузить компьютер.&#x20;

При возникновении каких-либо других ошибок, постарайтесь решить проблему с помощью гугла. Если совсем ничего не помогает и ошибки связаны с Arduino, можем посоветовать вам установить Arduino IDE 1 через менеджер приложений в ubuntu


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://voltbro.gitbook.io/vbcores/nastroika-po/arduino-ide/ustanovka-sredy-programmirovaniya-na-ubuntu/vozmozhnye-oshibki-v-ubuntu-pri-rabote-s-arduino.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
