sudo apt-get remove zsh之后求深度终端如何恢复?
Tofloor
poster avatar
cbfjw
deepin
2017-04-17 14:17
Author
本帖最后由 cbfjw 于 2017-4-17 07:57 编辑

sudo apt-get remove zsh,然后深度终端就不正常了——首行光标闪烁,无法显示输入内容?
卸载——商店重装——依旧如此。
求恢复,先表示感谢!
Reply Favorite View the author
All Replies
avatar
ghou
deepin
2017-04-17 17:25
#1
本帖最后由 ghou 于 2017-4-17 11:30 编辑

alt + ctrl + 功能键 切入 tty 1~6,用户名+密码登录,然后执行 chsh -s bash,试试看
Reply View the author
avatar
cbfjw
deepin
2017-04-17 17:58
#2
https://bbs.deepin.org/post/137708
alt + ctrl + 数字键 切入 tty 1~6,用户名+密码登录,然后执行 chsh -s bash,试试看 ...

chsh:bash 是无效的 shell
Reply View the author
avatar
tr******rt@outlook.com
deepin
2017-04-17 18:22
#3
https://bbs.deepin.org/post/137708
chsh:bash 是无效的 shell

要用 sudo
Reply View the author
avatar
ghou
deepin
2017-04-17 18:26
#4
https://bbs.deepin.org/post/137708
chsh:bash 是无效的 shell

那就试试 /bin/bash
Reply View the author
avatar
cbfjw
deepin
2017-04-17 18:54
#5
https://bbs.deepin.org/post/137708
那就试试 /bin/bash

1.  sudo chsh -s bash
2.  sudo chsh -s /bin/bash
执行1,或2,一直显示为四个白色小方框后面连着一个闪动的下标减号。
Reply View the author
avatar
cbfjw
deepin
2017-04-17 18:55
#6
https://bbs.deepin.org/post/137708
那就试试 /bin/bash

显示为四个白色小方框后面连着一个闪动的下标减号
Reply View the author
avatar
ghou
deepin
2017-04-17 19:05
#7
https://bbs.deepin.org/post/137708
1.  sudo chsh -s bash
2.  sudo chsh -s /bin/bash
执行1,或2,一直显示为四个白色小方框后面连着一个 ...

输入(你登陆的)密码
Reply View the author
avatar
cbfjw
deepin
2017-04-17 19:09
#8
https://bbs.deepin.org/post/137708
输入(你登陆的)密码

准确的说是执行1或2,输入密码后显示四个小方框连一个下标减号
Reply View the author
avatar
ghou
deepin
2017-04-17 19:37
#9
https://bbs.deepin.org/post/137708
准确的说是执行1或2,输入密码后显示四个小方框连一个下标减号

这个就是提醒你输入密码,可能密码错误,也可能没加入 sudoer。
Reply View the author
avatar
Feng Yu
deepin
2017-04-17 20:02
#10
手工编辑/etc/passwd文件,把用户默认的shell换成/bin/bash
Reply View the author
avatar
cbfjw
deepin
2017-04-17 20:08
#11
本帖最后由 cbfjw 于 2017-4-17 12:11 编辑
https://bbs.deepin.org/post/137708
这个就是提醒你输入密码,可能密码错误,也可能没加入 sudoer。

sudo nano /etc/sudoers
然后要如何改?...
root    ALL=(ALL:ALL) ALL
...
%sudo   ALL=(ALL:ALL) ALL

...
Reply View the author
avatar
cbfjw
deepin
2017-04-17 22:24
#12
本帖最后由 cbfjw 于 2017-4-17 14:31 编辑
https://bbs.deepin.org/post/137708
手工编辑/etc/passwd文件,把用户默认的shell换成/bin/bash

username:x:1000:1000::/home/username:/bin/bash

成功恢复,非常感谢各位!
Reply View the author