1.下载
到官网下载VMware-Workstation-Full-14.1.0-7370693.x86_64.bundle
2.安装
fc@ubuntu:~/download$ chmod +x VMware-Workstation-Full-14.1.0-7370693.x86_64.bundle
fc@ubuntu:~/download$ ./VMware-Workstation-Full-14.1.0-7370693.x86_64.bundle
出现问题:
Extracting VMware Installer...done.
Gtk-Message: Failed to load module "atk-bridge": /usr/lib/x86_64-linux-gnu/libatspi.so.0: undefined symbol: g_type_class_adjust_private_offset
Gtk-Message: Failed to load module "unity-gtk-module": libunity-gtk-module.so: 无法打开共享对象文件: 没有那个文件或目录
(vmware-installer.py:2501): Gtk-WARNING **: 无法在模块路径中找到主题引擎:“murrine”,
Gtk-Message: Failed to load module "canberra-gtk-module": libcanberra-gtk-module.so: 无法打开共享对象文件: 没有那个文件或目录
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 72: non-double matrix element
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 72: non-double matrix element
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 80: saw unknown, expected number
进入/etc/ld.so.conf.d分别新建如下两个文件gtk-2.0.conf、gtk-3.0.conf
$ cd /etc/ld.so.conf.d
$ sudo vim gtk-2.0.conf
$ sudo vim gtk-3.0.conf
两个文件gtk-2.0.conf、gtk-3.0.conf中分别加入如下内容
/usr/lib/x86_64-linux-gnu/gtk-2.0/modules
/usr/lib/x86_64-linux-gnu/gtk-3.0/modules
重新加载一下:
$ sudo ldconfig
再安装
$ sudo ./VMware-Workstation-Full-14.1.0-7370693.x86_64.bundle
3.卸载VMware
$ cd /usr/bin
$ sudo vmware-installer -u vmware-workstation
4.出现的问题
VMware Workstation needs to store user preferences and other information in the directory "~/.vmware".......
图片.png
那是因为.vmware文件的所有者是root
drwxr-xr-x 2 root root 4096 1月 3 13:42 .vmware/
输入以下命令即可
sudo chown -R username ~/.vmware
其中,username是当前的用户名
网友评论