• xhost: unable to open display 错误备用解决方案


    发现错误

    [root@Oracle19c ~]# xhost +
    xhost: unable to open display "192.168.0.102:0.0"

    验证错误

    [root@Oracle19c ~]# /usr/bin/xterm -ls -display $DISPLAY
    -bash: /usr/bin/xterm: No such file or directory

    安装Xterm

    [root@Oracle19c ~]# yum install xterm
    Last metadata expiration check: 1:02:11 ago on Mon 01 Feb 2021 01:42:39 AM EST.
    Dependencies resolved.
    ==========================================================================================================================================================
    Package Architecture Version Repository Size
    ==========================================================================================================================================================
    Installing:
    xterm x86_64 331-1.el8 appstream 528 k
    Installing dependencies:
    libXaw x86_64 1.0.13-10.el8 appstream 194 k
    libXft x86_64 2.3.3-1.el8 appstream 67 k
    libXpm x86_64 3.5.12-8.el8 appstream 58 k
    libfontenc x86_64 1.1.3-8.el8 appstream 37 k
    xorg-x11-font-utils x86_64 1:7.5-40.el8 appstream 103 k
    xterm-resize x86_64 331-1.el8 appstream 38 k
    Installing weak dependencies:
    xorg-x11-fonts-misc noarch 7.5-19.el8 appstream 5.8 M

    Transaction Summary
    ==========================================================================================================================================================
    Install 8 Packages

    Total download size: 6.8 M
    Installed size: 9.5 M
    Is this ok [y/N]: y
    Downloading Packages:
    (1/8): libXaw-1.0.13-10.el8.x86_64.rpm 2.8 MB/s | 194 kB 00:00
    (2/8): libXpm-3.5.12-8.el8.x86_64.rpm 731 kB/s | 58 kB 00:00
    (3/8): libfontenc-1.1.3-8.el8.x86_64.rpm 1.0 MB/s | 37 kB 00:00
    (4/8): libXft-2.3.3-1.el8.x86_64.rpm 583 kB/s | 67 kB 00:00
    (5/8): xorg-x11-font-utils-7.5-40.el8.x86_64.rpm 1.5 MB/s | 103 kB 00:00
    (6/8): xterm-resize-331-1.el8.x86_64.rpm 566 kB/s | 38 kB 00:00
    (7/8): xorg-x11-fonts-misc-7.5-19.el8.noarch.rpm 25 MB/s | 5.8 MB 00:00
    (8/8): xterm-331-1.el8.x86_64.rpm 2.3 MB/s | 528 kB 00:00
    ----------------------------------------------------------------------------------------------------------------------------------------------------------
    Total 8.3 MB/s | 6.8 MB 00:00
    Running transaction check
    Transaction check succeeded.
    Running transaction test
    Transaction test succeeded.
    Running transaction
    Preparing : 1/1
    Installing : libXpm-3.5.12-8.el8.x86_64 1/8
    Installing : libXaw-1.0.13-10.el8.x86_64 2/8
    Installing : xterm-resize-331-1.el8.x86_64 3/8
    Installing : libfontenc-1.1.3-8.el8.x86_64 4/8
    Installing : xorg-x11-font-utils-1:7.5-40.el8.x86_64 5/8
    Installing : xorg-x11-fonts-misc-7.5-19.el8.noarch 6/8
    Running scriptlet: xorg-x11-fonts-misc-7.5-19.el8.noarch 6/8
    Installing : libXft-2.3.3-1.el8.x86_64 7/8
    Installing : xterm-331-1.el8.x86_64 8/8
    Running scriptlet: xterm-331-1.el8.x86_64 8/8
    Verifying : libXaw-1.0.13-10.el8.x86_64 1/8
    Verifying : libXft-2.3.3-1.el8.x86_64 2/8
    Verifying : libXpm-3.5.12-8.el8.x86_64 3/8
    Verifying : libfontenc-1.1.3-8.el8.x86_64 4/8
    Verifying : xorg-x11-font-utils-1:7.5-40.el8.x86_64 5/8
    Verifying : xorg-x11-fonts-misc-7.5-19.el8.noarch 6/8
    Verifying : xterm-331-1.el8.x86_64 7/8
    Verifying : xterm-resize-331-1.el8.x86_64 8/8

    Installed:
    libXaw-1.0.13-10.el8.x86_64 libXft-2.3.3-1.el8.x86_64 libXpm-3.5.12-8.el8.x86_64 libfontenc-1.1.3-8.el8.x86_64
    xorg-x11-font-utils-1:7.5-40.el8.x86_64 xorg-x11-fonts-misc-7.5-19.el8.noarch xterm-331-1.el8.x86_64 xterm-resize-331-1.el8.x86_64

    Complete!

  • 相关阅读:
    应用程序如何实现高级量规界面自定义?这个第三方控件很好用
    Web应用开发的透视网格如何实现本地化?一招教你轻松搞定
    这个布局助手工具,帮你快速构建美观的WinForm应用
    用于Delphi的DevExpress VCL组件——增强布局控件性能
    JS/TS生成随机姓名
    单例模式的错误用法
    Node极速开发WebSocket服务器
    Unity中实现WebSocket客户端
    解决git每次输入密码的问题
    html转md
  • 原文地址:https://www.cnblogs.com/Release-R/p/14357005.html
Copyright © 2020-2023  润新知