![]() So, the DB is there, but the permissions are wrong. rw-r- 1 root root 3253 gru 16 08:17 commands.db.metadata In first instance you have to initialize a new DB that contains all the entry for your filesystem with the command updatedb. Since locate relies on this database, you need to update it regularly to ensure efficiency. I debugged /usr/lib/python3/dist-packages/CommandNotFound/db/db.py and found the following: $ ls /var/lib/command-not-found/ -l You need to update the search database after the installation. ![]() Note that a database can be read from the standard input only once. A database file name -refers to the standard input. An empty database file name is replaced by the default database. If more than one -database option is specified, the resulting path is a concatenation of the separate paths. To find an exact match according to pattern you enter, use this -b option and the globbing option as in the following syntax. DBPATH is a :-separated list of database file names. locate bashcompletion.sh Find Files Using Locate Command. ![]() Sqlite3.OperationalError: unable to open database fileĬommand 'kbounce' not found, but can be installed with: Once the database is updated, now try to run the locate command, which should work this time around. Please include the following information with the report:įile "/usr/lib/python3/dist-packages/CommandNotFound/util.py", line 23, in crash_guardįile "/usr/lib/command-not-found", line 90, in mainĬnf = CommandNotFound.CommandNotFound(options.data_dir)įile "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 79, in _init_įile "/usr/lib/python3/dist-packages/CommandNotFound/db/db.py", line 12, in _init_ Sorry, command-not-found has crashed! Please file a bug report at: This manual page documents the GNU version of updatedb, which updates file name databases used by GNU locate. On 20.04.4 LTS, this helped me: $ sudo apt install -reinstall command-not-found It is not there on ubuntu (xubuntu), and it doesn't even seem to be locate-able (ironically) in principle. A character outside of a quoted string starts a comment extending until end of line.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |