-1

so i am trying install maven following the steps on this website for "Step 2: Download and Install Maven": https://phoenixnap.com/kb/install-maven-on-ubuntu

and i get the following error: /tmp: Scheme missing

I get the same error even when I create a "tmp" folder.

i get the same error for the extraction in the /opt directory.

Can someone tell me what exactly the problem is and how do I fix this?

Thank you. :)

2 Answers2

1

You have your syntax wrong. See man wget. You do not specify a destination directory by supplying a second argument. You do that with the -P option.

While multiple arguments can be provided, these should be valid URL's which then will be downloaded in sequence. /tmp is not a valid url, hence the error message.

Thus, -P /tmp rather than /tmp alone would have redirected the download to that directory instead of the working directory.

vanadium
  • 97,564
0

I got it. I had to open the terminal from "Computer". By default, the terminal was connected to the "Home" directory, but the "/tmp" und "/opt" directories are in the "Computer" directory.