liwl
deepin
2022-05-24 16:52 
这里设置了不?
Reply Like 0 View the author

这里设置了不?
是这样的,直接使用chsh -s /bin/bash命令会提示无法为"用户"更改shell设置
用sudo chsh -s /bin/bash的话无法直接更改"用户"的默认shell
所以最后使用 sudo deepin-editor /etc/passwd 用文本编辑器进入passwd设置文件
搜索找到"/usr/bin/fish"这一段改为"/bin/bash"
然后重启,即可解决。

这里设置了不?
设置了,是默认的$shell
Popular Ranking
ChangePopular Events
More
终端提示找不到bash位置,之前安装了fish,然后又卸载了,开始报错提示。
之后使用chsh命令更改到/bin/bash后仍提示错误。