Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, I've received some suggestions about this problem, but I can't fix it I'm trying to install openssh, I did sudo apt-get install openssh-server openssh-client and I keep getting bash: ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2010
    Posts
    3

    bash: sudo: command not found


    Hi, I've received some suggestions about this problem, but I can't fix it

    I'm trying to install openssh, I did

    sudo apt-get install openssh-server openssh-client

    and I keep getting

    bash: sudo: command not found

    Then I did

    which sudo

    which: no sudo in (/usr/bin:/bin:/usr/local/bin:/usr/X11R6/bin/:/usr/games:/usr/lib/qt4/bin:/home/tony/bin)

    I have Mandriva OS.

    I'm new at this,

    Thanks

  2. #2
    Linux Engineer Segfault's Avatar
    Join Date
    Jun 2008
    Location
    Acadiana
    Posts
    878
    Not all distros provide sudo. You need to use
    Code:
    su -
    instead, which logs you in as root. Then you can install sudo. Isn't Mandriva an RPM distro? Apt-get works with DEB distros. See the documentation on web for Mandriva.

    Edit: Docs are here 7.1.Adding and Removing Software

Posting Permissions

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