LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-31-2019, 06:47 AM   #1
hddfsck
Member
 
Registered: Aug 2019
Distribution: Debian; Ubuntu
Posts: 122

Rep: Reputation: Disabled
Why am I getting these command line error messages?


"sudo wget -O protonvpn-cli.sh" "wget: missing url"

"sudo protonvpn-cli": command not found

I have been using protonvpn everyday with no problem, account paid, but today I am getting these messages.

Also, I am trying to set the correct time, which I was able to do the other day, with the command "dpkg-reconfigure tzdata", but today it is not working.

Thank you.
 
Old 08-31-2019, 07:00 AM   #2
Turbocapitalist
Senior Member
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 4,389
Blog Entries: 3

Rep: Reputation: 2187Reputation: 2187Reputation: 2187Reputation: 2187Reputation: 2187Reputation: 2187Reputation: 2187Reputation: 2187Reputation: 2187Reputation: 2187Reputation: 2187
Quote:
Originally Posted by hddfsck View Post
Also, I am trying to set the correct time, which I was able to do the other day, with the command "dpkg-reconfigure tzdata", but today it is not working.
The package tzdata sets the time zone, not the actual clock. Usually the clock can be set when running NTPd for the first time. The exact method for that is depending on the distro you have. Which distro do you have, including version?
 
Old 08-31-2019, 08:22 AM   #3
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware, OpenBSD
Posts: 3,951
Blog Entries: 11

Rep: Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176
Quote:
Originally Posted by hddfsck View Post
"sudo wget -O protonvpn-cli.sh" "wget: missing url"

"sudo protonvpn-cli": command not found
Your wget command doesn't work because you haven't given it a site address to connect to. I assume that protonvpm-cli.sh is a connection script but you've passed it as an output file (that's what -O is supposed to specify).

The second command fails because protonvpn-cli.sh isn't on your command path. Try using "locate" to find out where it has gone. My guess is that you did an update of some kind and it has gone skew-whiff.
 
1 members found this post helpful.
Old 08-31-2019, 08:37 AM   #4
hddfsck
Member
 
Registered: Aug 2019
Distribution: Debian; Ubuntu
Posts: 122

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Turbocapitalist View Post
The package tzdata sets the time zone, not the actual clock. Usually the clock can be set when running NTPd for the first time. The exact method for that is depending on the distro you have. Which distro do you have, including version?
Thanks. Debian 10, buster.
 
Old 08-31-2019, 08:38 AM   #5
hddfsck
Member
 
Registered: Aug 2019
Distribution: Debian; Ubuntu
Posts: 122

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
Your wget command doesn't work because you haven't given it a site address to connect to. I assume that protonvpm-cli.sh is a connection script but you've passed it as an output file (that's what -O is supposed to specify).

The second command fails because protonvpn-cli.sh isn't on your command path. Try using "locate" to find out where it has gone. My guess is that you did an update of some kind and it has gone skew-whiff.
Thanks. I forgot to connect the url to it! Working now!
 
Old 08-31-2019, 08:44 AM   #6
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware, OpenBSD
Posts: 3,951
Blog Entries: 11

Rep: Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176
Please mark it as solved then. And if you found our contributions helpful, you can mark that too.
 
Old 08-31-2019, 08:51 AM   #7
Turbocapitalist
Senior Member
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 4,389
Blog Entries: 3

Rep: Reputation: 2187Reputation: 2187Reputation: 2187Reputation: 2187Reputation: 2187Reputation: 2187Reputation: 2187Reputation: 2187Reputation: 2187Reputation: 2187Reputation: 2187
Quote:
Originally Posted by hddfsck View Post
Thanks. I forgot to connect the url to it! Working now!
Hmm. But do you know what it did to your computer? It was a script which you appear to have downloaded without verifying and perhaps without examining.

Anyway, with Debian 10, you have systemd's timedatectl to check on the status of the time synchonization. You might have to turn things on to get the clock set correctly.
 
2 members found this post helpful.
Old 08-31-2019, 08:55 AM   #8
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware, OpenBSD
Posts: 3,951
Blog Entries: 11

Rep: Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176Reputation: 2176
Ah! So that was the meaning of the -O option! He was trying to download and store that script. And then the sudo command failed because he hadn't succeeded in downloading it. Clever of you to notice!

It might be an idea if he posted the script (perhaps as a .txt attachment) before running it.
 
Old 08-31-2019, 09:45 AM   #9
hddfsck
Member
 
Registered: Aug 2019
Distribution: Debian; Ubuntu
Posts: 122

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Turbocapitalist View Post
Hmm. But do you know what it did to your computer? It was a script which you appear to have downloaded without verifying and perhaps without examining.
For the 'protonvpn' commands, I didn't download anything, just put in the command line and it didn't go without the url attached. Not sure if I understood you correctly or not.
 
Old 08-31-2019, 09:47 AM   #10
hddfsck
Member
 
Registered: Aug 2019
Distribution: Debian; Ubuntu
Posts: 122

Original Poster
Rep: Reputation: Disabled
I'll try the timedatectl, thanks.
 
Old 08-31-2019, 10:24 AM   #11
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Current: Debian and OpenSUSE. Past: Arch, RedHat (pre-RHEL). FreeBSD & OpenBSD novice, Hackintosh
Posts: 1,191
Blog Entries: 7

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Quote:
Originally Posted by hddfsck View Post
For the 'protonvpn' commands, I didn't download anything, just put in the command line and it didn't go without the url attached. Not sure if I understood you correctly or not.
I hope this script is as harmless as you think it is, as you don't realize what you're doing.

Code:
wget -O protovpn-cli.sh <url>
You're downloading a shell script, protovpn-cli.sh from somewhere, storing it on your computer. It's a collection of commands to be executed when you run the script.

The second command is failing because
  1. As stated previously, it's not in your search path,
  2. You left off the .sh extension when running the command. Linux/UNIX isn't like other some operating systems where you type "program" to execute "program.exe", you must enter the full filename. You can execute it directly from the current working directory by prepending the command with './'
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Are these error messages safe? [nginx error log] mahesh2150 Linux - Newbie 2 10-21-2017 11:39 AM
I want to stop these particular messages in /var/log/messages smartyshan Linux - Security 7 05-31-2009 03:41 AM
From where am i getting error messages to /var/log/messages? prabhuacsp Programming 3 02-16-2005 09:59 AM
From where am i getting error messages to /var/log/messages? prabhuacsp Linux - Networking 1 02-16-2005 01:34 AM
/var/log/messages full of these messages. Should I be concerned? mdavis Linux - Security 5 04-16-2004 11:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration