"so you might have hit a time where
   this was partially updated?"

Maybe this is the case, because all the aptitude commands failed with the error 
message:
"Failed to stop run-vmblock-fuse.mount: Unit run-vmblock-fuse.mount not loaded."

I traced the problem to the deb-systemd-invoke command. After I changed
the pre-removal script of open-vm-tools, I could successfully purge
open-vm-tools and open-vm-tools-desktop, then successfully do "apt-get
upgrade" and again install open-vm-tools and open-vm-tools-desktop. Now
it's working all fine. I'm not sure if my case is special, but maybe you
could consider to fix the pre-removal script likewise? I would leave
that to you. :)

<--- old version that failed --->
cat /var/lib/dpkg/info/open-vm-tools-desktop.prerm 
#!/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
if [ -d /run/systemd/system ]; then
        deb-systemd-invoke stop run-vmblock-fuse.mount >/dev/null
fi
# End automatically added section


<--- new version that succeeded to purge --->
$ cat /var/lib/dpkg/info/open-vm-tools-desktop.prerm 
#!/bin/sh
set -e

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

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

# Automatically added by dh_systemd_start
if [ -d /run/systemd/system/run-vmblock-fuse.mount ]; then
        deb-systemd-invoke stop run-vmblock-fuse.mount >/dev/null
fi
# End automatically added section

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1751016

Title:
  upgrade from ppa failed while testing 3152

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/open-vm-tools/+bug/1751016/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to