Bug#985833: General: when searching repos I get an error message
Package: General Severity: normal X-Debbugs-Cc: 51lv3rb...@protonmail.com Dear Maintainer, After using the command apt search 'package_name' if the package can't be found I get the following error message, when the error happened and every other instance I have a good internet connection. I'm assuming that the 'unable to open database file' would mean there was no connection, am I right? Sorry, command-not-found has crashed! Please file a bug report at: http://www.debian.org/Bugs/Reporting Please include the following information with the report: command-not-found version: 0.3 Python version: 3.9.2 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/util.py", line 23, in crash_guard callback() File "/usr/lib/command-not-found", line 90, in main cnf = CommandNotFound.CommandNotFound(options.data_dir) File "/usr/share/command-not-found/CommandNotFound/CommandNotFound.py", line 79, in __init__ self.db = SqliteDatabase(dbpath) File "/usr/share/command-not-found/CommandNotFound/db/db.py", line 12, in __init__ self.con = sqlite3.connect(filename) sqlite3.OperationalError: unable to open database file -- System Information: Distributor ID: Kali Description:Kali GNU/Linux Rolling Release:2021.1 Codename: kali-rolling Architecture: x86_64 Kernel: Linux 5.10.0-kali4-amd64 (SMP w/8 CPU threads) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_DIE, TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled
Bug#985833: General: when searching repos I get an error message
Control: reassign -1 command-not-found Control: tags -1 + wontfix Hi Silverback! unable to open database file Traceback (most recent call last): File "/usr/share/command-not-found/CommandNotFound/util.py", line 23, in crash_guard callback() File "/usr/lib/command-not-found", line 90, in main cnf = CommandNotFound.CommandNotFound(options.data_dir) File "/usr/share/command-not-found/CommandNotFound/CommandNotFound.py", line 79, in __init__ self.db = SqliteDatabase(dbpath) File "/usr/share/command-not-found/CommandNotFound/db/db.py", line 12, in __init__ self.con = sqlite3.connect(filename) sqlite3.OperationalError: unable to open database file There's no internet access involved; the tool cannot open the local database file, which is located at /var/lib/command-not-found/commands.db This can have a bunch of reasons: maybe the file was not created properly, your filesystem might be corrupted, or your disk is full. Speaking of potential fixes: Sorry, command-not-found has crashed! Please file a bug report at: http://www.debian.org/Bugs/Reporting I see why you ended up filing a bug with Debian, but... command-not-found version: 0.3 Python version: 3.9.2 final 0 Distributor ID: Kali Description:Kali GNU/Linux Rolling Release:2021.1 Codename: kali-rolling ...even if this is an actual bug and not an issue with your machine, it is probably Kali Linux related (which derives from Debian, but it is *not* a Debian release), so you are better off asking for support and/or file a bug there: https://www.kali.org/docs/community/submitting-issues-kali-bug-tracker/ Cheers Timo signature.asc Description: PGP signature
Processed: Re: Bug#985833: General: when searching repos I get an error message
Processing control commands: > reassign -1 command-not-found Bug #985833 [general] General: when searching repos I get an error message Bug reassigned from package 'general' to 'command-not-found'. Ignoring request to alter found versions of bug #985833 to the same values previously set Ignoring request to alter fixed versions of bug #985833 to the same values previously set > tags -1 + wontfix Bug #985833 [command-not-found] General: when searching repos I get an error message Added tag(s) wontfix. -- 985833: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=985833 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems