Package Details: command-not-found 0.6.2-2

Git Clone URL: https://aur.archlinux.org/command-not-found.git (read-only)
Package Base: command-not-found
Description: In case a command could not be found this utility searches for packages containing this or a similar command (bash,zsh).
Upstream URL: http://github.com/metti/command-not-found
Licenses: GPL
Submitter: msquared
Maintainer: oberon2007
Last Packager: oberon2007
Votes: 195
Popularity: 1.19
First Submitted: 2011-09-10 22:42
Last Updated: 2019-04-29 19:21

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 Next › Last »

Det commented on 2014-12-10 18:58

No, you just need to rebuild it.

orbital_sfear commented on 2014-12-10 18:58

cnf-lookup: error while loading shared libraries: libboost_system.so.1.55.0: cannot open shared object file: No such file or directory

It looks like this package should be updated to use the new boost lib. Here is a workaround I'm using until its updated:
cd /usr/lib
sudo ln -s libboost_system.so.1.57.0 libboost_system.so.1.55.0
sudo ln -s libboost_regex.so.1.57.0 libboost_regex.so.1.55.0
sudo ln -s libboost_filesystem.so.1.57.0 libboost_filesystem.so.1.55.0

jmontano commented on 2014-02-18 16:21

cnf-mirror MIRROR="http://mirror.hatcolorsoft.com" is not working therefore it can't do first sync and find any "not-found" command

donniezazen commented on 2014-01-10 05:37

Pardon me. I had to add following to .bashrc get it to work.

source /usr/share/doc/pkgfile/command-not-found.bash
[ -r /etc/profile.d/cnf.sh ] && . /etc/profile.d/cnf.sh

donniezazen commented on 2014-01-10 05:34

I have installed pkgfile and command-not-found. I have following in my .bashrc.

source /usr/share/doc/pkgfile/command-not-found.bash

I still get command not found. I have used this previously but it is not working on my current system. I have tried manually sourcing command-not-found.bash. Still no luck.

https://wiki.archlinux.org/index.php/Zsh#The_.22command_not_found.22_hook
https://wiki.archlinux.org/index.php/Pkgfile

Det commented on 2013-10-06 18:11

It's only sourced on login, hence it will not work on children shells.

Even the Wiki for Zsh suggests sourcing it from ~/.zshrc: https://wiki.archlinux.org/index.php/Zsh#The_.22command_not_found.22_hook

E: There's quite a good response in Ask Ubuntu: http://askubuntu.com/a/247769

Det commented on 2013-10-06 18:09

It's only sourced on login, hence it will not work on children shells.

Even the Wiki for Zsh suggests sourcing it from ~/.zshrc: https://wiki.archlinux.org/index.php/Zsh#The_.22command_not_found.22_hook

msquared commented on 2013-10-06 14:53

Actually /etc/profile itself sources /etc/profile.d/*.sh and bash itself sources /etc/profile ... seems something else is broken on your system or you changed this default behavior somehow.

danyf90 commented on 2013-10-06 14:06

i've solved the issue by adding the following line to my .bashrc file:
source /etc/profile.d/cnf.sh

danyf90 commented on 2013-09-12 19:02

EDIT:
it works in virtual console (ctrl+alt+f1) but it doesn't in Konsole or yakuake (i'm using kde)