zoukankan      html  css  js  c++  java
  • CentOS 7 命令lsb_release: command not found解决方案

    昨天安装了CentOS7,在使用 lsb_release -a命令查询linux系统版本的时候,发现lsb_release这个没装,提示错误是:

    [root@localhost Desktop]# lsb_release -a

    bash: lsb_release: command not found...

    这里,分享一下查询linux系统版本提示bash:lsb_release:command not found错误解决办法.

    1.确认lsb_release是否安装

    [root@localhost Desktop]# lsb_release -a

    bash: lsb_release: command not found... 


    这就说明没有安装。

    2.安装lsb_release

    使用yum安装lsb,具体命令如下:

    [root@localhost Desktop]# yum install -y redhat-lsb


    然后进如自动安装阶段,直到安装命令自动运行完毕。如下图所示:


    3.验证lsb是否已经安装

    执行命令,发现可以查看系统版本。

    [root@localhost Desktop]# lsb_release -a

    LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch

    Distributor ID: CentOS

    Description: CentOS Linux release 7.2.1511 (Core) 

    Release: 7.2.1511

    Codename: Core

  • 相关阅读:
    Hadoop Python 调用自定义so动态库
    Golang Redigo连接Redis 简单使用
    Golang 错误 "bad file descriptor"
    Centos Git 安装与升级
    初识数据库
    MySQL介绍,下载和安装
    并发编程:协程
    并发编程:多线程
    并发编程:多进程
    操作系统,进程理论
  • 原文地址:https://www.cnblogs.com/SDYiHeng/p/9655306.html
Copyright © 2011-2022 走看看