当前位置:   article > 正文

Linux:bash: xhost: command not found

bash: xhost: command not found

问题:

  1. [oracle@*** database]$ xhost +
  2. bash: xhost: command not found

解决方法:

安装xhost命令相关包即可。

  1. [oracle@*** database]$ yum whatprovides "*/xhost"
  2. Loaded plugins: fastestmirror, langpacks
  3. Determining fastest mirrors
  4. * base: 100.125.0.40
  5. * extras: 100.125.0.40
  6. * updates: 100.125.0.40
  7. base/7/x86_64/filelists_db | 7.1 MB 00:00:00
  8. extras/7/x86_64/filelists_db | 246 kB 00:00:00
  9. updates/7/x86_64/filelists_db | 4.3 MB 00:00:00
  10. xorg-x11-server-utils-7.7-20.el7.x86_64 : X.Org X11 X server utilities
  11. Repo : base
  12. Matched from:
  13. Filename : /usr/bin/xhost
  14. [oracle@*** database]$ su root
  15. Password:
  16. [root@*** database]# yum -y install xorg-x11-server-utils-7.7-20.el7.x86_64
  17. Loaded plugins: fastestmirror, langpacks
  18. Loading mirror speeds from cached hostfile
  19. * base: 100.125.0.40
  20. * extras: 100.125.0.40
  21. * updates: 100.125.0.40
  22. Resolving Dependencies
  23. --> Running transaction check
  24. ---> Package xorg-x11-server-utils.x86_64 0:7.7-20.el7 will be installed
  25. --> Processing Dependency: libXxf86vm.so.1()(64bit) for package: xorg-x11-server-utils-7.7-20.el7.x86_64
  26. --> Processing Dependency: libXxf86misc.so.1()(64bit) for package: xorg-x11-server-utils-7.7-20.el7.x86_64
  27. --> Processing Dependency: libXrandr.so.2()(64bit) for package: xorg-x11-server-utils-7.7-20.el7.x86_64
  28. --> Processing Dependency: libXinerama.so.1()(64bit) for package: xorg-x11-server-utils-7.7-20.el7.x86_64
  29. --> Processing Dependency: libXi.so.6()(64bit) for package: xorg-x11-server-utils-7.7-20.el7.x86_64
  30. --> Processing Dependency: libXcursor.so.1()(64bit) for package: xorg-x11-server-utils-7.7-20.el7.x86_64
  31. --> Running transaction check
  32. ---> Package libXcursor.x86_64 0:1.1.15-1.el7 will be installed
  33. --> Processing Dependency: libXfixes.so.3()(64bit) for package: libXcursor-1.1.15-1.el7.x86_64
  34. ---> Package libXi.x86_64 0:1.7.9-1.el7 will be installed
  35. ---> Package libXinerama.x86_64 0:1.1.3-2.1.el7 will be installed
  36. ---> Package libXrandr.x86_64 0:1.5.1-2.el7 will be installed
  37. ---> Package libXxf86misc.x86_64 0:1.0.3-7.1.el7 will be installed
  38. ---> Package libXxf86vm.x86_64 0:1.1.4-1.el7 will be installed
  39. --> Running transaction check
  40. ---> Package libXfixes.x86_64 0:5.0.3-1.el7 will be installed
  41. --> Finished Dependency Resolution
  42. Dependencies Resolved
  43. ==============================================================================================================================================================================================================================================================================
  44. Package Arch Version Repository Size
  45. ==============================================================================================================================================================================================================================================================================
  46. Installing:
  47. xorg-x11-server-utils x86_64 7.7-20.el7 base 178 k
  48. Installing for dependencies:
  49. libXcursor x86_64 1.1.15-1.el7 base 30 k
  50. libXfixes x86_64 5.0.3-1.el7 base 18 k
  51. libXi x86_64 1.7.9-1.el7 base 40 k
  52. libXinerama x86_64 1.1.3-2.1.el7 base 14 k
  53. libXrandr x86_64 1.5.1-2.el7 base 27 k
  54. libXxf86misc x86_64 1.0.3-7.1.el7 base 19 k
  55. libXxf86vm x86_64 1.1.4-1.el7 base 18 k
  56. Transaction Summary
  57. ==============================================================================================================================================================================================================================================================================
  58. Install 1 Package (+7 Dependent packages)
  59. Total download size: 345 k
  60. Installed size: 678 k
  61. Downloading packages:
  62. (1/8): libXcursor-1.1.15-1.el7.x86_64.rpm | 30 kB 00:00:00
  63. (2/8): libXfixes-5.0.3-1.el7.x86_64.rpm | 18 kB 00:00:00
  64. (3/8): libXi-1.7.9-1.el7.x86_64.rpm | 40 kB 00:00:00
  65. (4/8): libXinerama-1.1.3-2.1.el7.x86_64.rpm | 14 kB 00:00:00
  66. (5/8): libXrandr-1.5.1-2.el7.x86_64.rpm | 27 kB 00:00:00
  67. (6/8): libXxf86misc-1.0.3-7.1.el7.x86_64.rpm | 19 kB 00:00:00
  68. (7/8): libXxf86vm-1.1.4-1.el7.x86_64.rpm | 18 kB 00:00:00
  69. (8/8): xorg-x11-server-utils-7.7-20.el7.x86_64.rpm | 178 kB 00:00:00
  70. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  71. Total 5.5 MB/s | 345 kB 00:00:00
  72. Running transaction check
  73. Running transaction test
  74. Transaction test succeeded
  75. Running transaction
  76. Warning: RPMDB altered outside of yum.
  77. Installing : libXfixes-5.0.3-1.el7.x86_64 1/8
  78. Installing : libXcursor-1.1.15-1.el7.x86_64 2/8
  79. Installing : libXrandr-1.5.1-2.el7.x86_64 3/8
  80. Installing : libXxf86vm-1.1.4-1.el7.x86_64 4/8
  81. Installing : libXi-1.7.9-1.el7.x86_64 5/8
  82. Installing : libXinerama-1.1.3-2.1.el7.x86_64 6/8
  83. Installing : libXxf86misc-1.0.3-7.1.el7.x86_64 7/8
  84. Installing : xorg-x11-server-utils-7.7-20.el7.x86_64 8/8
  85. Verifying : libXxf86misc-1.0.3-7.1.el7.x86_64 1/8
  86. Verifying : libXinerama-1.1.3-2.1.el7.x86_64 2/8
  87. Verifying : libXi-1.7.9-1.el7.x86_64 3/8
  88. Verifying : libXxf86vm-1.1.4-1.el7.x86_64 4/8
  89. Verifying : libXcursor-1.1.15-1.el7.x86_64 5/8
  90. Verifying : libXrandr-1.5.1-2.el7.x86_64 6/8
  91. Verifying : xorg-x11-server-utils-7.7-20.el7.x86_64 7/8
  92. Verifying : libXfixes-5.0.3-1.el7.x86_64 8/8
  93. Installed:
  94. xorg-x11-server-utils.x86_64 0:7.7-20.el7
  95. Dependency Installed:
  96. libXcursor.x86_64 0:1.1.15-1.el7 libXfixes.x86_64 0:5.0.3-1.el7 libXi.x86_64 0:1.7.9-1.el7 libXinerama.x86_64 0:1.1.3-2.1.el7 libXrandr.x86_64 0:1.5.1-2.el7 libXxf86misc.x86_64 0:1.0.3-7.1.el7 libXxf86vm.x86_64 0:1.1.4-1.el7
  97. Complete!

 

 

如果有写的不对的地方,请大家多多批评指正,非常感谢!

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/2023面试高手/article/detail/661163
推荐阅读
相关标签
  

闽ICP备14008679号