Package Details: command-not-found 0.6.2-2

Git Clone URL: https://aur.archlinux.org/command-not-found.git (read-only, click to copy)
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: 192
Popularity: 0.001281
First Submitted: 2011-09-10 22:42 (UTC)
Last Updated: 2019-04-29 19:21 (UTC)

Latest Comments

korimitsu commented on 2022-01-15 19:02 (UTC)

Errors: pamac build command-not-found ... Checking keyring... [1/1] Checking integrity... [1/1] Loading packages files... [1/1] Checking file conflicts... [1/1] Checking available disk space... [1/1] Installing command-not-found (0.6.2-2)... [1/1] Could not download catalog file ... aborting Error: command-not-found: command failed to execute correctly Running post-transaction hooks... Reloading system manager configuration... [1/2] Arming ConditionNeedsUpdate... [2/2] Transaction successfully finished.

eimis commented on 2019-07-19 12:11 (UTC)

this is obsolete, just use https://wiki.archlinux.org/index.php/Bash#Command_not_found

sacarde commented on 2019-06-29 07:47 (UTC)

find-the-command is working

sacarde commented on 2019-06-28 08:54 (UTC)

we need to execute cnf-populate before?

and if yes, with what parameters?

Usage:
cnf-populate -p <path> ( -c <catalog> | -m ) [ -d <path> ]

Options:
--help -? -h Show this help and exit
--verbose -v Display verbose output

--package-path -p Set the path containing the packages
--catalog -c Set the catalog name to index (e.g. core) --mirror -m Scan mirror structure and detect catalogs --truncate -t Truncate the catalog before indexing
--database-path -d Customize the database lookup path
default is /var/lib/cnf/

sacarde commented on 2019-06-23 09:46 (UTC)

also here, installed but not synchronized

oberon2007 commented on 2019-04-30 21:05 (UTC)

The mirror providing cnf-database seems to be currently offline: https://github.com/metti/command-not-found/issues/19

r3b311i0n commented on 2019-04-29 20:25 (UTC)

I'm getting a "Could not download catalog file ... aborting" after updating to 0.6.2-2 from 0.6.2-1

jonathon commented on 2019-04-29 18:45 (UTC)

Seriously people - if there's an issue with a Manjaro package then it's nothing to do with the AUR and you should report on the Manjaro forum. This is why Manjaro users have a bad name.

Otherwise, if you've built the AUR package and it needs to be rebuilt then you can do that yourself.

argamanza commented on 2019-04-24 09:20 (UTC)

I have the same issue, even while using the 0.6.2-2.1 version from the community repository.

Any 'cnf-*' command will return: cnf-lookup: error while loading shared libraries: libboost_system.so.1.68.0: cannot open shared object file: No such file or directory

What can i do about it?

roti commented on 2019-03-11 13:50 (UTC)

Hi! I am getting this error: nf-lookup trash cnf-lookup: error while loading shared libraries: libboost_system.so.1.68.0: cannot open shared object file: No such file or directory

pacman -Qs boost local/boost-libs 1.69.0-1

There is a forum thread about the need of recompile. https://forum.manjaro.org/t/closed-command-not-found-using-older-shared-library/61913

bwrsandman commented on 2018-07-23 16:34 (UTC) (edited on 2018-07-23 16:45 (UTC) by bwrsandman)

Could you add 'armv7h' to the arch array?

It compiles and runs (by replacing ARCH with x86_64) just fine on arch linux arm with the raspberry pi and all the dependencies exist in the arm repos.

vith commented on 2018-02-09 22:15 (UTC)

I'm not getting useful results, is there something I need to change? sudo systemctl start cnf.service didn't help. Example:

~
❯ cnf-lookup trash
A similar command to 'trash' is provided by the following packages:
crash (7.0.9-1) from community
    [ *crash* ]
kdebase-runtime (4.13.0-4) from extra
    [ kde4 kdesu kglobalaccel knotify4 kuiserver kwalletd *ktrash* kcmshell4 
      kdebugdialog khelpcenter khotnewstuff4 khotnewstuff-upload keditfiletype kfile4 
      kiconfinder kioclient kde-open kde-cp kde-mv ktraderclient kreadconfig 
      kwriteconfig kmimetypefinder kstart kquitapp plasmapkg plasma-remote-helper 
      solid-hardware kde4-menu ksvgtopng ]
