command-not-found crashed: unable to open database file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
command-not-found |
New
|
Undecided
|
Unassigned |
Bug Description
抱歉,command-
https:/
请在报告中包含以下信息:
command-not-found 版本:0.3
Python 版本:3.8.10 final 0
Distributor ID: Ubuntu
Description: Ubuntu 20.04.3 LTS
Release: 20.04
Codename: focal
额外信息:
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.
I have fixed this problem with the following command.
sudo chmod o+r /var/lib/ command- not-found/ commands. db
The problem is caused by "UMASK 027" and "USERGROUPS_ENAB no" in /etc/login.defs, after apt dist-upgrade, the permission of /var/lib/ command- not-found/ commands. db was changed from 0644 to 0640