[Seek Help] 终端提示找不到bash位置,已用chsh命令更改仍提示 Resolved
Tofloor
poster avatar
Albedo
deepin
2022-05-24 16:44
Author

终端提示找不到bash位置,之前安装了fish,然后又卸载了,开始报错提示。

之后使用chsh命令更改到/bin/bash后仍提示错误。

image.png

Reply Favorite View the author
All Replies
liwl
deepin
2022-05-24 16:52
#1

image.png

这里设置了不?

Reply View the author
Albedo
deepin
2022-05-24 17:14
#2

是这样的,直接使用chsh -s /bin/bash命令会提示无法为"用户"更改shell设置

用sudo chsh -s /bin/bash的话无法直接更改"用户"的默认shell

所以最后使用 sudo deepin-editor /etc/passwd 用文本编辑器进入passwd设置文件

搜索找到"/usr/bin/fish"这一段改为"/bin/bash"

然后重启,即可解决。

Reply View the author
Albedo
deepin
2022-05-24 17:14
#3
liwl

image.png

这里设置了不?

设置了,是默认的$shell

Reply View the author