本文主要是介绍Linux:bash: xhost: command not found,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
问题:
[oracle@*** database]$ xhost +
bash: xhost: command not found
解决方法:
安装xhost命令相关包即可。
[oracle@*** database]$ yum whatprovides "*/xhost"
Loaded plugins: fastestmirror, langpacks
Determining fastest mirrors* base: 100.125.0.40* extras: 100.125.0.40* updates: 100.125.0.40
base/7/x86_64/filelists_db | 7.1 MB 00:00:00
extras/7/x86_64/filelists_db | 246 kB 00:00:00
updates/7/x86_64/filelists_db | 4.3 MB 00:00:00
xorg-x11-server-utils-7.7-20.el7.x86_64 : X.Org X11 X server utilities
Repo : base
Matched from:
Filename : /usr/bin/xhost
[oracle@*** database]$ su root
Password:
[root@*** database]# yum -y install xorg-x11-server-utils-7.7-20.el7.x86_64
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile* base: 100.125.0.40* extras: 100.125.0.40* updates: 100.125.0.40
Resolving Dependencies
--> Running transaction check
---> Package xorg-x11-server-utils.x86_64 0:7.7-20.el7 will be installed
--> Processing Dependency: libXxf86vm.so.1()(64bit) for package: xorg-x11-server-utils-7.7-20.el7.x86_64
--> Processing Dependency: libXxf86misc.so.1()(64bit) for package: xorg-x11-server-utils-7.7-20.el7.x86_64
--> Processing Dependency: libXrandr.so.2()(64bit) for package: xorg-x11-server-utils-7.7-20.el7.x86_64
--> Processing Dependency: libXinerama.so.1()(64bit) for package: xorg-x11-server-utils-7.7-20.el7.x86_64
--> Processing Dependency: libXi.so.6()(64bit) for package: xorg-x11-server-utils-7.7-20.el7.x86_64
--> Processing Dependency: libXcursor.so.1()(64bit) for package: xorg-x11-server-utils-7.7-20.el7.x86_64
--> Running transaction check
---> Package libXcursor.x86_64 0:1.1.15-1.el7 will be installed
--> Processing Dependency: libXfixes.so.3()(64bit) for package: libXcursor-1.1.15-1.el7.x86_64
---> Package libXi.x86_64 0:1.7.9-1.el7 will be installed
---> Package libXinerama.x86_64 0:1.1.3-2.1.el7 will be installed
---> Package libXrandr.x86_64 0:1.5.1-2.el7 will be installed
---> Package libXxf86misc.x86_64 0:1.0.3-7.1.el7 will be installed
---> Package libXxf86vm.x86_64 0:1.1.4-1.el7 will be installed
--> Running transaction check
---> Package libXfixes.x86_64 0:5.0.3-1.el7 will be installed
--> Finished Dependency ResolutionDependencies Resolved==============================================================================================================================================================================================================================================================================Package Arch Version Repository Size
==============================================================================================================================================================================================================================================================================
Installing:xorg-x11-server-utils x86_64 7.7-20.el7 base 178 k
Installing for dependencies:libXcursor x86_64 1.1.15-1.el7 base 30 klibXfixes x86_64 5.0.3-1.el7 base 18 klibXi x86_64 1.7.9-1.el7 base 40 klibXinerama x86_64 1.1.3-2.1.el7 base 14 klibXrandr x86_64 1.5.1-2.el7 base 27 klibXxf86misc x86_64 1.0.3-7.1.el7 base 19 klibXxf86vm x86_64 1.1.4-1.el7 base 18 kTransaction Summary
==============================================================================================================================================================================================================================================================================
Install 1 Package (+7 Dependent packages)Total download size: 345 k
Installed size: 678 k
Downloading packages:
(1/8): libXcursor-1.1.15-1.el7.x86_64.rpm | 30 kB 00:00:00
(2/8): libXfixes-5.0.3-1.el7.x86_64.rpm | 18 kB 00:00:00
(3/8): libXi-1.7.9-1.el7.x86_64.rpm | 40 kB 00:00:00
(4/8): libXinerama-1.1.3-2.1.el7.x86_64.rpm | 14 kB 00:00:00
(5/8): libXrandr-1.5.1-2.el7.x86_64.rpm | 27 kB 00:00:00
(6/8): libXxf86misc-1.0.3-7.1.el7.x86_64.rpm | 19 kB 00:00:00
(7/8): libXxf86vm-1.1.4-1.el7.x86_64.rpm | 18 kB 00:00:00
(8/8): xorg-x11-server-utils-7.7-20.el7.x86_64.rpm | 178 kB 00:00:00
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 5.5 MB/s | 345 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.Installing : libXfixes-5.0.3-1.el7.x86_64 1/8 Installing : libXcursor-1.1.15-1.el7.x86_64 2/8 Installing : libXrandr-1.5.1-2.el7.x86_64 3/8 Installing : libXxf86vm-1.1.4-1.el7.x86_64 4/8 Installing : libXi-1.7.9-1.el7.x86_64 5/8 Installing : libXinerama-1.1.3-2.1.el7.x86_64 6/8 Installing : libXxf86misc-1.0.3-7.1.el7.x86_64 7/8 Installing : xorg-x11-server-utils-7.7-20.el7.x86_64 8/8 Verifying : libXxf86misc-1.0.3-7.1.el7.x86_64 1/8 Verifying : libXinerama-1.1.3-2.1.el7.x86_64 2/8 Verifying : libXi-1.7.9-1.el7.x86_64 3/8 Verifying : libXxf86vm-1.1.4-1.el7.x86_64 4/8 Verifying : libXcursor-1.1.15-1.el7.x86_64 5/8 Verifying : libXrandr-1.5.1-2.el7.x86_64 6/8 Verifying : xorg-x11-server-utils-7.7-20.el7.x86_64 7/8 Verifying : libXfixes-5.0.3-1.el7.x86_64 8/8 Installed:xorg-x11-server-utils.x86_64 0:7.7-20.el7 Dependency Installed: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 Complete!
如果有写的不对的地方,请大家多多批评指正,非常感谢!
这篇关于Linux:bash: xhost: command not found的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!