琪依坤 | 羽毛在飛

Good Luck To You!

[转] 在Ubuntu虚拟机中安装VMware tools异常中断

来源: http://www.cnblogs.com/klcf0220/articles/4366022.html

前言:我用的是VMware 10.0.5和Ubuntu 14.04.1 LTS,host是Windows 7系统。

 
在VMware中装完Ubuntu后,为了与host之间互传文件,需要安装VMware tools。
在安装过程中出现报错,试了好几次都没有成功,报错信息如下:
 
#############################
 
Creating a new initrd boot image for the kernel.
update-initramfs: Generating /boot/initrd.img-3.13.0-32-generic
initctl: Unknown job: vmware-tools-thinprint
Unable to start services for VMware Tools
 
Execution aborted.
 
#############################
解决办法如下:
在root权限下,运行下面的命令
sudo su -
 
然后按照之前的流程就可以
安装成功后,可看的如下信息:
#########################
The configuration of VMware Tools 9.6.2 build-1688356 for Linux for this 
running kernel completed successfully.
 
You must restart your X session before any mouse or graphics changes take 
effect.
 
You can now run VMware Tools by invoking "/usr/bin/vmware-toolbox-cmd" from the
command line.
 
To enable advanced X features (e.g., guest resolution fit, drag and drop, and 
file and text copy/paste), you will need to do one (or more) of the following:
1. Manually start /usr/bin/vmware-user
2. Log out and log back into your desktop session; and,
3. Restart your X session.
 
Enjoy,
 
--the VMware team
############################
 
 
 
参考: http://devplant.net/2014/08/27/unknown-job-errors-when-installing-vmware-tools-in-ubuntu/

“Unknown job” errors when installing vmware tools in Ubuntu

Recently I’ve tried to install new vmware tools in Ubuntu 14.04.1 after upgrading VMware Workstation to version 10, and the build process crashed with errors like Unknown job: vmware-tools or Unknown job: vmware-tools-thinprint

After some debugging, I’ve found out that the problem was due to the fact that I was running the build process using sudo -s -E command, which gave me administrator rights, but kept some environment variables that messed initscripts-related commands (service, status and other from upstart package), on which build process relies. The solution is to build vmware-tools under clean environment for root user. To do that, gain superuser rights with sudo su - command, and then build vmware-tools as usual.

The tip above applies to general “unknown job” problem with starting/restarting services, not only to the vmware-tools build process.

更多精彩请关注公众号:

发表评论:

Powered By Z-BlogPHP 1.7.2

沪ICP备12032294号-1