package open-vm-tools 2:9.4.0-1280544-5ubuntu5 failed to install/upgrade: trying to overwrite '/etc/xdg/autostart/vmware-user.desktop', which is also in package open-vm-toolbox 2011.12.20-562307-0ubuntu1

Bug #1301919 reported by Michael Schaller
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
open-vm-tools (Ubuntu)
Fix Released
High
Robie Basak

Bug Description

package open-vm-tools 2:9.4.0-1280544-5ubuntu5 failed to install/upgrade: trying to overwrite '/etc/xdg/autostart/vmware-user.desktop', which is also in package open-vm-toolbox 2011.12.20-562307-0ubuntu1

ProblemType: Package
DistroRelease: Ubuntu 14.04
Package: open-vm-tools 2:9.4.0-1280544-5ubuntu5
ProcVersionSignature: Ubuntu 3.13.0-21.43-generic 3.13.8
Uname: Linux 3.13.0-21-generic x86_64
ApportVersion: 2.14-0ubuntu1
Architecture: amd64
Date: Thu Apr 3 14:14:12 2014
DuplicateSignature: package:open-vm-tools:2:9.4.0-1280544-5ubuntu5:trying to overwrite '/etc/xdg/autostart/vmware-user.desktop', which is also in package open-vm-toolbox 2011.12.20-562307-0ubuntu1
ErrorMessage: trying to overwrite '/etc/xdg/autostart/vmware-user.desktop', which is also in package open-vm-toolbox 2011.12.20-562307-0ubuntu1
InstallationDate: Installed on 2014-04-02 (1 days ago)
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
SourcePackage: open-vm-tools
Title: package open-vm-tools 2:9.4.0-1280544-5ubuntu5 failed to install/upgrade: trying to overwrite '/etc/xdg/autostart/vmware-user.desktop', which is also in package open-vm-toolbox 2011.12.20-562307-0ubuntu1
UpgradeStatus: No upgrade log present (probably fresh install)
modified.conffile..etc.vmware.tools.tools.conf:

mtime.conffile..etc.vmware.tools.tools.conf: 2014-04-02T14:18:56.102735

Revision history for this message
Michael Schaller (misch-9) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Robie Basak (racb) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

It seems clear to me that open-vm-tools in Trusty should Break/Replace open-vm-toolbox (<< 2:0~) [or similar] to resolve this. I've confirmed that the packages in the archive do conflict as your error message described. But I haven't yet managed to reproduce your failure. Doing so would help me verify my understanding and test the solution.

I'll carry on looking at this.

Changed in open-vm-tools (Ubuntu):
importance: Undecided → High
assignee: nobody → Robie Basak (racb)
milestone: none → ubuntu-14.04
Revision history for this message
Robie Basak (racb) wrote :

I couldn't reproduce directly with apt-get in a precise->trusty upgrade, but did reproduce by hitting dpkg and managing ordering directly.

Revision history for this message
Robie Basak (racb) wrote :

rmadison looks like this:

 open-vm-toolbox | 2010.02.23-236320-1+ubuntu1 | lucid/multiverse | amd64, i386
 open-vm-tools | 2010.02.23-236320-1+ubuntu1 | lucid/multiverse | source, amd64, i386
 open-vm-toolbox | 2011.12.20-562307-0ubuntu1 | precise/multiverse | amd64, i386
 open-vm-tools | 2011.12.20-562307-0ubuntu1 | precise/multiverse | source, amd64, i386
 open-vm-toolbox | 2012.05.21-724730-0ubuntu2 | quantal/multiverse | amd64, i386
 open-vm-tools | 2012.05.21-724730-0ubuntu2 | quantal/multiverse | source, amd64, i386
 open-vm-toolbox | 2013.09.16-1328054-0ubuntu1 | saucy/universe | all
 open-vm-tools | 2013.09.16-1328054-0ubuntu1 | saucy/universe | source, amd64, i386
 open-vm-tools | 2:9.4.0-1280544-5ubuntu5 | trusty | source, amd64, i386
 open-vm-toolbox | 2:9.4.0-1280544-5ubuntu5 | trusty/universe | all

Revision history for this message
Michael Schaller (misch-9) wrote :

Hi Robie,

I'm hitting this issue with a Python upgrade script that utilizes python-apt and manual apt/dpkg calls if needed.

As test VM I'm using this setup:
1) Installed Ubuntu 12.04.0 (http://old-releases.ubuntu.com/releases/12.04.0/ubuntu-12.04-desktop-amd64.iso) under VMware Workstation 10
2) Installed all updates
3) Installed open-vm-toolbox and openssh-server

In the upgrade script I'm doing roughly these steps:
1) Removed all sources.list and preferences entries and placed a standard sources.list for Trusty (main, restricted, universe and multiverse for trusty, trusty-security, trusty-updates and trusty-backports)
2) Places preferences file which pins repos with origin Ubuntu to 1001 to (helps a lot with upgrading on machines with many PPAs)
3) apt-get clean && apt-get update
4) Update of the core package management packages (python-apt, python-apt-common, debconf, apt, apt-utils, libapt-inst1.4, libapt-pkg4.12, dpkg)
5) apt-get upgrade
6) apt-get dist-upgrade
...

So I'm not really surprised that you couldn't reproduce this out of the box. ;-)
Please let me know if you need further help with this.

Best,

Michael

Revision history for this message
Robie Basak (racb) wrote :

Thanks Michael! I've uploaded a fix.

Revision history for this message
Michael Schaller (misch-9) wrote :

Thank you, Robie.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package open-vm-tools - 2:9.4.0-1280544-5ubuntu6

---------------
open-vm-tools (2:9.4.0-1280544-5ubuntu6) trusty; urgency=medium

  * Add open-vm-tools breaks/replaces against older open-vm-toolbox, since
    /etc/xdg/autostart/vmware-user.desktop moved across when Ubuntu synced
    against Debian (LP: #1301919).
 -- Robie Basak <email address hidden> Fri, 04 Apr 2014 16:51:14 +0000

Changed in open-vm-tools (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.