[英]Downloading .sh files through Terminal
I am looking for a way to download https://www.anaconda.com/download/Anaconda3-5.1.0-Linux-x86_64.sh through terminal; 我正在寻找一种通过终端下载https://www.anaconda.com/download/Anaconda3-5.1.0-Linux-x86_64.sh的方法; now don't laugh just yet, there are some provisos.
现在还不笑,有一些条件。
I don't have root privileges. 我没有root特权。
$wget https://www.anaconda.com/download/Anaconda3-5.1.0-Linux-x86_64.sh
does not work because this will not download the .sh file it will download an HTML that will cause issues with running it in bash. 不起作用,因为它不会下载.sh文件,它将下载HTML,这将导致在bash中运行该问题。
I have also tried 我也尝试过
$curl -o Anaconda3-5.1.0-Linux-x86_64.sh https://www.anaconda.com/download/Anaconda3-5.1.0-Linux-x86_64.sh
and it does not work; 而且它不起作用; it produces this output
它产生这个输出
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
and 和
$curl https://www.anaconda.com/download/Anaconda3-5.1.0-Linux-x86_64.sh
which produces no output. 没有任何输出。
Overall I have no idea where to go from here and I was wondering if any of you had some ideas. 总的来说,我不知道从这里去哪里,我想知道你们中的任何人是否有一些想法。
Thanks in advance. 提前致谢。
you have to use instead: 您必须改为使用:
wget https://repo.continuum.io/archive/Anaconda3-5.1.0-Linux-x86_64.sh
the https://www.anaconda.com/download/Anaconda3-5.1.0-Linux-x86_64.sh
is not the repo https://www.anaconda.com/download/Anaconda3-5.1.0-Linux-x86_64.sh
不是仓库
This is the URL from the Anaconda website . 这是Anaconda 网站上的URL。
Try this wget https://repo.anaconda.com/archive/Anaconda3-5.1.0-Linux-x86_64.sh
试试这个
wget https://repo.anaconda.com/archive/Anaconda3-5.1.0-Linux-x86_64.sh
READ the script, then pass it to bash. 阅读脚本,然后将其传递给bash。 Even if it is from a trusted source always read
.sh
scripts you download before executing them with your shell. 即使来自可靠来源,也请务必先阅读下载的
.sh
脚本,然后再使用Shell执行它们。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.