linux - 在 ubuntu 中以 root 身份登录时出错

标签 linux ubuntu logging authentication terminal

<分区>

当我尝试将用户更改为 root 时,出现以下错误

➜  ~  su
Password: 
Cannot execute /usr/local/bin/fish: No such file or directory

知道如何摆脱它吗?我现在没有安装鱼。我之前已经安装过了。

最佳答案

我做了以下并且对我有用。

  1. 执行“sudo bash”并以 root 身份登录。无法使用普通的“su”以 root 身份登录,因为它抛出了与 fish 相关的错误。
  2. 删除了 fish 和 zsh 的所有痕迹
  3. 注销并使用我的普通用户名登录。现在,默认的 shell bash 工作正常。

关于linux - 在 ubuntu 中以 root 身份登录时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31713881/

相关文章:

linux - 从 Postgresql 9.1 升级到 9.3 时为 "cannot write to log file pg_upgrade_internal.log"

linux - 在此处文档后使用 bash 语法

linux - 内核模块 makefile 中的 "modules"

python - 使用 AWS 部署 Django

java - Slf4j 记录器的模式

使用 ETW 跟踪 Windows 用户模式进程系统调用

javascript - 如何在 JavaScript 中使用 console.log() 在同一行打印?

linux - 如何在不造成严重破坏的情况下移动 Git 目录

python - 使用 shell 命令更改正在运行的程序行为

linux - Apache DirectoryRoot 配置?