首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Ubuntu 20.04 not循环上尝试登录,在终端上总是得到“对不起,命令未找到”已崩溃!请在msg上提交错误报告。

在Ubuntu 20.04 not循环上尝试登录,在终端上总是得到“对不起,命令未找到”已崩溃!请在msg上提交错误报告。
EN

Ask Ubuntu用户
提问于 2021-09-20 11:25:09
回答 1查看 483关注 0票数 1

每当我尝试运行任何命令,如lssudo等,我都会遇到错误,无法登录到我的系统。(注:我看到了这个问题的多个答案,但非是为我工作的,这就是为什么我增加了新问题)

错误信息:

代码语言:javascript
复制
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
EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2021-09-27 20:30:25

当然,/etc/profile的最后一次编辑引入了语法错误。

  • 登录后尝试使用另一个shell,如dash
  • 如果它不能工作,转到恢复控制台(在grub菜单上移动,然后选择高级)
  • 如果还没有成功,无论如何,作为最后的手段,使用可引导的USB并修复它。
票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1364737

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档