1. CMS首页
  2. 技术杂文

linux安装yum报错Unable to locate package yum解决方案

  猴猴在使用阿里云国际版服务器装宝塔的时候,执行安装命令的时候报错,提示:

<font color="#4d4d4d" face="Microsoft YaHei, SF Pro Display, Roboto, Noto, Arial, PingFang SC, sans-serif"><span>yum not found,but can be installed with apt install yum</span><br></font>

但是当小编执行安装yum命令时,又出现以下报错

# apt-get install yum
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package yum

解决方法:

sudo apt-get update
执行以上命令后再执行apt install yum后即可正常操作yum

发表评论

用户名: