ubuntu 下安装开发环境,执行install.sh总是下载不完并失败

ningzb
Posts: 4
Joined: Wed Aug 21, 2019 2:31 am

ubuntu 下安装开发环境,执行install.sh总是下载不完并失败

Postby ningzb » Wed Aug 21, 2019 2:40 am

ningzb@ningzb-VirtualBox:~/esp/esp-idf$ ./install.sh
Installing ESP-IDF tools
Installing tools: xtensa-esp32-elf, esp32ulp-elf, openocd-esp32
Skipping xtensa-esp32-elf@esp32-2019r1-8.2.0 (already installed)
Skipping esp32ulp-elf@2.28.51.20170517 (already installed)
Installing openocd-esp32@v0.10.0-esp32-20190708
Downloading openocd-esp32-linux64-0.10.0-esp32-20190708.tar.gz to /home/ningzb/.espressif/dist/openocd-esp32-linux64-0.10.0-esp32-20190708.tar.gz.tmp
3%Traceback (most recent call last):
File "/home/ningzb/esp/esp-idf/tools/idf_tools.py", line 1317, in <module>
main(sys.argv[1:])
File "/home/ningzb/esp/esp-idf/tools/idf_tools.py", line 1313, in main
action_func(args)
File "/home/ningzb/esp/esp-idf/tools/idf_tools.py", line 1107, in action_install
tool_obj.download(tool_version)
File "/home/ningzb/esp/esp-idf/tools/idf_tools.py", line 541, in download
urlretrieve(url, local_temp_path, report_progress if not global_non_interactive else None)
File "/usr/lib/python2.7/urllib.py", line 98, in urlretrieve
return opener.retrieve(url, filename, reporthook, data)
File "/usr/lib/python2.7/urllib.py", line 273, in retrieve
block = fp.read(bs)
File "/usr/lib/python2.7/socket.py", line 384, in read
data = self._sock.recv(left)
File "/usr/lib/python2.7/ssl.py", line 772, in recv
return self.read(buflen)
File "/usr/lib/python2.7/ssl.py", line 659, in read
v = self._sslobj.read(len)
socket.error: [Errno 104] Connection reset by peer


下载最多到21%
不知道什么原因,而且出错后,重新执行,又从头开始下载,折腾1天了,还是没安装好开发环境

ESP_igrr
Posts: 2072
Joined: Tue Dec 01, 2015 8:37 am

Re: ubuntu 下安装开发环境,执行install.sh总是下载不完并失败

Postby ESP_igrr » Wed Aug 21, 2019 10:07 am

Can you try downloading this file from Github releases page manually?
https://github.com/espressif/openocd-es ... 2-20190708

If you can download it by web browser, then put it into ~/.espressif/dist directory, and run install.sh again.

ningzb
Posts: 4
Joined: Wed Aug 21, 2019 2:31 am

Re: ubuntu 下安装开发环境,执行install.sh总是下载不完并失败

Postby ningzb » Sun Sep 08, 2019 3:47 am

谢谢,那个文件比较难下载,手动下载了好几次才成功,今天按你说的,拷贝下载的文件
work@work-VirtualBox:~$ cp openocd-esp32-linux64-0.10.0-esp32-20190708.tar.gz /home/work/esp/idf_tools/dist/
然后执行install.sh才可以继续安装

终于安装好了,基本上解决了开发环境的问题。
在不同的目录下编译程序,需要执行以下. /home/work/esp/esp_idf/export.sh(注意点后面有个空格),然后就可以用idf.py了

solor007
Posts: 3
Joined: Mon Mar 09, 2020 9:02 am

Re: ubuntu 下安装开发环境,执行install.sh总是下载不完并失败

Postby solor007 » Mon Mar 09, 2020 9:12 am

你好,现在怎么下载不了openocd-esp32-linux64-0.10.0-esp32-20190708.tar.gz呢? :?能分享一下这个工具吗?

ESP_Alvin
Posts: 211
Joined: Thu May 17, 2018 2:26 am

Re: ubuntu 下安装开发环境,执行install.sh总是下载不完并失败

Postby ESP_Alvin » Mon Mar 09, 2020 9:42 am

Hi solor007,

Would you please help download the file using web browser, place it into the specific directory? Thanks.

Alvin

solor007
Posts: 3
Joined: Mon Mar 09, 2020 9:02 am

Re: ubuntu 下安装开发环境,执行install.sh总是下载不完并失败

Postby solor007 » Mon Mar 09, 2020 10:21 am

Hi Alvin,
谢谢支持,我重新打开浏览器进入这个链接,依然下载不了:
https://github.com/espressif/openocd-es ... 708.tar.gz
Attachments
微信截图_20200309181957.jpg
微信截图_20200309181957.jpg (71.34 KiB) Viewed 10188 times

Who is online

Users browsing this forum: Google [Bot] and 120 guests