Command ‘yum‘ not found, did you mean:

声明 ubantu 使用yum 是因为没有yum 命令,如果需要安装yum命令 配置镜像源根据自己的系统版本

lsb_release -a 
 #查看

#配置列表源  草莓派有不同的镜像版本 根据自己ubantu系统版本安装对应的镜像源
deb http://mirrors.aliyun.com/ubuntu/ XXXXX main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ XXXXX-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ XXXXX-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ XXXXX-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ XXXXX-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ XXXXX main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ XXXXX-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ XXXXX-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ XXXXX-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ XXXXX-backports main restricted universe multiverse


xxxxx = focal


# 更新自己的列表和源  安装yum命令

如果还是有点迷糊, 可以参考这个文章 -> https://blog.csdn.net/SH_ke/article/details/118496704

其实使用apt资源库就可以了 基本需要装的软件都有

 yum install -y yum-utils

Command 'yum' not found, did you mean:

  command 'sum' from deb coreutils (8.30-3ubuntu2)
  command 'num' from deb quickcal (2.4-1)
  command 'zum' from deb perforate (1.2-5.1)
  command 'uum' from deb freewnn-jserver (1.1.1~a021+cvs20130302-7build1)
Try: sudo apt install <deb name>


 rpm -qa |grep yum


在这里插入图片描述

sudo apt install rpm

Command ‘yum‘ not found, did you mean:_第1张图片

你可能感兴趣的:(异常,java)