Saturday, April 27, 2024
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 2908  / 2 Years ago, sat, april 2, 2022, 2:50:50

I was following this link to install anaconda in Ubuntu 18.04.1:



https://www.digitalocean.com/community/tutorials/how-to-install-the-anaconda-python-distribution-on-ubuntu-18-04



When I tried to download anaconda using curl using the following command (which downloads the latest version of anaconda rather than the version shown in the link):



$ curl -0 https://repo.anaconda.com/archive/Anaconda3-5.2.0-Linux-x86_64.sh


I got the following weird text in the terminal which continued to spew out for several minutes:



enter image description here



Afterwards "c62;c62" was displayed repeatedly in the terminal (but I did not type it)?



Anyway this all seemed to be very weird so I hit ctrl-C to cancel the process?



Is this normal?

Is not should I take any corrective measures regarding this?


More From » command-line

 Answers
3

That's perfectly correct behaviour as curl by default outputs the contents of the download to the terminal, which is not what you need here, just use it like this:



curl https://repo.anaconda.com/archive/Anaconda3-5.2.0-Linux-x86_64.sh > anaconda.sh


or use the -o flag of curl:



curl -o anaconda.sh https://repo.anaconda.com/archive/Anaconda3-5.2.0-Linux-x86_64.sh


or preserve the full name of the downloaded script by using the -O flag (which is actually what's mentioned in the tutorial you linked to)



curl -O https://repo.anaconda.com/archive/Anaconda3-5.2.0-Linux-x86_64.sh

[#7569] Saturday, April 2, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
nerta

Total Points: 414
Total Questions: 103
Total Answers: 97

Location: England
Member since Wed, Apr 19, 2023
1 Year ago
;