CentOS 7.6安裝vmware tools遇到The path "" is not a valid...
CentOS 7.6安裝vmware tools執(zhí)行以下語句時
[root@dbserver vmware-tools-distrib]#./vmware-install.pl
安裝過程中遇到提示The path "" is not a valid path to the 3.10.0-957.el7.x86_64 kernelheaders.
解決方案:
a、ctrl+z停止安裝
b、安裝kernel-devel
[root@dbserver vmware-tools-distrib]#?yum -y installkernel-devel-$(uname -r)
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package kernel-devel.x86_640:3.10.0-957.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==========================================================================================================
Package Arch Version Repository Size
==========================================================================================================
Installing:
kernel-devel x86_64 3.10.0-957.el7 centos7.6 17 M
Transaction Summary
==========================================================================================================
Install 1 Package
Total download size: 17 M
Installed size: 37 M
Downloading packages:
Error downloading packages:
kernel-devel-3.10.0-957.el7.x86_64: [Errno 256] No more mirrors to try.
[root@dbserver vmware-tools-distrib]# yum-y install kernel-devel-$(uname -r)
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package kernel-devel.x86_640:3.10.0-957.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================================
Package Arch Version Repository Size
====================================================================================================================
Installing:
kernel-devel x86_64 3.10.0-957.el7 centos7.6 17 M
Transaction Summary
====================================================================================================================
Install 1 Package
Total download size: 17 M
Installed size: 37 M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : kernel-devel-3.10.0-957.el7.x86_64 1/1
Verifying :kernel-devel-3.10.0-957.el7.x86_64 1/1
Installed:
kernel-devel.x86_64 0:3.10.0-957.el7
Complete!
c、重新運行./vmware-install.pl
此后一路回車就能安裝成功.
