1

When I try to use git (even just typing git, git clone <repo>, etc, I get this error:

bash: /usr/games/git: No such file or directory

but git works with sudo just fine.

which -a git returns /usr/bin/git

Why is it looking in the wrong place, and /usr/bin/games of all places?

How can I change where it looks?

7
  • What's the output of command -v git?
    – muru
    Feb 8, 2015 at 20:47
  • It says /usr/bin/git Feb 8, 2015 at 20:48
  • And file /usr/bin/git?
    – muru
    Feb 8, 2015 at 20:48
  • /usr/bin/git: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, BuildID[sha1]=cc2ef87a752fd09905966dd11aee96ea5214d16a, stripped Feb 8, 2015 at 20:49
  • 1
    Still doesn't make sense, though. O.o
    – muru
    Feb 8, 2015 at 21:01

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.