每当我尝试运行任何命令,如ls或sudo等,我都会遇到错误,无法登录到我的系统。(注:我看到了这个问题的多个答案,但非是为我工作的,这就是为什么我增加了新问题)
错误信息:
Sorry, command-not-found has crashed! Please file a bug report at:
https:bugs.launchpad.net/command-not-found/+filebug
Please include the following information with the report:
command-not-found version: 0.3
Python version: 3.8.10 final 0
Exception information:
unable to open database file
Trackback(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发布于 2021-09-27 20:30:25
当然,/etc/profile的最后一次编辑引入了语法错误。
dashhttps://askubuntu.com/questions/1364737
复制相似问题