• 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 ~]#

  • 相关阅读:
    【STM32F429】第1章 当前主流的小型嵌入式GUI
    【STM32H7】第14章 UDP用户数据报协议基础知识
    【STM32F429】第14章 UDP用户数据报协议基础知识
    【STM32F407】第14章 UDP用户数据报协议基础知识
    【STM32H7】第13章 RL-TCPnet V7.X之创建多个TCP客户端
    【STM32F429】第13章 RL-TCPnet V7.X之创建多个TCP客户端
    【STM32F407】第13章 RL-TCPnet V7.X之创建多个TCP客户端
    【STM32H7】第12章 RL-TCPnet V7.X之TCP客户端
    【STM32F429】第12章 RL-TCPnet V7.X之TCP客户端
    迄今最强综合Demo,H7-TOOL的RTX5全家桶版本整体设计框架
  • 原文地址:https://www.cnblogs.com/Release-R/p/14356929.html
Copyright © 2020-2023  润新知