Questions tagged [command-not-found]

69 questions
48
votes
2 answers

Why does sh say "not found" when it's definitely there?

Possible Duplicate: “No such file or directory” lies on Optware installed binaries I'm trying to add ebtables to a little router box. I went and got a binary compiled for the correct architecture, and put it on the box in /sbin/. When I do…
Shawn J. Goff
  • 45,338
  • 25
  • 134
  • 145
31
votes
5 answers

How to implement package install suggestion on Debian?

I have noticed that while on Ubuntu, if I type the following: mc and it isn't installed, I get the message below: The program 'mc' is currently not installed. You can install it by typing: sudo apt-get install mc However in Debian, that is not…
Joel G Mathew
  • 912
  • 1
  • 8
  • 14
27
votes
5 answers

What is the proper way to manage multiple python versions?

I have a machine with Python 2.6 installed as the default Python. Then, I installed Python 2.7, and manually created /usr/bin/python as a symlink to the new installation. Then, I was running into problems with command-not-found. I'm trying to…
ripper234
  • 31,063
  • 43
  • 82
  • 90
27
votes
4 answers

Why a long delay after command not found?

Often when I mistype a command such as ls (e.g. I hit ENTER before I type 's') there is a long (~2s) delay after the terminal displays: bash: l: command not found... I can understand the reasons for a similar delay after an incorrect password is…
calebds
  • 575
  • 1
  • 5
  • 9
12
votes
1 answer

update-command-not-found Not Working

So I am running Debian Testing, and I installed the command-not-found package, because I just love that functionality in Ubuntu. So I installed it, and when I restarted my terminal, it said I needed to update the cache for the available packages. So…
jadenPete
  • 337
  • 1
  • 4
  • 13
12
votes
1 answer

Root shell sees pip but sudo pip "command not found"

I have installed python 2.7.8 via make and make install and then pip via get-pip. I have to note that I work behind a proxy which I have set up via http_proxy ftp_proxy https_proxy in my user's ~/.zshrc root's /root/.basrc now I am able to run…
Patryk
  • 13,556
  • 22
  • 53
  • 61
9
votes
3 answers

Why is this command not working: "ps aux | grep xscreensaver"

I didn't see any hits about this on google, so I'm asking you: I just tried to run this command in an ssh session, local is Debian Wheezy KDE, remote is Fedora 21 Gnome: ps aux | grep xscreensaver and this is the output: bash:  grep: command not…
somethingSomething
  • 5,721
  • 18
  • 58
  • 98
8
votes
4 answers

No command 'bla' found, did you mean:?

So, when a command is not found, by what means is the "did you mean:" list populated? What program finds these alternate commands? What is the meaning of: "(main), (universe)..."? Can I change which program finds these?
user167562
8
votes
1 answer

How to get automatic package suggestions at command line?

I use Fedora 23. In an older version of Fedora (or maybe it was Ubuntu), I used to get package suggestions at the command line (Bash) when a command wasn't found. I liked this. $ glmark2 Command not found Command glmark2 is provided by package…
Colonel Panic
  • 453
  • 2
  • 8
  • 19
8
votes
3 answers

Catch "command not found" from shell script

I have a shell script echo "Type your command" read command echo "You typed $command" $command so it's simple it runs a command.My question is if the input is wrong suppose lw the terminal says command not found so how can I retrieve this…
Phil_Charly
  • 191
  • 4
  • 6
  • 14
6
votes
2 answers

How can I configure zsh to let it explain to me where I can retrieve an executable instead of saying file not found?

In the default configuration of bash in ubuntu, when you type the name of a software which is not installed, bash explains how to install it if the executable if it exists, or how to install an executable with a really close name if it does not…
rgiot
  • 63
  • 4
6
votes
1 answer

How to get `command-not-found` working on Debian Stretch

I have set up two Debian Stretch systems, one new installation by 'netinst' CD, one upgraded from Jessie. After that, I have installed the command-not-found package. apt install command-not-found The installation ran smoothly, with neither errors…
Pinke Helga
  • 321
  • 1
  • 2
  • 10
6
votes
3 answers

uuencode Command not found but man working fine

I am trying to mail using uuencode but it says command not found while if I check man, I get it proper without any error. Is it that my binary has gone and just docs remaining ? This is unusal though !
Pankaj Sejwal
  • 213
  • 1
  • 3
  • 6
5
votes
3 answers

Opening a PDF file by typing its name

I am on Mac OS X and I usually open PDF files from the terminal (using bash) open myfile.pdf Now I'd be able to type only myfile.pdf and have that opened with the command above. Is there any chance to configure bash to run that command for me?…
topskip
  • 167
  • 2
  • 8
5
votes
1 answer

How do I make a custom "command not found" prompt for the terminal?

I want to make a custom "command not found" prompt for the terminal like this one. I have the template set up: ___________________________________________ / I see you're trying to use the terminal … \ | Command not found: …
Cameron R.
  • 51
  • 2
1
2 3 4 5