Cannot execute /bin/zsh: No such file or directory
程序员文章站
2022-03-01 14:51:08
...
问题描述:
[email protected]:~$ su root
Password:
Cannot execute /bin/zsh: No such file or directory
接下来修改 /etc/passwd
[email protected]:~$ sudo vim /etc/passwd
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin
bin:x:2:2:bin:/bin:/usr/sbin/nologin
将
root:x:0:0:root:/root:/bin/zsh
改成
root:x:0:0:root:/root:/bin/bash
接下来再sudo su,成功解决。
推荐阅读
-
ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory
-
bash: /usr/bin/autocrorder: /usr/bin/python^M: bad interpreter: No such file or directory
-
ubuntu 12.04下安装Qt出现cannot execute binary file的解决方案
-
【openWRT】编译问题/usr/bin/env: node: No such file or directory
-
【/usr/bin/env: node: No such file or directory】 的解决办法
-
Python Error: /usr/bin/env: python3: No such file or directory
-
linux系统安装VMware(详细解决"Cannot open /dev/vmmon: No such file or directory"问题)
-
mdadm: cannot open /dev/sdb: No such file or directory
-
报错:/usr/bin/env: php: No such file or directory
-
- bash: /usr/bin/ls: /lib64/ld-linux-x86-64.so.2: bad ELF interpreter: No such file or directory