This has been present on my 20.04 and 20.10 Ubuntu's, both on amd64 and arm64 builds. It comes and goes, usually I have to 'sudo apt purge command-not-found*' and then reinstall with 'sudo apt-get install command-not-found*'.
Would be kinda great if there was a final solution for this, instead of just having to go thru the workarounds from one year to another. Thanks.
unable to open database file
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/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/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 79, in __init__
self.db = SqliteDatabase(dbpath)
File "/usr/lib/python3/dist-packages/CommandNotFound/db/db.py", line 12, in __init__
self.con = sqlite3.connect(filename)
sqlite3.OperationalError: unable to open database file
This has been present on my 20.04 and 20.10 Ubuntu's, both on amd64 and arm64 builds. It comes and goes, usually I have to 'sudo apt purge command-not-found*' and then reinstall with 'sudo apt-get install command- not-found* '.
Would be kinda great if there was a final solution for this, instead of just having to go thru the workarounds from one year to another. Thanks.
###
Sorry, command-not-found has crashed! Please file a bug report at: /bugs.launchpad .net/command- not-found/ +filebug
https:/
Please include the following information with the report:
command-not-found version: 0.3
Python version: 3.8.6 final 0
Distributor ID: Ubuntu
Description: Ubuntu 20.10
Release: 20.10
Codename: groovy
Exception information:
unable to open database file python3/ dist-packages/ CommandNotFound /util.py" , line 23, in crash_guard command- not-found" , line 90, in main .CommandNotFoun d(options. data_dir) python3/ dist-packages/ CommandNotFound /CommandNotFoun d.py", line 79, in __init__ dbpath) python3/ dist-packages/ CommandNotFound /db/db. py", line 12, in __init__ connect( filename) OperationalErro r: unable to open database file
Traceback (most recent call last):
File "/usr/lib/
callback()
File "/usr/lib/
cnf = CommandNotFound
File "/usr/lib/
self.db = SqliteDatabase(
File "/usr/lib/
self.con = sqlite3.
sqlite3.
###