Skip to main content

Questions tagged [command-not-found]

This tag is for posts related to the command not found error when trying to run a command or the package `command-not-found` for bash and zsh. It is usually solved with installing the related package or adding the executable to the `PATH` variable.

Filter by
Sorted by
Tagged with
0 votes
1 answer
33 views

How to ask to install package with command-not-found instead of suggesting to install it

command-not-found asks a question like this when the command is not found in Kali Linux: Command 'co' not found, but can be installed with: sudo apt install rcs Do you want to install it? (N/y) In ...
horsey_guy's user avatar
1 vote
1 answer
198 views

command not found although it has been installed

I have installed the command" txpp.py" to run a particle-in-cell simulation. Although it works with my account, when I change to another account, it says "command not found". I ...
khoa Sadsad's user avatar
0 votes
0 answers
340 views

command not found, while it exist in appropriate place

i had fresh installed debian 12 and almost all commands are not found. root@debian:/# dpkg-reconfigure keyboard-configuration bash: dpkg-reconfigure: command not found i find it here root@debian:/...
ant's user avatar
  • 29
0 votes
1 answer
952 views

Depmod command not found but kmod is already installed

When I use depmod in the terminal, I got the message "depmod command not found". But kmod is already installed. And I can find a link to something called depmod in sbin. Do you know how to ...
Chènevis's user avatar
  • 101
0 votes
2 answers
171 views

Commands cannot be located after sourcing a bash script

I have a short bash script cdline that takes two arguments PATHS and LINE and changes directory to the respective LINE in PATHS: #!/bin/bash #command for changing directory to that in the given line......
gohomology's user avatar
0 votes
2 answers
2k views

Login loop on Debian 12

I have a login loop error on Debian 12 The final edit on the system that I made was:su root nano /etc/sudoers user_name ALL=(ALL) ALL Since I can't use sudo command I did so according to the ...
Kaovodich's user avatar
0 votes
0 answers
30 views

'-bash: line 1: rescanscsi: command not found' error even though script location is in PATH and other script runs fine from same folder [duplicate]

I'm new to linux, trying to switch over from Windows, and I could really use some help. This is actually my first time using a forum such as this so please forgive any errors I make. I'm using Linux ...
TT Radykal's user avatar
0 votes
0 answers
492 views

Help with zsh: command not found

Attempting to follow these instructions and I'm receiving error zsh: command not found: ord when attempting to do anything in ord, including ord wallet create. Currently running ohmyzsh and have not ...
MrP's user avatar
  • 1
1 vote
1 answer
1k views

shell saying "not found" for a command within a makefile

When defining a command as a constant within a Makefile: MY_COMMANDLINE="prog arg1 arg2" and using this constant later to get the command invoked, you could get: /bin/sh: prog arg1 arg2: ...
MattTT's user avatar
  • 121
4 votes
1 answer
236 views

Cannot modify bash history inside command_not_found_handle function

I'm trying to make my own command_not_found_handle function, which on given a wrong command, asks the user with the most identical command if that was what he meant. If the user accepts that ...
Sunlight's user avatar
2 votes
0 answers
89 views

"Could not find foo in PATH" - but it's right there

I see the following behavior: $ foo Could not find foo in PATH $ which foo /usr/local/corp/bin/foo $ readlink -f `which foo` /path/to/opt/foo/foo $ /usr/local/corp/bin/foo starting foo, output for foo,...
einpoklum's user avatar
  • 9,653
3 votes
1 answer
439 views

How to alias a function and call from function with original name

This is more of an academic exercise but curious of the answer. Here is the current code in question: export original_command_not_found_handler="$(type -f command_not_found_handler)" # ...
Alexander Mills's user avatar
0 votes
1 answer
50 views

Problem with .bashrc when I use anima command

I need to use the Anima command without having to write the entire path every time. I cannot use animaConvertImage in on an internal file in a folder other than the one where the Anima commands are ...
Lorenzo Marta's user avatar
0 votes
1 answer
677 views

How to remove commands installed through the "command-not-found" prompt

On Fedora 35, if I type in a command that is not installed, like mu, then I get a prompt that offers to install it for me, i.e. mu bash: mu: command not found... Install package 'maildir-utils' to ...
user31127's user avatar
1 vote
3 answers
1k views

What are possible causes to the command not found error, other than the PATH variable?

What are some possible causes, that a command could not be found in Linux? Other than it is not in the PATH? Some background info: When trying to execute pdflatex from vscode, I got some troubles, ...
flobue's user avatar
  • 41
