zoukankan      html  css  js  c++  java
  • xhost: command not found 解决办法

    环境

    [root@Oracle19c ~]# cat /etc/redhat-release
    CentOS Linux release 8.3.2011

    错误字段

    [root@Oracle19c ~]# xhost +
    -bash: xhost: command not found

    查询软件包

    [root@Oracle19c ~]# yum whatprovides "*/xhost"
    Last metadata expiration check: 0:53:01 ago on Mon 01 Feb 2021 01:42:39 AM EST.
    bash-completion-1:2.7-5.el8.noarch : Programmable completion for Bash
    Repo : @System
    Matched from:
    Filename : /usr/share/bash-completion/completions/xhost

    bash-completion-1:2.7-5.el8.noarch : Programmable completion for Bash
    Repo : baseos
    Matched from:
    Filename : /usr/share/bash-completion/completions/xhost

    xorg-x11-server-utils-7.7-27.el8.x86_64 : X.Org X11 X server utilities
    Repo : appstream
    Matched from:
    Filename : /usr/bin/xhost

    安装软件包

    [root@Oracle19c ~]# dnf -y install xorg-x11-server-utils-7.7-27.el8.x86_64
    Last metadata expiration check: 0:53:15 ago on Mon 01 Feb 2021 01:42:39 AM EST.
    Dependencies resolved.
    ===================================================================================================================================================
    Package Architecture Version Repository Size
    ===================================================================================================================================================
    Installing:
    xorg-x11-server-utils x86_64 7.7-27.el8 appstream 198 k
    Installing dependencies:
    libXcursor x86_64 1.1.15-3.el8 appstream 36 k
    libXfixes x86_64 5.0.3-7.el8 appstream 25 k
    libmcpp x86_64 2.7.2-20.el8 appstream 81 k
    mcpp x86_64 2.7.2-20.el8 appstream 31 k

    Transaction Summary
    ===================================================================================================================================================
    Install 5 Packages

    Total download size: 371 k
    Installed size: 769 k
    Downloading Packages:
    (1/5): libXcursor-1.1.15-3.el8.x86_64.rpm 756 kB/s | 36 kB 00:00
    (2/5): libXfixes-5.0.3-7.el8.x86_64.rpm 356 kB/s | 25 kB 00:00
    (3/5): mcpp-2.7.2-20.el8.x86_64.rpm 473 kB/s | 31 kB 00:00
    (4/5): libmcpp-2.7.2-20.el8.x86_64.rpm 696 kB/s | 81 kB 00:00
    (5/5): xorg-x11-server-utils-7.7-27.el8.x86_64.rpm 2.0 MB/s | 198 kB 00:00
    ----------------------------------------------------------------------------------------------------------------------------------------------------------
    Total 220 kB/s | 371 kB 00:01
    Running transaction check
    Transaction check succeeded.
    Running transaction test
    Transaction test succeeded.
    Running transaction
    Preparing : 1/1
    Installing : libmcpp-2.7.2-20.el8.x86_64 1/5
    Running scriptlet: libmcpp-2.7.2-20.el8.x86_64 1/5
    Installing : mcpp-2.7.2-20.el8.x86_64 2/5
    Installing : libXfixes-5.0.3-7.el8.x86_64 3/5
    Installing : libXcursor-1.1.15-3.el8.x86_64 4/5
    Installing : xorg-x11-server-utils-7.7-27.el8.x86_64 5/5
    Running scriptlet: xorg-x11-server-utils-7.7-27.el8.x86_64 5/5
    Verifying : libXcursor-1.1.15-3.el8.x86_64 1/5
    Verifying : libXfixes-5.0.3-7.el8.x86_64 2/5
    Verifying : libmcpp-2.7.2-20.el8.x86_64 3/5
    Verifying : mcpp-2.7.2-20.el8.x86_64 4/5
    Verifying : xorg-x11-server-utils-7.7-27.el8.x86_64 5/5

    Installed:
    libXcursor-1.1.15-3.el8.x86_64 libXfixes-5.0.3-7.el8.x86_64 libmcpp-2.7.2-20.el8.x86_64 mcpp-2.7.2-20.el8.x86_64
    xorg-x11-server-utils-7.7-27.el8.x86_64

    Complete!
    [root@Oracle19c ~]#

  • 相关阅读:
    [转贴]35岁之前成功12条法则
    any type,any name
    The quick brown fox jumps over the lazy dog.
    [总结]软件工程师笔试题目(C++)
    [转]IOCP介绍
    A simple IOCP Server/Client Class
    Flash for Linux
    看看你是否需要更新SYMBOL文件了??
    [转贴]The Code Project Visual C++ Forum FAQ
    (搜集)一些少走弯路的话语+参考信息
  • 原文地址:https://www.cnblogs.com/Release-R/p/14356929.html
Copyright © 2011-2022 走看看