VMware自带的vmware-tools在新版本的KaliLinux中已经没效果,官方建议是安装open-vm-tools-desktop来代替其跟物理机交互。
解决办法:
1.首先更新KaliLinux更新源
vi /etc/apt/sources.list
可以删除该文件中的所有内容,也可以直接在文前添加新的APT源。
官网kali源
deb http://http.kali.org/kali kali-rolling main contrib non-free
阿里云kali源
deb http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
deb-src http://mirrors.aliyun.com/kali kali-rolling main non-free contrib
deb http://mirrors.aliyun.com/kali-security kali-rolling/updates main contrib non-free
deb-src http://mirrors.aliyun.com/kali-security kali-rolling/updates main contrib non-free
中科大kali源
deb http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
deb-src http://mirrors.ustc.edu.cn/kali kali-rolling main non-free contrib
deb http://mirrors.ustc.edu.cn/kali-security kali-current/updates main contrib non-free
deb-src http://mirrors.ustc.edu.cn/kali-security kali-current/updates main contrib non-free
对软件进行一次整体更新:
apt-get clean && apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y
命令讲解:
apt-get clean //清除缓存索引
apt-get update //更新索引文件
apt-get upgrade //更新实际的软件包文件
apt-get dist-upgrade //根据依赖关系更新
2、安装open-vm-tools-desktop
如果之前不小心安装了vmware-tools,可以输入
vmware-uninstall-tools.pl
回车即可删除vmware-tools。
在有官方的更新源下,使用下面命令安装open-vm-tools-desktop
apt-get install open-vm-tools-desktop fuse
reboot