Could not execute auto check for display colors using command /usr/bin/xdpyinfo

Linux上安装Oralce数据库时,往往需要调出图形界面,虽然xmanager passive已经启动,但是依旧调不出来,出现如下报错:

[oracle@cdr database]$ export DISPLAY=172.20.20.15:0.0
[oracle@cdr database]$ ./runInstaller 
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 500 MB.   Actual 495816 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 7551 MB    Passed
Checking monitor: must be configured to display at least 256 colors
    >>> Could not execute auto check for display colors using command /usr/bin/xdpyinfo. Check if the DISPLAY variable is set.    Failed <<<<

Some requirement checks failed. You must fulfill these requirements before

continuing with the installation,

Continue? (y/n) [n] n

User Selected: No

Exiting Oracle Universal Installer, log for this session can be found at /tmp/OraInstall2021-12-23_05-45-13PM/installActions2021-12-23_05-45-13PM.log

解决方法:
先检查xdpyinfo是否安装:

[root@cdr ~]# /usr/bin/xdpyinfo
-bash: /usr/bin/xdpyinfo: No such file or directory

检查发现xdpyinfo没有安装,先安装xdpyinfo

[root@cdr ~]# yum -y install xdpyinfo
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package xorg-x11-utils.x86_64 0:7.5-23.el7 will be installed
--> Processing Dependency: libdmx.so.1()(64bit) for package: xorg-x11-utils-7.5-23.el7.x86_64
--> Processing Dependency: libXxf86dga.so.1()(64bit) for package: xorg-x11-utils-7.5-23.el7.x86_64
--> Processing Dependency: libXv.so.1()(64bit) for package: xorg-x11-utils-7.5-23.el7.x86_64
--> Running transaction check
---> Package libXv.x86_64 0:1.0.11-1.el7 will be installed
---> Package libXxf86dga.x86_64 0:1.1.4-2.1.el7 will be installed
---> Package libdmx.x86_64 0:1.1.3-3.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================================================================================================================================================
 Package                                                     Arch                                                Version                                                      Repository                                       Size
====================================================================================================================================================================================================================================
Installing:
 xorg-x11-utils                                              x86_64                                              7.5-23.el7                                                   c7                                              114 k
Installing for dependencies:
 libXv                                                       x86_64                                              1.0.11-1.el7                                                 c7                                               18 k
 libXxf86dga                                                 x86_64                                              1.1.4-2.1.el7                                                c7                                               19 k
 libdmx                                                      x86_64                                              1.1.3-3.el7                                                  c7                                               16 k

Transaction Summary
====================================================================================================================================================================================================================================
Install  1 Package (+3 Dependent packages)

Total download size: 168 k
Installed size: 334 k
Downloading packages:
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                               3.7 MB/s | 168 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : libXxf86dga-1.1.4-2.1.el7.x86_64                                                                                                                                                                                 1/4 
  Installing : libdmx-1.1.3-3.el7.x86_64                                                                                                                                                                                        2/4 
  Installing : libXv-1.0.11-1.el7.x86_64                                                                                                                                                                                        3/4 
  Installing : xorg-x11-utils-7.5-23.el7.x86_64                                                                                                                                                                                 4/4 
  Verifying  : xorg-x11-utils-7.5-23.el7.x86_64                                                                                                                                                                                 1/4 
  Verifying  : libXv-1.0.11-1.el7.x86_64                                                                                                                                                                                        2/4 
  Verifying  : libdmx-1.1.3-3.el7.x86_64                                                                                                                                                                                        3/4 
  Verifying  : libXxf86dga-1.1.4-2.1.el7.x86_64                                                                                                                                                                                 4/4 

Installed:
  xorg-x11-utils.x86_64 0:7.5-23.el7                                                                                                                                                                                                

Dependency Installed:
  libXv.x86_64 0:1.0.11-1.el7                                              libXxf86dga.x86_64 0:1.1.4-2.1.el7                                              libdmx.x86_64 0:1.1.3-3.el7                                             

Complete!

然后即可调出图形界面

[oracle@cdr database]$ ./runInstaller 
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 500 MB.   Actual 495814 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 7551 MB    Passed
Checking monitor: must be configured to display at least 256 colors.    Actual 16777216    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2021-12-23_05-46-11PM. Please wait ...[oracle@cdr database]$ 

在这里插入图片描述

  • 4
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
"Solaris 10在运行命令'/usr/X11R6/bin/xsetroot -name'时,可能会遇到'could not execute auto check for display colors using command /usr/X11R6/bin/xsetroot -name'的错误提示。 这个错误通常是由于缺少X Window系统所需的某些配置文件或环境变量引起的。由于缺少相关配置,导致操作系统无法正确运行'xsetroot'命令。 要解决这个问题,可以尝试以下几个步骤: 1. 检查是否安装了X Window系统:确保系统中已安装X Window及其相关组件。可以通过运行命令'dpkg -l xserver-xorg-core'来检查是否已安装X Window软件包。 2. 检查环境变量设置:确保环境变量DISPLAY已正确设置。可以通过运行命令'echo $DISPLAY'来检查显示器环境变量的值。如果没有设置,可以通过运行命令'export DISPLAY=:0.0'来设置DISPLAY变量。 3. 检查权限:检查当前用户是否具有足够的权限来执行'xsetroot'命令。可以尝试以root用户的身份运行命令,或者通过sudo命令获得root权限。 4. 重新安装X Window系统:如果以上步骤都没有解决问题,可以尝试重新安装X Window系统,以确保所有相关的配置文件正确安装。 通过以上步骤,应该能够解决Solaris 10中出现'could not execute auto check for display colors using command /usr/X11R6/bin/xsetroot -name'的错误提示。如果问题仍然存在,可能需要进一步检查日志文件或联系系统管理员来获取更详细的帮助。"
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值