Canedje
Posts: 265
Joined: Thu Mar 26, 2015 7:18 am

wget command not working

Sat May 23, 2015 9:53 pm

I do try to run next command:

Code: Select all

sudo wget https://dl.dropboxusercontent.com/u/80256631/mt7601-3.18.11-v7-776.tar.gz
I do get the error :

Code: Select all

sudo: wget: command not found
What is going wrong?
it looks like the wget command is not known?
the /usr/bin/wget is not there?

I tried install wget:

Code: Select all

sudo apt-get install wget
Pakketlijsten worden ingelezen... Klaar
Boom van vereisten wordt opgebouwd
De status informatie wordt gelezen... Klaar
wget is reeds de nieuwste versie.
0 pakketten opgewaardeerd, 0 pakketten nieuw geïnstalleerd, 0 te verwijderen en 4 niet opgewaardeerd.
But says its there allready
Last edited by Canedje on Sat May 23, 2015 10:03 pm, edited 1 time in total.

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: wget command not working

Sat May 23, 2015 10:02 pm

Try installing it with
sudo apt-get install wget
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Canedje
Posts: 265
Joined: Thu Mar 26, 2015 7:18 am

Re: wget command not working

Sat May 23, 2015 10:03 pm

DougieLawson wrote:Try installing it with
sudo apt-get install wget
I mjust did.
It already exist it says

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: wget command not working

Sat May 23, 2015 10:09 pm

So what does
which wget
show?

What does
export | grep PATH
show?
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

User avatar
B.Goode
Posts: 10356
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: wget command not working

Sat May 23, 2015 10:12 pm

Why is it necessary/desirable to execute this with sudo?

What is the result of the commands

Code: Select all

which wget
echo $PATH

Canedje
Posts: 265
Joined: Thu Mar 26, 2015 7:18 am

Re: wget command not working

Sat May 23, 2015 10:12 pm

DougieLawson wrote:So what does
which wget
show?

What does
export | grep PATH
show?
which wget shows nothing
export | grep PATH sows:
declare -x PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games"

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: wget command not working

Sat May 23, 2015 10:14 pm

What happens if you log out and log back in?
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Canedje
Posts: 265
Joined: Thu Mar 26, 2015 7:18 am

Re: wget command not working

Sat May 23, 2015 10:18 pm

DougieLawson wrote:What happens if you log out and log back in?
No change
wget is not in /usr/bin/
If I try to install it says it already exist
The command is not running

Is there a possibility to uninstall wget and try to install it again?

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: wget command not working

Sat May 23, 2015 10:21 pm

Canedje wrote:
DougieLawson wrote:What happens if you log out and log back in?
No change
wget is not in /usr/bin/
If I try to install it says it already exist
The command is not running

Is there a possibility to uninstall wget and try to install it again?
You could try:

Code: Select all

sudo apt-get purge wget
sudo apt-get install wget
There are 10 types of people: those who understand binary and those who don't.

Canedje
Posts: 265
Joined: Thu Mar 26, 2015 7:18 am

Re: wget command not working

Sat May 23, 2015 10:26 pm

kusti8 wrote:
Canedje wrote:
DougieLawson wrote:What happens if you log out and log back in?
No change
wget is not in /usr/bin/
If I try to install it says it already exist
The command is not running

Is there a possibility to uninstall wget and try to install it again?
You could try:

Code: Select all

sudo apt-get purge wget
sudo apt-get install wget
This worked!

Thanks

User avatar
rpdom
Posts: 17173
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: wget command not working

Sun May 24, 2015 5:01 am

Also

Code: Select all

sudo apt-get --reinstall install wget
should have worked too.

I'm glad you got it fixed but it is very odd that it went missing. Be on the look out for other odd things on your Pi. Make sure you have changed the default password of the "pi" user, especially if the Pi is connected to the internet at all.

Canedje
Posts: 265
Joined: Thu Mar 26, 2015 7:18 am

Re: wget command not working

Sun May 24, 2015 7:23 am

rpdom wrote:Also

Code: Select all

sudo apt-get --reinstall install wget
should have worked too.

I'm glad you got it fixed but it is very odd that it went missing. Be on the look out for other odd things on your Pi. Make sure you have changed the default password of the "pi" user, especially if the Pi is connected to the internet at all.
Thanks for the advice

Return to “Troubleshooting”