Results 1 to 3 of 3

Thread: No wget, really?

  1. #1
    Join Date
    May 2006
    Location
    Bangladesh
    Beans
    Hidden!
    Distro
    Kubuntu

    Unhappy No wget, really?

    Never faced this problem before, quite dumbfounded about it. Using Ubuntu 18.04.1 LTS on DigitalOcean, fresh Droplet.

    Code:
    root@nyc1:~# wget http://www.rfxn.com/downloads/maldetect-current.tar.gz
    
    Command 'wget' not found, but can be installed with:
    
    apt install wget
    Attempting to install wget:

    Code:
    root@nyc1:~# apt install wget
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    wget is already the newest version (1.19.4-1ubuntu2.2).
    0 upgraded, 0 newly installed, 0 to remove and 236 not upgraded.
    Can anyone shed some light on this? Thanks.

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: No wget, really?

    Check the PATH environment variable. Using wget as root isn't wise, BTW.
    /usr/bin/wget
    is where it should be.

    If you've played with any firejail extra commands, there might be a link in /usr/local/bin/wget that is stale.

    I'm a little concerned that the system hasn't been properly patched from the output shown. Please run:
    Code:
    sudo apt update
    sudo apt upgrade
    to get those 230+ packages that need to be patched, patched.

  3. #3
    Join Date
    Sep 2011
    Location
    Behind you!
    Beans
    1,146
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: No wget, really?

    I agree with TheFu, sounds like a PATH issue.

    Code:
    echo $PATH
    /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
    The above is the default path for Ubuntu Server 18.04.3 LTS. I recommend you use the "echo $PATH" command to see what yours is set to.

    If you are logging in with a Bash shell and have no path at all you can type this command to add the above path to your login profile (customize it however you want):

    Code:
    echo 'export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"' >> ~/.bashrc
    If you need this set for all users, you can add a script to /etc/profile.d/

    LHammonds

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •