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: 194
Popularity: 0.293156
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 »

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. :/

msquared commented on 2012-04-10 19:30

fixed ... thanks!

dlin commented on 2012-04-10 14:45

can not build

/tmp/yaourt-tmp-dlin/aur-command-not-found/src/command-not-found/src/guard.cpp: In function ‘void cnf::print_trace(int)’:
/tmp/yaourt-tmp-dlin/aur-command-not-found/src/command-not-found/src/guard.cpp:53:35: error: ‘getpid’ was not declared in this scope
/tmp/yaourt-tmp-dlin/aur-command-not-found/src/command-not-found/src/guard.cpp:55:54: error: ‘readlink’ was not declared in this scope
/tmp/yaourt-tmp-dlin/aur-command-not-found/src/command-not-found/src/guard.cpp:56:26: error: ‘fork’ was not declared in this scope
/tmp/yaourt-tmp-dlin/aur-command-not-found/src/command-not-found/src/guard.cpp:58:18: error: ‘dup2’ was not declared in this scope
/tmp/yaourt-tmp-dlin/aur-command-not-found/src/command-not-found/src/guard.cpp:61:39: error: ‘execlp’ was not declared in this scope
make[2]: *** [CMakeFiles/cnf.dir/guard.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/cnf.dir/all] Error 2
make: *** [all] Error 2

msquared commented on 2011-12-10 18:57

- Next version will clone via https.

- For the chroot thing: At the moment I do not have such a chroot available. Could you imagine a mechanism to reliable detect the 32bit chroot situation?

dlin commented on 2011-12-07 04:40

I try to build this on arch32-light, but get the following result.
How could I change it?

Or, could you change the script to detect if this is under chroot 32 or not?

Loading catalog community-staging-x86_64.tdb ...
Loading catalog kde-unstable-x86_64.tdb ...
Loading catalog multilib-testing-x86_64.tdb ...
Loading catalog core-x86_64.tdb ...
Loading catalog multilib-x86_64.tdb ...
Loading catalog gnome-unstable-x86_64.tdb ...
Loading catalog testing-x86_64.tdb ...
Loading catalog staging-x86_64.tdb ...
Loading catalog community-x86_64.tdb ...
Loading catalog extra-x86_64.tdb ...
Loading catalog community-testing-x86_64.tdb ..