Package: open-vm-tools-desktop
Version: 2:10.1.15-1

I thought there was already a bug about this in Debian. There is at Canonical: 
https://bugs.launchpad.net/ubuntu/+source/open-vm-tools/+bug/1639222 . There is 
an issue on github: https://github.com/vmware/open-vm-tools/issues/207 .

TL;DR: the unit run-vmblock\\x2dfuse.mount is neither started nor enabled 
started on install, and removing the package open-vm-tools-desktop fails 
because of errors.


This is in Debian/sid, updated just today (01/02/2018):


vmware@debian:~$ sudo apt-get install open-vm-tools-desktop
...
Unpacking open-vm-tools (2:10.1.15-1) ...
Selecting previously unselected package open-vm-tools-desktop.
Preparing to unpack .../6-open-vm-tools-desktop_2%3a10.1.15-1_amd64.deb ...
Unpacking open-vm-tools-desktop (2:10.1.15-1) ...
...
Setting up open-vm-tools (2:10.1.15-1) ...
Created symlink 
/etc/systemd/system/multi-user.target.wants/open-vm-tools.service → 
/lib/systemd/system/open-vm-tools.service.
Created symlink 
/etc/systemd/system/open-vm-tools.service.requires/vgauth.service → 
/lib/systemd/system/vgauth.service.
Setting up open-vm-tools-desktop (2:10.1.15-1) ...
Failed to preset unit: Unit file run-vmblock\\x2dfuse.mount does not exist.
/usr/bin/deb-systemd-helper: error: systemctl preset failed on 
run-vmblock\\x2dfuse.mount: No such file or directory
Failed to get unit file state for run-vmblock\\x2dfuse.mount: No such file or 
directory
run-vmblock\\x2dfuse.mount is a disabled or a static unit, not starting it.
Processing triggers for libc-bin (2.25-6) ...
Processing triggers for systemd (236-2) ...


vmware@debian:~$ sudo systemctl status run-vmblock\\x2dfuse.mount
● run-vmblock\x2dfuse.mount - VMware vmblock fuse mount
   Loaded: loaded (/lib/systemd/system/run-vmblock\x2dfuse.mount; disabled; 
vendor preset: enabled)
   Active: inactive (dead)
    Where: /run/vmblock-fuse
     What: vmware-vmblock-fuse
     Docs: 
https://github.com/vmware/open-vm-tools/blob/master/open-vm-tools/vmblock-fuse/design.txt
vmware@debian:~$ sudo systemctl start run-vmblock\\x2dfuse.mount
vmware@debian:~$ sudo systemctl status run-vmblock\\x2dfuse.mount
● run-vmblock\x2dfuse.mount - VMware vmblock fuse mount
   Loaded: loaded (/lib/systemd/system/run-vmblock\x2dfuse.mount; disabled; 
vendor preset: enabled)
   Active: active (mounted) since Tue 2018-01-02 14:35:43 PST; 1s ago
    Where: /run/vmblock-fuse
     What: vmware-vmblock
     Docs: 
https://github.com/vmware/open-vm-tools/blob/master/open-vm-tools/vmblock-fuse/design.txt
  Process: 4371 ExecMount=/bin/mount vmware-vmblock-fuse /run/vmblock-fuse -t 
fuse -o subtype=vmware-vmblock,default_permissions,allow_other (code=exited, 
status=0/SUCCESS)
    Tasks: 3 (limit: 19660)
   CGroup: /system.slice/run-vmblock\x2dfuse.mount
           └─4375 vmware-vmblock-fuse /run/vmblock-fuse -o 
rw,subtype=vmware-vmblock,default_permissions,allow_other,dev,suid

Jan 02 14:35:43 debian systemd[1]: Mounting VMware vmblock fuse mount...
Jan 02 14:35:43 debian systemd[1]: Mounted VMware vmblock fuse mount.

On removing the package, I see the error. open-vm-tools is removed, but 
open-vm-tools-desktop is not:

vmware@debian:~$ sudo apt-get remove open-vm-tools
[sudo] password for vmware:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  ethtool libdumbnet1 libmspack0 libxmlsec1 libxmlsec1-openssl zerofree
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  open-vm-tools open-vm-tools-desktop
0 upgraded, 0 newly installed, 2 to remove and 266 not upgraded.
After this operation, 2,651 kB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 147604 files and directories currently installed.)
Removing open-vm-tools-desktop (2:10.1.15-1) ...
Failed to stop run-vmblock\\x2dfuse.mount: Unit run-vmblock\\x2dfuse.mount not 
loaded.
dpkg: error processing package open-vm-tools-desktop (--remove):
 installed open-vm-tools-desktop package pre-removal script subprocess returned 
error exit status 5
Failed to preset unit: Unit file run-vmblock\\x2dfuse.mount does not exist.
/usr/bin/deb-systemd-helper: error: systemctl preset failed on 
run-vmblock\\x2dfuse.mount: No such file or directory
Failed to get unit file state for run-vmblock\\x2dfuse.mount: No such file or 
directory
run-vmblock\\x2dfuse.mount is a disabled or a static unit, not starting it.
dpkg: open-vm-tools: dependency problems, but removing anyway as you requested:
 open-vm-tools-desktop depends on open-vm-tools (= 2:10.1.15-1).

Removing open-vm-tools (2:10.1.15-1) ...
Errors were encountered while processing:
 open-vm-tools-desktop
E: Sub-process /usr/bin/dpkg returned an error code (1)
vmware@debian:~$ dpkg -l open-vm-tools*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                                          Version                     
Architecture                Description
+++-=============================================-===========================-===========================-===============================================================================================
rc  open-vm-tools                                 2:10.1.15-1                 
amd64                       Open VMware Tools for virtual machines hosted on 
VMware (CLI)
ii  open-vm-tools-desktop                         2:10.1.15-1                 
amd64                       Open VMware Tools for virtual machines hosted on 
VMware (GUI)
vmware@debian:~$


Editing the file /var/lib/dpkg/info/open-vm-tools-desktop.prerm to remove the 
quotes makes the removal work:

#!/bin/sh
set -e

# workaround to avoid upgrade failures.
pkill -USR1 -f '(vmtoolsd.*vmusr|vmware-user)' || true

if [ -d /run/systemd/system ]; then
    deb-systemd-invoke stop run-vmblock\\x2dfuse.mount >/dev/null || true
fi

# Automatically added by dh_systemd_start/10.9.2
if [ -d /run/systemd/system ] && [ "$1" = remove ]; then
#       deb-systemd-invoke stop 'run-vmblock\\x2dfuse.mount' >/dev/null         
 <----- original line
        deb-systemd-invoke stop run-vmblock\\x2dfuse.mount >/dev/null
fi
# End automatically added section


The code snippet is added by dh_systemd_start (see comment), which is part of 
another package (debhelper I think).

Reply via email to