Запишу для памяти. На Ubuntu дело происходит, если чо.
sudo apt-get install git wget flex bison gperf python python-pip python-setuptools \
python-serial python-click python-cryptography python-future python-pyparsing \
python-pyelftools cmake ninja-build ccache
cd ~
git clone --recursive https://github.com/espressif/esp-idf.git
sudo mv esp-idf /opt/esp-idf
cd /opt/esp-idf
./install.sh
После этого добавляем в ~/.bashrc:. /opt/esp-idf/export.sh
