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.22
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 »

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

msquared commented on 2012-05-13 21:20

Never thought that anyone would use dash as a logon shell :-)

Nevertheless I have two solutions:

1)
conflicts=('dash')

:-)

2)
mv /etc/profile.d/cnf.sh /usr/local/etc/profile.d/cnf.sh
and put some similar coding into /etc/profile.d/cnf.sh that just sources the other one for zsh or bash exclusively

Not sure whether dash has a command_not_found_handle at all ...

Patches welcome :-)

Freso commented on 2012-05-13 13:30

I love this script when I use it with zsh. It's really great. :)

However, when using dash as the login shell, I get the following error:
-dash: 3: /etc/profile.d/cnf.sh: Syntax error: "(" unexpected (expecting ";;")

I looked over the script, but couldn't think of a way off-hand to eliminate this error. :/