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
    Commented Feb 8, 2015 at 20:47
  • It says /usr/bin/git Commented Feb 8, 2015 at 20:48
  • And file /usr/bin/git?
    – muru
    Commented 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 Commented Feb 8, 2015 at 20:49
  • 1
    Still doesn't make sense, though. O.o
    – muru
    Commented Feb 8, 2015 at 21:01

0

You must log in to answer this question.

Browse other questions tagged .