kdebase-runtime (4.9.98-1) from kde-unstable
    [ kde4 kdesu kglobalaccel knotify4 kuiserver kwalletd nepomukcontroller *ktrash* 
      kcmshell4 kdebugdialog khelpcenter khotnewstuff4 khotnewstuff-upload 
      keditfiletype kfile4 kiconfinder kioclient kde-open kde-cp kde-mv ktraderclient 
      kreadconfig kwriteconfig kmimetypefinder kstart kquitapp plasmapkg 
      plasma-remote-helper solid-hardware kde4-menu ksvgtopng ]
kdebase-runtime (4.14.1-2) from staging
    [ kde4 kdesu kglobalaccel knotify4 kuiserver kwalletd *ktrash* kcmshell4 
      kdebugdialog khelpcenter khotnewstuff4 khotnewstuff-upload keditfiletype kfile4 
      kiconfinder kioclient kde-open kde-cp kde-mv ktraderclient kreadconfig 
      kwriteconfig kmimetypefinder kstart kquitapp plasmapkg plasma-remote-helper 
      solid-hardware kde4-menu ksvgtopng ]
kdebase-runtime (4.14.3-1) from testing
    [ kde4 kdesu kglobalaccel knotify4 kuiserver kwalletd *ktrash* kcmshell4 
      kdebugdialog khelpcenter khotnewstuff4 khotnewstuff-upload keditfiletype kfile4 
      kiconfinder kioclient kde-open kde-cp kde-mv ktraderclient kreadconfig 
      kwriteconfig kmimetypefinder kstart kquitapp plasmapkg plasma-remote-helper 
      solid-hardware kde4-menu ksvgtopng ]

~
❯ pkgfile -b trash
community/trash-cli

oberon2007 commented on 2017-11-09 21:16 (UTC)

@MarcinWieczorek why would that be necessary?

MarcinWieczorek commented on 2017-11-09 21:11 (UTC)

Please rename the tarball to ${pkgname}-${pkgver}.tar.gz

oberon2007 commented on 2017-11-07 20:12 (UTC)

Thanks! Updated.

msquared commented on 2017-11-07 19:58 (UTC)

https://github.com/metti/command-not-found/releases/tag/v0.6.2

oberon2007 commented on 2017-11-06 23:30 (UTC)

Seems this was fixed with this commit: https://github.com/metti/command-not-found/commit/102ea6e2797b6191a7357c94a162f08a3eef4e66 Using current git-snapshot for now.

oberon2007 commented on 2017-11-06 23:24 (UTC)

Seems this was fixed with this commit: https://github.com/metti/command-not-found/commit/102ea6e2797b6191a7357c94a162f08a3eef4e66 Maybe we should be using latest git version...

GFdevelop commented on 2017-11-06 23:11 (UTC) (edited on 2017-11-06 23:29 (UTC) by GFdevelop)

can't enable systemd timer... EDIT: github repo have the fixed cnf.timer this package is now outdated, to fix manually add to cnf.timer this: [Install] WantedBy=timers.target

marsoft commented on 2017-03-03 16:31 (UTC)

No need to source it (anymore) as it is (now) sourced automatically from /etc/profile.d/cnf.sh

oberon2007 commented on 2017-02-26 14:41 (UTC)

updated to v0.6.1

oberon2007 commented on 2017-01-01 22:52 (UTC)

adopted and updated to v0.6.0

Det commented on 2016-11-02 09:48 (UTC) (edited on 2016-11-02 09:48 (UTC) by Det)

Source it in your ~/.bashrc. https://wiki.archlinux.org/index.php/Command_not_found > https://wiki.archlinux.org/index.php/Bash#Command_not_found

commented on 2016-11-02 09:30 (UTC)

How would you call cnf-lookup automatically when a command is not found?

msquared commented on 2016-05-13 07:55 (UTC)

looks like the version 0.4.5 is broken for gcc6. most likely due to the standard default change in gcc6. the trunk version compiles fine. I will provide a release soon.

hashworks commented on 2016-05-12 09:57 (UTC)

Build fails for me on 2 different devices. /tmp/command-not-found/src/command-not-found-0.4.5/src/db.cpp:190:24: Fehler: expected primary-expression before »>« token shared_ptr<Database> d; ^ /tmp/command-not-found/src/command-not-found-0.4.5/src/db.cpp:190:26: Fehler: »d« wurde in diesem Gültigkeitsbereich nicht definiert shared_ptr<Database> d; ^ CMakeFiles/cnf.dir/build.make:62: die Regel für Ziel „CMakeFiles/cnf.dir/db.cpp.o“ scheiterte make[2]: *** [CMakeFiles/cnf.dir/db.cpp.o] Fehler 1 CMakeFiles/Makefile2:104: die Regel für Ziel „CMakeFiles/cnf.dir/all“ scheiterte make[1]: *** [CMakeFiles/cnf.dir/all] Fehler 2 Makefile:149: die Regel für Ziel „all“ scheiterte make: *** [all] Fehler 2 ==> FEHLER: Ein Fehler geschah in build(). Breche ab...

