Sudo: command not found

OK, I got Jaguar installed and all updated on my trusty Wallstreet. the first time I installed it, something got messed up, and the desktop would not show up. So, I reinstalled, with a minmial install, then added in the BSD subsystem. I thought everything was fine, except the terminal would not display "welcome to Darwin!" when opened, instead, all I get is bash-2.05a$ when it starts up.
So, when trying to run some shell scripts (to uninstall something), I typed in sudo and dragged the script to the terminal window, and pressed enter. all I got was: Sudo: command not found. So, I tried the old standby, su. it asked for my password (yes, I am running this from an admin account), and all it said was su: sorry. I know I am typing in my password correctly.
the next step was to see where sudo is located, so i typed in
which sudo
and all I got was
no sudo in /bin /sbin /usr/bin /usr/sbin
so, from the looks of it, sudo was never installed. How am I supposed to get this back? reinstall the BSD subsystem, or is there some Quick and Dirty(tm) way to get it back?
I am not afraid to play around in the terminal, as I am a Linux/unix junkie.
thanks.
-digital

It's fixed. it was just a bad copy. I got another one, and now when I launch the terminal, it says
Last login: Fri Mar 2 19:53:49 on ttyp1
Welcome to Darwin!
[Leo-Titus-LeBron-Vs-Computer:~] leolebron%
and when I type sudo, it says:
usage: sudo -V | -h | -L | -l | -v | -k | -K | [-H] [-P] [-S] [-b] [-p prompt]
[-u username/#uid] -s | <command>
So, it all works. I knew something was different, as right after running the setup assistant, it ran software update, which the other copy did not do.
thanks for all the input.
-digital

Similar Messages

  • I want to disable 'Spotlight' for repairing my disk "Macintosh HD" , but somehow the command 'sudo mdutil -a -i off' does not work in 'Terminal'. I get result as ' bash: sudo: command not found' .I am using OS 10.10.  Please help.

    I want to disable 'Spotlight' for repairing my disk "Macintosh HD" , but somehow the command 'sudo mdutil -a -i off' does not work in 'Terminal'. I get result as ' bash: sudo: command not found' .I am using OS 10.10.  Please help.

    It appears that you may not have a properly installed OS X system.
    You must be connected to the Internet to reinstall OS X.
    In the menu bar, choose Apple menu > Restart. Once your Mac restarts (and the gray screen appears), hold down the Command (⌘) and R keys.
    Select “Disk Utility,” and then click Continue.
    Select your startup disk from the list on the left, and then Repair Disk.
    After disk is repaired, select Reinstall OS X, then click Continue.
    Follow the onscreen instructions. In the pane where you select a disk, select your current OS X disk

  • -bash: sudo: command not found

         Hello all,
    I have had WAY too many problems with this laptop, and at this point in its miserable little life, I've decided to just wipe the hard drive and start fresh, not caring at all what happens to the files left on there. As previously stated in one of my earlier questions (That was, might I add, never fully answered.), this late 2008 MacBook (aluminum) has a problem where it does not boot up, and just endlessly shows the gray spinning pinwheel. Four months later, that just stops, and now when trying to boot up with my normal startup disk, it brings me right to the Recovery disk and tries to reinstall OS X. I tried, it failed 5 minutes in. So I tried to wipe the hard drive, and it says:  Disk Erase failed with the error: Couldn't unmount disk.   I looked it up and I saw that if I went into the Terminal and typed: sudo diskutil unmountDisk /dev/disk0 , it would unmount the disk. But whenever I type that, it says: -bash: sudo: command not found. I have no idea how to fix this, and I would really like to be able to use my laptop again without giving somebody my money to do it for me.
                                                 Thanks,
                                                      Luke

    Clean Install of Snow Leopard
    Be sure to make a backup first because the following procedure will erase
    the drive and everything on it.
         1. Boot the computer using the Snow Leopard Installer Disc or the Disc 1 that came
             with your computer.  Insert the disc into the optical drive and restart the computer.
             After the chime press and hold down the  "C" key.  Release the key when you see
             a small spinning gear appear below the dark gray Apple logo.
         2. After the installer loads select your language and click on the Continue
             button. When the menu bar appears select Disk Utility from the Utilities menu.
             After DU loads select the hard drive entry from the left side list (mfgr.'s ID and drive
             size.)  Click on the Partition tab in the DU main window.  Set the number of
             partitions to one (1) from the Partitions drop down menu, click on Options button
             and select GUID, click on OK, then set the format type to MacOS Extended
             (Journaled, if supported), then click on the Apply button.
         3. When the formatting has completed quit DU and return to the installer.  Proceed
             with the OS X installation and follow the directions included with the installer.
         4. When the installation has completed your computer will Restart into the Setup
             Assistant. After you finish Setup Assistant will complete the installation after which
             you will be running a fresh install of OS X.  You can now begin the update process
             by opening Software Update and installing all recommended updates to bring your
             installation current.
    Download and install Mac OS X 10.6.8 Update Combo v1.1. You may then open App Store, click on the Purchases icon in the toolbar, and re-download any OS X upgrade you purchased except Mavericks. Since Yosemite has been released the App Store may not let you re-download Mavericks, but it will let you download Yosemite.

  • Sudo: command not found - damaged PATH file in terminal. How to restore?

    Hi, I was editing one of the PATH variables holding file (~/.bash_profile or somewhere deeper), something went wrong and now terminal can't find any program (i.e. nano) or use sudo.
    The problem is that to edit that file I need to be admin, but I can't use sudo. Any ideas?

    Back up all data.
    Select
              Shell ▹ New Command
    from the Terminal menu bar. Uncheck the box marked
              Run command inside a shell
    if checked.
    Copy and paste the following line into the text box that opens, then press return:
    mkdir disabled_shell_files
    Close the Terminal window that opens. Repeat with this line:
    mv .profile .bash_history .bash_profile .bashrc .inputrc disabled_shell_files
    Your old shell initialization and history files will be saved in a directory named "disabled_shell_files" at the top level of your home directory. It's normal that some of these files will not exist, and therefore you will get some "no such file" errors.
    Close the window, open a new one, and test.

  • I am trying to install oracle 11g xe on ubuntu aws instance when i execute sudo /etc/init.d/oracle-xe configure command iam getting this error: sudo: /etc/init.d/oracle-xe : command not found

    i am trying to install oracle 11g xe on ubuntu aws instance when i execute sudo /etc/init.d/oracle-xe configure command iam getting this error: sudo: /etc/init.d/oracle-xe : command not found.

    "command not found" means ... there is no such thing.
    Has the .rpm been installed?
    http://docs.oracle.com/cd/E17781_01/install.112/e18802/toc.htm#XEINL122

  • When i try to boot usb yosemite , i have this message (sudo: /Applications/Install OS X Yosemite.app/Contents/Resources/createinstallmedia: command not found)

    when i try to boot usb yosemite , i have this message (sudo: /Applications/Install OS X Yosemite.app/Contents/Resources/createinstallmedia: command not found)

    You are getting a kernel panic because you are trying to boot the computer with a Tiger DVD. That model requires 10.6.3 - Snow Leopard. You can purchase replacement discs from Apple:
    Apple Store Customer Service at 1-800-676-2775 or visit online Help for more information.
    To contact product and tech support: Apple - Support - Contact Apple Support.
    For Mac App Store: Apple - Support - Mac App Store.
    For iTunes: Apple - Support - iTunes.

  • [SOLVED] sudo and "command not found" problems

    Ok, the problem I've got is this: sudo has suddenly started acting real strange. It can't find any programs. For example, if i type
    sudo echo
    It just goes
    sudo: echo: command not found
    And another problem I've got, is that as a regular user, it can't find programs in /sbin, or other "exotic" places. For example it can't find firefox, because it's not in /usr/bin or /bin, but in /opt/mozilla/bin.
    Please, help me!
    Last edited by mrpedroxx (2008-06-14 13:23:49)

    sudo -V outputs this
    Sudo version 1.6.9p15
    $PATH outputs
    bash: /usr/gnu/bin:/usr/local/bin:/bin:/usr/bin:.: No such file or directory
    pacman -Q firefox outputs
    firefox 2.0.0.7-1
    Yeah, maybe I should update it anyway
    And /var/log/errors.log does contain stuff about hard disks, but it's just me mounting my iPod and the Windows partition on my hd

  • HT5627 when I copy it in the terminal, it tells me : " sudo: serveradmin: command not found "

    what should I do ? What did I do wrong ?

    This error?
    $ sudo serveradmin
    Password:
    sudo: serveradmin: command not found
    $
    That usually means you're not logged in on an OS X Server configuration — which is separate from having the Server.app tool loaded onto the system, when you're doing remote management —  or as Linc Davis mentions, that the PATH setting is incorrect.  The correct PATH should look something like this:
    $ sudo echo $PATH
    /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Applications/Server.app/Contents/S erverRoot/usr/bin:/Applications/Server.app/Contents/ServerRoot/usr/sbin
    $
    I wouldn't expect PATH to be incorrect on the root user on the server, barring some site-local tweaks to that context.  But if there have been changes to PATH, then I'd add both bin and sbin within Server.app into the path.  (This change should not be necessary, though.  The PATH should have the correct settings within Server.app by default.)
    If you're looking to use serveradmin on a remote server, then the usual approach is to enable and ssh into the target OS X Server system (ssh [email protected]), or to use ARD or related to push commands, or to use screen sharing and a remote desktop.   ssh is by far the lightest and fastest of these options.  
    AFAIK, the command-line serveradmin tool doesn't do remote management.  There's no obvious way provided to specify the identity of a target server.

  • Sudo: user: command not found

    Hi there,
    I'm struggling with this sudo problem.
    All i've been doing with terminal was logging into another account on my iMac and running an application, so i write sudo disk (disk is username for the other account)
    then i enter password and path to the application
    i've been doing this for past 3-4 month every day, bet since yesterday after entering pasword i get this error - sudo: user: command not found
    Any help here would be appreciated!
    Thank you

    which sudo returns: /usr/bin/sudo
    i used First Aid to verify disk permissions 3 times.. repaired them, but it keeps giving me the same errors every time i hit Verify Disk Permissions..
    List of errors:
    Permissions differ on "System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jconsole.ja r", should be lrwxr-xr-x , they are lrw-r--r-- .
    User differs on "System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib", should be 0, user is 95.
    User differs on "System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Libraries", should be 0, user is 95.
    Permissions differ on "System/Library/Java/Support/Deploy.bundle/Contents/Home/lib/security/cacerts", should be lrwxr-xr-x , they are lrw-r--r-- .
    Permissions differ on "System/Library/Java/Support/Deploy.bundle/Contents/Resources/Java/deploy.jar", should be lrwxr-xr-x , they are lrw-r--r-- .
    Permissions differ on "System/Library/Java/Support/Deploy.bundle/Contents/Resources/JavaPluginCocoa.b undle/Contents/Resources/Java/deploy.jar", should be lrwxr-xr-x , they are lrw-r--r-- .
    Permissions differ on "System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Classes/jconsole.jar ", should be -rw-r--r-- , they are lrw-r--r-- .
    Permissions differ on "System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Deploy.bundle/ Contents/Home/lib/security/cacerts", should be -rw-r--r-- , they are lrw-r--r-- .
    Permissions differ on "System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Deploy.bundle/ Contents/Resources/Java/deploy.jar", should be -rw-r--r-- , they are lrw-r--r-- .
    Permissions differ on "System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Deploy.bundle/ Contents/Resources/Java/libdeploy.jnilib", should be -rwxr-xr-x , they are lrwxr-xr-x .
    Permissions differ on "System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/Deploy.bundle/ Contents/Resources/JavaPluginCocoa.bundle/Contents/Resources/Java/deploy.jar", should be lrwxr-xr-x , they are lrw-r--r-- .
    Permissions differ on "System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Resources/JavaPlugin Cocoa.bundle/Contents/Resources/Java/deploy.jar", should be -rw-r--r-- , they are lrw-r--r-- .
    Permissions differ on "System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Resources/JavaPlugin Cocoa.bundle/Contents/Resources/Java/libdeploy.jnilib", should be -rwxr-xr-x , they are lrwxr-xr-x .
    Warning: SUID file "System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/MacOS/ARDAg ent" has been modified and will not be repaired.
    Permissions verification complete
    Are these pretty bad errors? Are these causing sudo not to work?

  • Installing mysql:sudo launchctl: command not found

    After several days of reading about:
    Installation of MySQL
    Enabling apache server
    And getting phpMyAdmin up
    I have run into an obstacle.  See error message below **
    I am Running:
    'Mountain lion' , 'Mac OS X 10.8.3'
    I have downloaded:
    MySQL version. Mac OS X 10.7. (X86, 64-bit), DMG Archive.
    Within this forum I found a very brief but helpful 'user tip' post.
    Link1.
    https://discussions.apple.com/docs/DOC-3082
    Where this sentence lead me to believe I could use the version listed above.
    There is NO version for 10.8
    " Download MySQL from a local mirror. You want the Mac OS X ver. 10.6 (x86, 64-bit), DMG Archive. At the time of writing this User Tip, the current version is 5.5.34. By the time you read this, there may be a newer version to use instead. Open the archive mysql-5.5.34-osx10.6-x86_64.dmg. "
    Following the instructions on link1, and all went well until
    I am getting this error message when I type the following command at the terminal prompt:
    **Error message
    -bash: launchctl: command not found.
    1. I cd - changed directories all the way back up the file structure to type the  command
    to see if it needed to be run someplace special but the same error came up.
    2. I searched here on this forum and on the web.
    3. I went back and checked over every step and everything that i typed.
    4. I ended up typing the instructions below by hand
    because somewhere I read that a copy/paste may insert invisible characters.
    Excerpt from link1.
    sudo vi /Library/LaunchDaemons/com.mysql.mysql.plist
    Use the following content:
    <plist version="1.0">
      <dict>
        <key>KeepAlive</key>
        <true/>
        <key>Label</key>
        <string>com.mysql.mysqld</string>
        <key>ProgramArguments</key>
        <array>
        <string>/usr/local/mysql/bin/mysqld_safe</string>
        <string>--user=mysql</string>
        </array>
      </dict>
    </plist>
    Can someone please explain what I am missing ?
    Why is this command
    -bash: launchctl: command not found.
    That is launch c t lowercase L not number 1
    An added note. 
    The following link also had a very nice set of instructions but unlike link1, this link uses the
    'Preference pane' and 'startup item' which link1 discourages because it causes problems down the road.
    I would rather use the command line and do not want to give up on this method.
    Link2.
    http://coolestguidesontheplanet.com/install-configure-apache-mysql-php-phpmyadmi n-osx-10-8-mountain-lion/
    Now that I am going head strong with this project, I hope that my issue can be resolved quickly with this community
    so I don't loose my momentum.
    Thanks a lot.

    1. You are really a nice person.  Thank you.  I really want to understand these file structures.  Sorry my posts are lengthy.
    Thank you for taking the time to look at the original User Tip.
    2. I hope that you do not end this thread when I tell you that I actually have gotten php running.  These concepts are still very important to me.
    I am not up to the point where I am using mySQL so that may end up another troubleshooting problem.
    3. Last week and this I have been exploring my files with terminal by cd-ing  up and down; using sudo nano to open the file to see what is in there.
    I have included some things that may be useful since you have a much better idea about how these paths work.
    4. If you have a chance - Can you elaborate.  I understand a PATH.  What to you mean when you say PATH environmental variable.
    I think of a variable in the computer programmer syntax sense.
    5. I also cannot find a .profile file anywhere. See the below.... where I found something....
    4. Searching like crazy for the load executable.  I cannot find it yet.  I thought that it might be with the  other commands in /bin
    below are some exploratory commands I am running and things I find of interest.
    I use ls -la to display 'all' files. I use -la to list hidden files. those that start with a dotFileName.
    /user/local/mysql/bin
    there is NO load executable here.
    I looked around for 'load'
    macBookPro: /shortname$  ls
    cd bin
    ls -la
    lots of commands:  launchctl  mkdir  pwd  echo ....   i thought that 'load' should live here.
    cd etc
    ls -la
    has:apache2  my.conf  named.conf  passwd paths php.ini sudoes nanorc
    apache2 empty - title: new buffer
    sudoers  i have questions about this but not a priority now.
    nanorc
    php.ini
    my.conf
    name.conf
    passwd
    paths
    sudo nano paths
    /usr/bin
    /bin
    /usr/sbin
    /sbin
    /usr/local/bin
    I did not find the .profile file. what I have found is the below which references the .profile for sh(1)
    I am unable to interpret the below file/code - well maybe a little.
    cd etc
    ls -la 
    sudo nano profile
    # System-wide .profile for sh(1)
    if [ -x /usr/libexec/path_helper ]; then
            eval `/usr/libexec/path_helper -s`
    fi
    if [ "${BASH-no}" != "no" ]; then
            [ -r /etc/bashrc ] && . /etc/bashrc
    fi
    Here is
    /usr/sbin
    sudo nano apachectl
    the following is the code in apachectl
    I see 'run launchctl load ....'
    LAUNCHCTL="/bin/launchctl"
    LAUNCHD_JOB="/System/Library/LaunchDaemons/org.apache.httpd.plist"
    run_launchctl() {
        if [ $UID != 0 ]; then
            echo This operation requires root.
            exit 1
        fi
        $LAUNCHCTL $@
    # Set the maximum number of file descriptors allowed per child process.
    if [ "x$ULIMIT_MAX_FILES" != "x" ] ; then
        $ULIMIT_MAX_FILES
    fi
    ERROR=0
    if [ "x$ARGV" = "x" ] ; then
        ARGV="-h"
    fi
    case $ARGV in
    start)
        run_launchctl load -w $LAUNCHD_JOB
        ERROR=$?
    stop|graceful-stop)
        run_launchctl unload -w $LAUNCHD_JOB
        ERROR=$?
    restart|graceful)
        run_launchctl unload -w $LAUNCHD_JOB 2> /dev/null
        run_launchctl load -w $LAUNCHD_JOB
        ERROR=$?
    startssl|sslstart|start-SSL)
        echo The startssl option is no longer supported.
        echo Please edit httpd.conf to include the SSL configuration settings
        echo and then use "apachectl start".
        ERROR=2
    configtest)
        $HTTPD -t
        ERROR=$?
    status|fullstatus)
        echo Go to $STATUSURL in the web browser of your choice.
        echo Note that mod_status must be enabled for this to work.
        $HTTPD $ARGV
        ERROR=$?
    esac
    exit $ERROR
    Thanks again for helping me to understand these file structure.
    There is no preview option so i hope this posts well.

  • Shell Commands not found error when running application

    Hello,
    Im using MonoDevelop IDE in my Mac, before it used to work fine but after few days, now when I'm opening the application nothing happens., i checked the Console  for the log and it says this
    May  9 21:29:39 Sri-Vishnu-Totakuras-MacBook-Pro [0x0-0x52052].com.ximian.monodevelop[1510]: /Applications/MonoDevelop.app/Contents/MacOS/monodevelop: line 17: dirname: command not found 
    May  9 21:29:39 Sri-Vishnu-Totakuras-MacBook-Pro [0x0-0x52052].com.ximian.monodevelop[1510]: /Applications/MonoDevelop.app/Contents/MacOS/monodevelop: line 31: //mono-version-check: No such file or directory
    May  9 21:29:39 Sri-Vishnu-Totakuras-MacBook-Pro com.apple.launchd.peruser.501[599] ([0x0-0x52052].com.ximian.monodevelop[1510]): Exited with code: 1
    I thought may be some error with the "dirname" command, so i commented it in the code and gave the path of directory myself and then the console shows up like this.
    May  9 21:34:12 Sri-Vishnu-Totakuras-MacBook-Pro [0x0-0x56056].com.ximian.monodevelop[1532]: /Applications/MonoDevelop.app/Contents/MacOS//mono-version-check: line 19: grep: command not found 
    May  9 21:34:12 Sri-Vishnu-Totakuras-MacBook-Pro [0x0-0x56056].com.ximian.monodevelop[1532]: /Applications/MonoDevelop.app/Contents/MacOS//mono-version-check: line 19: cut: command not found
    May  9 21:34:12 Sri-Vishnu-Totakuras-MacBook-Pro [0x0-0x56056].com.ximian.monodevelop[1532]: /Applications/MonoDevelop.app/Contents/MacOS//mono-version-check: line 20: cut: command not found
    May  9 21:34:12 Sri-Vishnu-Totakuras-MacBook-Pro [0x0-0x56056].com.ximian.monodevelop[1532]: /Applications/MonoDevelop.app/Contents/MacOS//mono-version-check: line 21: cut: command not found
    May  9 21:34:12 Sri-Vishnu-Totakuras-MacBook-Pro [0x0-0x56056].com.ximian.monodevelop[1532]: /Applications/MonoDevelop.app/Contents/MacOS//mono-version-check: line 22: cut: command not found
    May  9 21:34:12 Sri-Vishnu-Totakuras-MacBook-Pro [0x0-0x56056].com.ximian.monodevelop[1532]: /Applications/MonoDevelop.app/Contents/MacOS//mono-version-check: line 31: osascript: command not found
    May  9 21:34:12 Sri-Vishnu-Totakuras-MacBook-Pro [0x0-0x56056].com.ximian.monodevelop[1532]: Cannot launch MonoDevelop
    May  9 21:34:12 Sri-Vishnu-Totakuras-MacBook-Pro [0x0-0x56056].com.ximian.monodevelop[1532]: MonoDevelop requires the Mono Framework version 2.10.4 or later.
    May  9 21:34:12 Sri-Vishnu-Totakuras-MacBook-Pro com.apple.launchd.peruser.501[599] ([0x0-0x56056].com.ximian.monodevelop[1532]): Exited with code: 1
    I opened the contents of the application and run the shell script for opening aplication there it worked very fine and application started working.. But if i open application directly through launchpad or finder it doesnt show up and console
    I tried running those commands in the terminal directly there they work.. But dunno whats wrong in here. and even if try to open the application through the terminal it all opens fine.. what could be the possible problem, is it with my mac..?

    i finally figured out the problem.. it is with the environmental variables.  the path for all those commands like "grep" is not being set for the GUI applications.  that is why i got that error. 
    for those GUI applications which require path, we have to set path in the file /etc/launchd.conf  the environmental variables set in here are used by the gui applications and those which are launched through spotlight.
    that file may bot be present in most of the macs. No problem even if not present,we can create one and use.
    so  type in terminal
              $ sudo vi /etc/launchd.conf     
    and in the editor add these lines
              setenv PATH = /new/path
    and save.  Note: replace /new/path with the path which you need to have for the commands used in the script.
    remeber that you need to restart your mac for applications to use these environmental variables.

  • Locale-gen command not found

    Hi everyone
    I just completed a new installation of Arch on my netbook, everything was working fine but there is a problem I can not solve.
    I managed to set everything as I wanted and put the language of my XFCE and Firefox in Spanish, but then (I do not know exactly when) all programs returned to English.
    I already check the rc.conf configuration and locale.gen and everything is set for Spanish, but when I try "sudo locale-gen" I recive a message like this: "sudo: locale-gen: command not found"
    I also have problems with the keyboard, I configured xorg and rc.conf to use spanish keymap but it didn't work
    Any ideas?

    TigTex wrote:I made one arch install that has this problem... locale-gen doesnt work (for example) but it's full path works. How do I re-set the PATH variable?
    All the problems I had with the PATH, keyboard and using other language than english had solved when I stop using autostart X in inittab , if I login to the terminal and start X myself, then everything works fine.
    I am still looking for a way to start XFCE at boot without having to enter my username or password and not having the problems I told (CDM looks like the better way )
    Last edited by Andyvec (2010-11-09 17:58:28)

  • [SOLVED]/usr/lib/arch-tempfiles line 106: install:command not found

    Hi everyone!
    This is my boot.log
    http://pastebin.com/1gfynhSN
    It says"/usr/lib/initscripts/arch-tmpfiles:line 106: install:command not found".This is leading to problems such as dbus and network manager not being started(even manually),no shutdown option,not able to 'open' log files without sudo  etc.
    I think a possible reason for this is that I had messed up with symlinks.I had issued the command
    sudo ln -s /bin/install /usr/bin/install
    .Then I had used
    cd /bin/
    unlink install
    Now,I find that /bin/install and /usr/bin/install does not exist.(I have deleted them!) .How can I fix this up?Any help would be appreciated.
    Last edited by adwaita45 (2012-04-05 20:41:40)

    Reinstall coreutils (or manually extract install from the package and put it in /usr/bin).
    Last edited by Raynman (2012-04-05 18:14:10)

  • [solved] yaourt messed up pacman - "pacman: command not found"

    Hi,
    i got some "xxxxxx not found on AUR" messages after doing a "yaourt -Syu --aur" so I began to remove them with "yaourt -Rs xxxxxxx".
    When there was only one left "aqpm2" this is what happened:
    [studio@myhost ~]$ yaourt -Rs aqpm2
    verificando dependências...
    Remover (2): aqpm2-20100615-2  qjson-0.7.1-2
    Tamanho total dos pacotes a serem removidos:   2,93 MB
    Deseja remover estes pacotes? [S/n] s
    (1/2) removendo aqpm2                                                                                                     [##########################################################################] 100%
    (2/2) removendo qjson                                                                                                     [##########################################################################] 100%
    /usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
    /usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
    /usr/bin/yaourt: line 201: testdb: comando não encontrado
    now pacman is broken:
    [studio@myhost ~]$ pacman
    bash: pacman: comando não encontrado
    [studio@myhost ~]$ yaourt -Syu --aur
    /usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
    You are not allowed to launch /usr/bin/pacman with sudo
    Please enter root password
    Senha:
    bash: /usr/bin/pacman: Arquivo ou diretório não encontrado
    ==> WARNING: problem in pkgbuild.sh library
    /usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
    /usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
    /usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
    ==> Searching for new version on AUR
    /usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
    Unable to open file: /etc/pacman.conf
    /usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
    /usr/lib/yaourt/basicfunctions.sh: line 10: pacman: comando não encontrado
    /usr/bin/yaourt: line 201: testdb: comando não encontrado
    [studio@myhost ~]$ sudo pacman -Syu
    sudo: pacman: command not found
    please help
    Last edited by capoeira (2010-10-16 14:33:39)

    capoeira wrote:
    can I use pacman-static from this repro?
    I'm afraid to break system even more
    http://repo.archmobile.org/x86_64/archmobile/
    OK, that gave me a segfault, so
    I downloaded the package and copied the folders to root.
    no pacman works but gaves me this errors afterwards:
    pacman-3.4.1-1: description file is missing
    pacman-3.4.1-1: dependency file is missing
    pacman-3.4.1-1: file list is missing
    how do I solve this?
    BTW: should I make a bug-report??
    EDIT: any package I try to instal I get this error:
    erro: não foi possível abrir o arquivo /var/lib/pacman/local/pacman-3.4.1-1/depends: Arquivo ou diretório não encontrado
    (it's in portuguese but i think its understandable)
    Last edited by capoeira (2010-10-15 22:08:36)

  • Rsync command not found

    I am trying to use the following command in the terminal:
    +*sudo rsync -a --delete "SOURCE" "DESTINATION"*+
    but it's returning the following message:
    +*-bash: sudo rsync -a: command not found*+
    I have been able to run the command before but now it's not working. Any idea what's going on and how I can fix it? I run this same command on another computer and it works fine as well, this only is happening on my wife's MacBook.
    Thanks!

    The fact that you got:
    -bash: sudo rsync -a: command not found
    is a strong indication that 'bash' saw 'sudo rsync -a' as one token and as the command it could not find.
    Normally you should see
    -bash: command_name: command not found
    But in your case, it saw what I would have considered the first 3 tokens as a single command name.
    The question is why bash did NOT parse 'sudo' separate from 'rsync' separate from '-a'? But instead treated all 3 as a single token.
    Were there any stray quotes (single ' or double ") you forgot to mention? For example:
    "sudo rsync -a" --delete "SOURCE" "DESTINATION"
    'sudo rsync -a' --delete "SOURCE" "DESTINATION"
    sudo rsync -a --delete "SOURCE" "DESTINATION"
    Any of these 3 would have generated the error you reported.

Maybe you are looking for

  • HP Color LaserJet CP1217 is not detected by PC

    Hi I have a HP Color LaserJet CP1217 which I am trying to connect by USB to a new computer running Windows 8. When I first plugged the printer in the drivers were automatically detected and downloaded, and the printer was working. I then moved the pr

  • Activation from Windows 8 Pro to Windows 8.1 Pro

    I  generally use Windows 7 Home Premium in my Acer 4738Z and my old Acer is broken. so I buy a new Acer E1-410 (and bla-bla in a nutshell) my new Acer E1-410 can't use Windows 7 it must uses UEFI system (in my previous post http://social.technet.micr

  • Reciever File Adapter - Temp File Name Scheme using Variable Substitution

    How can I create a temporary file that uses variable substitution?  We are having a problem with files merging when we write files using the "Use Temporary File" setting on the FIle Adapter.  So two independent files are merging into a single file. 

  • Regarding Performance concerns during the creation of Infocube

    hai im going to create the infocube on top of ODS. Pls tell me some design tips for performance things during the creation of Infocube like partitioning , Indexes... Basically im loading from Oracle Databasetables by using DB-COnnect . pls tell me i

  • How does one right click using the iPad?

    how does one right click when using the iPad?  I am needing this in a citrix app