yum install sudo /bin/sh: yum: not found
时间: 2023-11-09 11:05:19 浏览: 148
这个错误提示表明您的系统上没有安装 yum 包管理器。yum 是 Red Hat 系统中常用的包管理器之一,如果您使用的是其他发行版,可能需要使用不同的包管理器。
您可以通过以下命令来检查系统是否已经安装了 yum:
```
which yum
```
如果没有安装,您可以使用以下命令来安装 yum:
```
yum install -y yum-utils
```
如果您的系统上没有预装 yum-utils,您可能需要先安装该包。完成安装后,您就可以使用 yum 了。
相关问题
sudo yum install zip /bin/sh: sudo: not found
这个错误提示表明你的 Linux 系统中没有安装 sudo 命令,因此无法执行该命令。你可以尝试以 root 用户身份执行该命令,或者安装 sudo 命令以便使用普通用户身份执行该命令。你可以执行以下命令安装 sudo:
```
yum install sudo
```
如果你已经以 root 用户身份登录,也可以直接执行以下命令安装 zip:
```
yum install zip
```
/system/bin/sh: sudo: not found
这个错误通常是因为你的系统中没有安装 sudo 工具。sudo 是一个用于以超级用户权限运行命令的工具,它可以帮助你在没有 root 权限的情况下执行需要超级用户权限的操作。
如果你使用的是基于 Debian 或 Ubuntu 的 Linux 发行版,你可以使用以下命令安装 sudo 工具:
```
sudo apt-get update
sudo apt-get install sudo
```
如果你使用的是基于 Red Hat 或 CentOS 的 Linux 发行版,你可以使用以下命令安装 sudo 工具:
```
yum update
yum install sudo
```
安装完成后,你就可以使用 sudo 命令来以超级用户权限运行命令了。
阅读全文
相关推荐