0 votes
1 answer
2k views

I can't install cgpt in Arch Linux using Pacman, what to do?

I've been unable to install cgpt in Arch Linux. I don't know what it is, but it's needed for a script. Here is the output of my Terminal: # pacman -S cgpt error: target not found: cgpt # cgpt -bash: ...
Ciel Ruby's user avatar
  • 118
1 vote
1 answer
1k views

PHP shell_exec() Command not found

I need to execute a program using php, the file in question is ClustalW (clustalw2). My apache user is http using fish shell, so I moved clustalw2 to /srv/http/Clustal and added the dir to fish path. ...
reallynewbie's user avatar
0 votes
1 answer
996 views

bash: crw-rw----: command not found

I am currently trying to build a LIDAR robot with RPLIDAR A1 and Jetson Nano following the guide below. https://www.hackster.io/shahizat005/building-a-map-using-lidar-with-ros-melodic-on-jetson-nano-...
HelloWorld's user avatar
-1 votes
1 answer
2k views

Command not found despite having just installed it?

As you can see in the screenshot below, I install a command (it's a wrapper for a program called qsiprep), and then try running it, but it says it's not installed...any ideas as to what is happening? ...
James Ronald's user avatar
1 vote
1 answer
1k views

sudo mv /path/oldname /path/newname: command not found

I am just trying to rename a file on a server with Ubuntu 18.04.4 installed, but when I enter this line sudo mv /path/oldname /path/newname I get this answer sudo mv /path/oldname /path/newname: ...
IngoH's user avatar
  • 123
1 vote
1 answer
521 views

SUDO not found when calling inside a function in BASH script

I am trying to create a function in Bash that creates a directory, then sets the ownership, like this: create_dir() { local PATH=$1 local OWNER=$2 # create log directory echo -e "\n* Creating ...
zak's user avatar
  • 13
0 votes
3 answers
5k views

theharvester not found in Kali Linux

I am running latest 64 bit kali linux in VirtualBox and I am not able to find the theharvester.py anywhere even using locate i cannot find it and it is installed as when i run the install command i ...
sachuverma's user avatar
3 votes
1 answer
31k views

error message - openssl: command not found

I am writing a simple script to check if the certificate for a website is valid. However, when I attempt to run the code in terminal, I receive an error message stating that the command openssl cannot ...
Michael Nash's user avatar
0 votes
1 answer
2k views

'getenforce' command works locally but not through ssh

I am trying to determine whether or not a number of CentOS servers have SELinux enabled. To do this, I am using the getenforce command. When I run the command locally on a single server, it either ...
Alex Ritchie's user avatar
1 vote
1 answer
2k views

Command not found message [duplicate]

When running invalid commands without any parameters or options, in my experience we get only two kinds of messages which are exemplified below: ~$ Date No command 'Date' found, did you mean: ...
command_not_found's user avatar
0 votes
1 answer
782 views

bash: ucbps: command not found

How do I solve this? bash: ucbps: command not found [cbwlskbd@cbl06677app08 ~]$ Where to include the path for this? and how the paths are included
Priyanshi's user avatar
0 votes
1 answer
107 views

redhat/bash - two equals scripts, one get "command not found" error [duplicate]

I did write two scripts, where one has part simple code of the other ones and several comments in: user : oracle both files are of oracle. both files have the execution clearance on : chmod +x fpc.sh ...
Milton Andres Gomez's user avatar
2 votes
1 answer
362 views

Why is it that everytime I mistype a command bash stops working? [closed]

Every time I mistype a command such as cd.. (e.g. I forgot to separate cdand .. with a space) the command prompt disappears and I can no longer use commands in the terminal unless I close and reopen ...
bit's user avatar
  • 1,116
-2 votes
1 answer
6k views

Commands not found on Debian9 stretch OS [closed]

I need to add commands found in /usr/bin to my root/home directory search path because I recently formatted my dell inspiron amd64 bit with Debian 9 stretch. I only installed the core os without any ...
Aloysius 's user avatar
0 votes
1 answer
1k views

Debug update-command-not-found on Debian

What is the problem I am having with command-not-found? Is it a known bug? $ dpkg-query --show command-not-found command-not-found 0.2.38-4 $ installme Could not find the list of available ...
sourcejedi's user avatar
  • 51.1k
-1 votes
1 answer
626 views

sort-bed command not found

I have the following code " not mine" wget -qO- http://hgdownload.cse.ucsc.edu/goldenPath/hg19/database/snp142Common.txt.gz \ | gunzip -c - \ | cut -f2,3,4,5,10 - \ | sort-bed - \ &...
Marwah Soliman's user avatar
1 vote
1 answer
1k views

Sudo says "command not found" for script in EncFS (no root access to EncFS mount?)

When an encrypted directory is mounted using EncFS as a regular user, you cannot execute a script in it with sudo (as root): $ sudo /run/media/yeti/usbdrive/encfs/test.sh sudo: /run/media/yeti/...
Yeti's user avatar
  • 187
6 votes
1 answer
14k views

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 ...
Pinke Helga's user avatar
2 votes
0 answers
228 views

Find out which repository package provides a command

When the package command-not-found is installed, a package is suggested if a command is invoked which is not installed, for instance $ convert The program 'convert' is currently not installed. To ...
August Karlstrom's user avatar
2 votes
1 answer
37k views

pkg install -forge general bash: pkg: command not found

I'm running Debian stretch and want to be able to run my MATLAB code, using the GNU Octave packages. I type this into terminal pkg install -forge general and it gives me this error bash: pkg: ...
user1153070's user avatar
4 votes
2 answers
27k views

resize2fs command not found

I want to resize EC2 EBS root volume, I tried to install e2fsprogs but it's still "not found". I'm using debian 8. How do I install this application?
Nguyen Tien Huy's user avatar
3 votes
1 answer
4k views

bash: zpool: command not found

After a lot of hassle, I finally managed to install the newest spl-dkms and zfs-dkms on my Raspbian. Sadly I still can neither use the zpool nor the zfs command to list or change any ZFS pools. Is ...
Akito's user avatar
  • 558
2 votes
2 answers
1k views

Give advice for bash command not found

When type a nonexistent command, bash show "command not found...". In ubuntu, it will give advice for which package need to be installed; In Fedora, nothing show. So which software has this function ...
eexpress's user avatar
  • 381
3 votes
1 answer
454 views

Command-not-found not triggered for 'crash' in ZSH without reason

I just typed crash in my ZSH (from oh-my-zsh if that matters) and I got peculiar answer: zsh: permission denied: crash instead of the usual command-not-found behaviour expected (since I have that ...
LAFK says Reinstate Monica's user avatar
4 votes
2 answers
4k views

How to define a function that handles `command not found`?

I'd like to define a function that is called, whenever a shell-user types a command that does not exist. In my case I'd like to log the errors and try alternative commands. currently, when typing e.g....
Edward's user avatar
  • 295
0 votes
2 answers
2k views

Bash Command Not Found Error with $variable

108 ps --ppid $process | while read -r line ; do 109 #echo $line | awk '{print $1;} 110 child=$($line | awk '{print $1;}') 111 echo $child 113 done Running this code gives me the ...
shav017's user avatar
4 votes
3 answers
2k views

Unauthorized Installations in dnf after entering a command that's not found

I'm using Korora 23, which is based on Fedora 23. Whenever I type a command in bash that's not available, bash asks if I want to install a package to provide the command. Problem is, if I type y, it ...
Mayank Verma's user avatar
13 votes
2 answers
8k views

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 ...
jadenPete's user avatar
  • 357
8 votes
4 answers
6k views

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 ...
user avatar
1 vote
1 answer
2k views

Debian: "update-command-not-found" IOError: Not a gzipped file

I run a random command in terminal and got this response: Could not find the database of available applications, run update-command-not-found as root to fix this Naturally, I run update-...
th.sigit's user avatar
8 votes
1 answer
576 views

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 ...
Colonel Panic's user avatar
-1 votes
1 answer
13k views

ssh error bash: 22: command not found

I am pretty new to unix, so please bare with me... when i try to connect to my server running ubuntu server through terminal on my ubuntu workstation I get this error: bash: 22: command not found ...
Koen Demonie's user avatar
1 vote
1 answer
1k views

fedora "bash: : command not found" for `ps aux | grep dnf`

I have installed fedora 23 and this error happened when i want to use grep in su mode user : [root@alifed alireza]# ps aux |‌ grep dnf bash: ‌: command not found...
alireza's user avatar
  • 377
2 votes
1 answer
337 views

What is the difference between the error "not found" and the error "command not found" are they the same?

In this question the user is getting the error "not found". I realized that the error is "not found" instead of "command not found". Are these two errors different? I'm not sure if I've just never ...
mchid's user avatar
  • 1,420
7 votes
1 answer
2k views

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 ...
Cameron R.'s user avatar