View Issue Details

IDProjectCategoryView StatusLast Update
0007068Kali LinuxGeneral Bugpublic2022-03-28 09:19
ReporterMRX Assigned Todaniruiz  
Status closedResolutionsuspended 
Product Version2021.1 
Summary0007068: Kali 2021.1 gives an error "comment_not_found".

└─$ try 127 ⨯
Sorry, command-not-found has crashed! Please file a bug report at:
Please include the following information with the report:

command-not-found version: 0.3
Python version: 3.9.1 final 0
Distributor ID: Kali
Description: Kali GNU/Linux Rolling
Release: 2021.1
Codename: kali-rolling
Exception information:

unable to open database file
Traceback (most recent call last):
File "/usr/share/command-not-found/CommandNotFound/", line 23, in crash_guard
File "/usr/lib/command-not-found", line 90, in main
cnf = CommandNotFound.CommandNotFound(options.data_dir)
File "/usr/share/command-not-found/CommandNotFound/", line 79, in init
self.db = SqliteDatabase(dbpath)
File "/usr/share/command-not-found/CommandNotFound/db/", line 12, in init
self.con = sqlite3.connect(filename)
sqlite3.OperationalError: unable to open database file




2021-02-26 14:12

administrator   ~0014252

Can you elaborate in what context you get that error? Is that a freshly installed system? a freshly upgraded system? a live system?

Have you run "sudo apt update" once after the upgrade?

Does "sudo update-command-not-found" fix the issue?



2022-03-28 09:19

manager   ~0015966

This report has been filed against an old version of Kali. We will be closing this ticket due to inactivity.

Please could you see if you are able to replicate this issue with the latest version of Kali Linux (

If you are still facing the same problem, feel free to re-open the ticket. If you choose to do this, could you provide more information to the issue you are facing, and also give information about your setup?
For more information, please read:

Issue History

Date Modified Username Field Change
2021-02-26 09:25 MRX New Issue
2021-02-26 14:12 rhertzog Note Added: 0014252
2021-03-13 06:31 Ehtisham Issue cloned: 0007097
2021-06-30 08:49 g0tmi1k Priority immediate => normal
2022-03-25 13:58 g0tmi1k Severity feature => minor
2022-03-28 09:19 daniruiz Note Added: 0015966
2022-03-28 09:19 daniruiz Assigned To => daniruiz
2022-03-28 09:19 daniruiz Status new => closed
2022-03-28 09:19 daniruiz Resolution open => suspended