[Bug 1359078] Re: package openjdk-7-jdk 7u55-2.4.7-1ubuntu1 failed to install/upgrade: trying to overwrite '/usr/lib/jvm/java-7-openjdk-i386/src.zip', which is also in package openjdk-7-source 7u55-2.4.7-1ubuntu1

Steve Langasek steve.langasek at canonical.com
Wed Oct 1 06:27:52 UTC 2014


Bill,

The issue here is that the version of openjdk-7 in trusty ships
/usr/lib/jvm/java-7-openjdk-i386/src.zip in the openjdk-7-source binary
package, and the version of openjdk-7 in both trusty-updates and utopic
ships that file in the openjdk-7-jdk binary package:

$ zgrep usr/lib/jvm/java-7-openjdk-i386/src.zip ~/ubuntu/dists/trusty/Contents-i386.gz 
usr/lib/jvm/java-7-openjdk-i386/src.zip                     java/openjdk-7-source
$ zgrep usr/lib/jvm/java-7-openjdk-i386/src.zip ~/ubuntu/dists/trusty-updates/Contents-i386.gz 
usr/lib/jvm/java-7-openjdk-i386/src.zip                     java/openjdk-7-jdk
$ zgrep usr/lib/jvm/java-7-openjdk-i386/src.zip ~/ubuntu/dists/utopic/Contents-i386.gz 
usr/lib/jvm/java-7-openjdk-i386/src.zip                     java/openjdk-7-jdk
$

When files move between packages, this needs to be declared with a
Replaces: field (see ubuntu policy).

Neither the utopic nor the trusty-proposed versions of openjdk-7-jdk
declare a Replaces against the versions of openjdk-7-source that
previously ship this file:

$ dpkg -I ~/ubuntu/pool/main/o/openjdk-7/openjdk-7-jdk_7u65-2.5.2-3~14.04_i386.deb |grep Replaces
$ dpkg -I ~/ubuntu/pool/main/o/openjdk-7/openjdk-7-jdk_7u65-2.5.2-4_i386.deb |grep Replaces
$

If this is a deliberate move of the file between packages, then you need
to declare this in debian/control.

** Changed in: openjdk-7 (Ubuntu)
       Status: Fix Released => Triaged

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

Title:
  package openjdk-7-jdk 7u55-2.4.7-1ubuntu1 failed to install/upgrade:
  trying to overwrite '/usr/lib/jvm/java-7-openjdk-i386/src.zip', which
  is also in package openjdk-7-source 7u55-2.4.7-1ubuntu1

Status in “openjdk-7” package in Ubuntu:
  Triaged

Bug description:
  No details

  ProblemType: Package
  DistroRelease: Ubuntu 14.04
  Package: openjdk-7-jdk 7u55-2.4.7-1ubuntu1
  ProcVersionSignature: Ubuntu 3.13.0-33.58-generic 3.13.11.4
  Uname: Linux 3.13.0-33-generic i686
  ApportVersion: 2.14.1-0ubuntu3.3
  Architecture: i386
  Date: Wed Aug 20 10:03:01 2014
  DuplicateSignature: package:openjdk-7-jdk:7u55-2.4.7-1ubuntu1:trying to overwrite '/usr/lib/jvm/java-7-openjdk-i386/src.zip', which is also in package openjdk-7-source 7u55-2.4.7-1ubuntu1
  ErrorMessage: trying to overwrite '/usr/lib/jvm/java-7-openjdk-i386/src.zip', which is also in package openjdk-7-source 7u55-2.4.7-1ubuntu1
  InstallationDate: Installed on 2014-03-28 (144 days ago)
  InstallationMedia: Ubuntu 12.04.1 LTS "Precise Pangolin" - Release i386 (20120817.3)
  SourcePackage: openjdk-7
  Title: package openjdk-7-jdk 7u55-2.4.7-1ubuntu1 failed to install/upgrade: trying to overwrite '/usr/lib/jvm/java-7-openjdk-i386/src.zip', which is also in package openjdk-7-source 7u55-2.4.7-1ubuntu1
  UpgradeStatus: Upgraded to trusty on 2014-08-13 (6 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openjdk-7/+bug/1359078/+subscriptions



More information about the foundations-bugs mailing list