[3rd-Party Apps] 安装vmware报错
Tofloor
poster avatar
caibh
deepin
2021-02-23 18:56
Author

以前在Deepin V15时候安装过vmware player没问题。现在Deepin V20安装vmware报错如下:

### 安装

caibh@book:/data/vmware$ sudo ./VMware-Player-15.5.7-17171714.x86_64.bundle 
Extracting VMware Installer...done.
[######################################################################] 100%
The system is up to date.  Nothing has been modified.

### 尝试启动vmware

caibh@book:/data/vmware$ vmplayer
(vmware-modconfig:513): GLib-GObject-CRITICAL **: 10:46:39.896: g_value_set_boxed: assertion 'G_VALUE_HOLDS_BOXED (value)' failed
/usr/bin/vmplayer:行 105:   513 段错误               "$BINDIR"/vmware-modconfig --appname="VMware Player" --icon="vmware-player"

/usr/bin/vmplayer的脚本内容如下:

#!/usr/bin/env bash
#
# Copyright 2005-2008, 2020 VMware, Inc.  All rights reserved.
#
# Wrapper for the real 'vmplayer' binary. Ensure that the
# binary will find all the shared libraries it needs. If a shared
# library is not available from any of the standard system-wide
# locations, we provide it from the location where the VMware software
# is installed.
#

set -e

ETCDIR=/etc/vmware
. $ETCDIR/bootstrap

export PRODUCT_NAME="VMware Player"
libdir="$LIBDIR"/vmware

bindir=$libdir/bin
sharedir=$libdir/share

ZENITY=$bindir/vmware-zenity
                                                                                                                                                                                                                    
toolsRebuildError="                                                                                                                                                                                                 
The VMware Tools kernel modules could not be automatically rebuilt.                                                                                                                                                 
                                                                                                                                                                                                                    
Please manually run:                                                                                                                                                                                                
  vmware-config-tools.pl --modules-only                                                                                                                                                                             
To rebuild them.                                                                                                                                                                                                    
"                                                                                                                                                                                                                   

# The new Ubuntu menu system "steals" our menu out of the UI, which causes problems
# with fullscreening.  These variables disable that in various unity versions.
export APPMENU_DISPLAY_BOTH=1
export UBUNTU_MENUPROXY=0

# bug-buddy breaks logging
export GNOME_DISABLE_CRASH_DIALOG=1

vmci_alias='pci:v000015ADd00000740sv*sd*bc*sc*i*'
vsock_alias='vmware_vsock'
vmmon='vmmon'

vmware_module_exists()
{
   modalias=$1
   /sbin/modprobe -n $modalias > /dev/null 2>&1
}

# If there are command line arguments like -version, launch the binary without
# checking configuration state or running the module updater.
if echo "$1" | grep -q "^-"; then
   exec "$libdir"/bin/"vmplayer" "$@"
fi

# Only run the GUI if DISPLAY is set.
if [ -z "$DISPLAY" ]; then
   echo "DISPLAY is not set, unable to open the $PRODUCT_NAME user interface."
   exit 1
fi

# If we are running in a VM, vmci, vsock, and vmblock will not be under our
# control.  If the files don't exist and we are not controlling them, call out
# to Tools in order to build them.
# Also note that vmblock may be handled as a fuse module and hence may not
# be installed as a kernel module.  It might also not be there at all so we don't
# check for it.
if ! cat $libdir/modules/modules.xml|grep -q 'name="vmci"'; then
   set +e # Unset failure mode, we want to catch and deal with errors on our own
   failure=0
   if ! vmware_module_exists $vmci_alias || ! vmware_module_exists $vsock_alias; then
      # The locations database is appended to with each reconfiguration, so
      # be sure only to grab only the final appearing value.
      tools_BINDIR=`grep "answer BINDIR" /etc/vmware-tools/locations | tail -1 |cut -d ' ' -f 3`
      if [ -d "$tools_BINDIR" ]; then
         echo "Rebuilding VMware Tools modules..."
         outfile=`mktemp /tmp/vmware-modulesXXXXXX`
         ${tools_BINDIR}/vmware-config-tools.pl --modules-only --default >${outfile} 2>&1
         retval=$?
         if [ $retval != "0" ]; then
            cat ${outfile}
            rm -f ${outfile}
            failure=1
         fi
         rm -f ${outfile}
      else
         failure=1
      fi
   fi

   # If we hit a failure, report to the user that we failed.
   if [ "$failure" = "1" ]; then
      echo "******************************************************************"
      echo "$toolsRebuildError"
      $ZENITY --error --text="$toolsRebuildError"
      exit 1
   fi
   set -e # Reset failure mode
fi

if "$BINDIR"/vmware-modconfig --appname="VMware Player" --icon="vmware-player" &&
   vmware_module_exists $vmmon; then
   exec "$libdir"/bin/"vmplayer" "$@"
fi #### !!!!!! 第105行 !!!!!!

exit 1
Reply Favorite View the author
All Replies
littlebat
deepin
2021-02-23 19:02
#1

安装4.*系列内核试试

Reply View the author
Ziggy
deepin
2021-02-23 20:32
#2

装星火的版本

Reply View the author
lcw0268
deepin
2021-02-23 20:37
#3

楼主第一张内容显示缺依赖了。

不知道楼主的安装包是现在的还是原来15时的,去安装包下载网页看看,它需要什么依赖。

Reply View the author
忘记、过去
deepin
2021-02-24 02:32
#4

都已经 16.1 版本了......

Reply View the author
caibh
deepin
2021-02-24 17:53
#5
忘记、过去

都已经 16.1 版本了......

vmware player 16 试过,也是安装失败的。

 

Reply View the author
忘记、过去
deepin
2021-02-25 07:47
#6
caibh

vmware player 16 试过,也是安装失败的。

 

16.1 是可以安装的,16.0 不行。我这里运行正常。

Reply View the author