justin8 commented on 2016-04-15 23:12 (UTC)

@bobi Not automatically sadly

bobi commented on 2016-04-15 13:16 (UTC)

@justin8: is there any way to automate a cnf rebuild on every boost update?

justin8 commented on 2015-11-10 22:20 (UTC)

@shazde please don't mark as out of date when it isn't. You need to recompile all AUR packages that depend on boost when it gets updated.

msquared commented on 2015-10-11 18:48 (UTC)

this tool is discontinued. the prebuilt catalogs will soon be unavailable and are not updated anymore. if anyone has interest to take over, please contact me.

orbital_sfear commented on 2014-12-10 19:02 (UTC)

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 I had to recompile this package after boost updates: packer -S command-not-found After that, the error went away.

Det commented on 2014-12-10 18:58 (UTC)

No, you just need to rebuild it.

jmontano commented on 2014-02-18 16:21 (UTC)

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 (UTC)

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 (UTC)

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 (UTC)

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

msquared commented on 2013-10-06 14:53 (UTC)

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 (UTC)

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 (UTC)

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 (UTC)

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 (UTC)

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 (UTC)

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 (UTC)

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

EasySly commented on 2013-01-31 11:27 (UTC)

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 (UTC)

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 (UTC)

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

commented on 2012-09-26 12:03 (UTC)

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 (UTC)

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 (UTC)

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 (UTC)

fixed ... thanks!

msquared commented on 2011-12-10 18:57 (UTC)

- 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?

karol_007 commented on 2011-09-11 17:32 (UTC)

Works for me now: [karol@black ~]$ abiword The command 'abiword' is been provided by the following packages: [extra-i686] abiword (2.8.6-5) [ abiword ]

msquared commented on 2011-09-11 17:28 (UTC)

I switched the backend implementation to tdb. It should work now on i686 and x86_64.

karol_007 commented on 2011-09-11 00:05 (UTC)

I'm using 32-bits.

msquared commented on 2011-09-11 00:05 (UTC)

Hi, I wrote this just for fun ... and actually it works fine on my box. I discovered that there is already pkgfile that has this functionality right an hour before finishing this one. So, no matter ... If you can help me finding this issue than thanks a lot. What architectures do you use? I guess its a 32bit problem. Matthias

karol_007 commented on 2011-09-10 23:58 (UTC)

@Sara Yes, it provides the same functionality.

karol_007 commented on 2011-09-10 23:57 (UTC)

[karol@black ~]$ cnf-lookup abiword gdbm fatal: lseek error

Sara commented on 2011-09-10 23:57 (UTC)

Does this program duplicate the functionality provided by pkgfile (part of the pkgtools package)? From the pkgtools install file: pkgfile includes a "command not found" hook for both zsh and bash. This will automatically run pkgfile whenever you run a command which the shell cannot find.

msquared commented on 2011-09-10 23:53 (UTC)

Hi, the right result should be like this: metti@beebaer % abiword The command 'abiword' is been provided by the following packages: [extra-x86_64] abiword (2.8.6-5) [ abiword ] zsh: command not found: abiword I as well checked in bash ... hmmm Can you please try the command: $ cnf-lookup abiword That directly queries the database. If this delivers the same error, than somehow the database has not been downloaded correctly. To download the database again, execute as root # cnf-sync

commented on 2011-09-10 23:52 (UTC)

I get the same output karol does. Before trying to run abiword I did . /etc/profile.d/cnf.sh Should be enough right?

karol_007 commented on 2011-09-10 23:42 (UTC)

Is it working for you? [karol@black ~]$ abiword gdbm fatal: lseek error bash: abiword: command not found

commented on 2011-09-10 23:39 (UTC)

Well ... I guess, if you run e.g. luakit, but the package isn't installed on your system, this package tells you, that the package community/luakit contains this executable.

msquared commented on 2011-09-10 23:36 (UTC)

I already updated the package ... the first one was just automatically generated ... sorry.

karol_007 commented on 2011-09-10 22:58 (UTC)

That's a great & detailed package description - not. What does it do?