Package Details: command-not-found 0.6.2-1

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: 194
Popularity: 0.927285
First Submitted: 2011-09-10 22:42
Last Updated: 2017-11-07 20:12

Latest Comments

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

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)

danyf90 commented on 2013-09-10 11:05

it doesn't work for me.
cnf-lookup works properly but when i write a not recognized command i receive a simple command not found error message.

Det commented on 2013-04-16 22:34

For proper English the output could say "The command 'X' is provided by [...]" instead of "The command 'X' is been provided by [...]".

Also to make it work in subshells too you could use ${ZSH_NAME} and ${BASH} instead of ${SHELL} in '/etc/profile.d/cnf.sh' (see: http://stackoverflow.com/a/3327022).

EasySly commented on 2013-03-10 11:08

If you faced with error:
cnf-lookup: error while loading shared libraries: libarchive.so.12: cannot open shared object file: No such file or directory

Solution the same reinstall comman-not-found package

msx commented on 2013-02-01 00:36

@EasySly: that solved my issue, thanks for posting!

EasySly commented on 2013-01-31 11:27

If you have such error after last upgarde of boost-lib:
nf-lookup: error while loading shared libraries: libboost_system.so.1.50.0: cannot open shared object file: No such file or directory

Please reinstall command-not-found package. It will resolve such error.

msquared commented on 2012-09-28 11:14

cnf-sync is a shell script that accesses the catalog files from my mirror via curl and wget.
as creating the catalogs is a bit costly at the moment I host them. this mechanism will change soon.
passing firewalls is only possible if .wgetrc and .curlrc are aware of that.

nevertheless you can edit cnf-sync to let curl give you a more meaningful error message.

dlin commented on 2012-09-28 00:46

What's the behavior of downloading catalog?
Is it can pass through firewall?

loading packages...
resolving dependencies...
looking for inter-conflicts...

Targets (1): command-not-found-0.4.4-1

Total Installed Size: 0.27 MiB
Net Upgrade Size: 0.00 MiB
upgrade failed.

Proceed with installation? [Y/n]
(1/1) checking package integrity [######################] 100%
(1/1) loading package files [######################] 100%
(1/1) checking for file conflicts [######################] 100%
(1/1) checking available disk space [######################] 100%
(1/1) upgrading command-not-found [######################] 100%
Could not download catalog file ... aborting
error: command failed to execute correctly

I've tried
sudo cnf-sync
Could not download catalog file ... aborting

Anonymous comment on 2012-09-26 12:03

Looks like cnf-sync only needs wget.

I got some warning when installing.

After install wget,

$ sudo cnf-sync

for sync database