Broken multi-arch support

Bug #879167 reported by Benjamin Drung
28
This bug affects 6 people
Affects Status Importance Assigned to Milestone
openjdk-6 (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

openjdk-6-jre:i386 (version 6b24~pre3-0ubuntu1) fails to install on a multi-arched amd64 precise system due to a conffile conflict. openjdk-6-jre-headless contains /etc/java-6-openjdk/security/java.policy, but is markd as Multi-Arch: same. Full installation error:

(Reading database ... 262232 files and directories currently installed.)
Unpacking openjdk-6-jre-headless:i386 (from .../openjdk-6-jre-headless_6b24~pre3-0ubuntu1_i386.deb) ...
dpkg: error processing /home/skipper/archive/archive.ubuntu.com/ubuntu/pool/main/o/openjdk-6/openjdk-6-jre-headless_6b24~pre3-0ubuntu1_i386.deb (--unpack):
 conffile './etc/java-6-openjdk/security/java.policy' is not in sync with other instances of the same package
No apport report written because MaxReports is reached already
                                                              dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
 /home/skipper/archive/archive.ubuntu.com/ubuntu/pool/main/o/openjdk-6/openjdk-6-jre-headless_6b24~pre3-0ubuntu1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
dpkg: dependency problems prevent configuration of icedtea-6-jre-jamvm:i386:
 icedtea-6-jre-jamvm:i386 depends on openjdk-6-jre-headless (= 6b24~pre3-0ubuntu1); however:
  Package openjdk-6-jre-headless:i386 is not installed.
dpkg: error processing icedtea-6-jre-jamvm:i386 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of icedtea-6-jre-cacao:i386:
 icedtea-6-jre-cacao:i386 depends on openjdk-6-jre-headless (= 6b24~pre3-0ubuntu1); however:
  Package openjdk-6-jre-headless:i386 is not installed.
dpkg: error processing icedtea-6-jre-cacao:i386 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 icedtea-6-jre-jamvm:i386
 icedtea-6-jre-cacao:i386

Tags: multiarch

Related branches

Benjamin Drung (bdrung)
summary: - Missing or broken multiarch support
+ Broken multi-arch support
description: updated
Benjamin Drung (bdrung)
description: updated
Changed in openjdk-6 (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in openjdk-6 (Ubuntu):
status: New → Confirmed
tags: added: multiarch
Changed in openjdk-6 (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Benjamin Drung (bdrung) wrote :

multi-arch support still doesn't work in openjdk-6 6b24-1.11-0ubuntu1. Attached the diff between the i386 and amd64 version of /etc/java-6-openjdk/security/java.policy

Revision history for this message
Benjamin Drung (bdrung) wrote :

multi-arch support still doesn't work in openjdk-6 6b24-1.11-2ubuntu1. The differences in /etc/java-6-openjdk/security/java.policy are fixed, but there are other files that differ. I checked the whole package and found following differences:

In openjdk-6-jre /usr/share/application-registry/openjdk-6-archive.applications differs (diff attached). In openjdk-6-jre-headless the files /usr/share/doc/openjdk-6-jre-headless/JAVA_HOME and /usr/share/doc/openjdk-6-jre-headless/README.alternatives differ (diff attached).

Revision history for this message
Benjamin Drung (bdrung) wrote :
Revision history for this message
Benjamin Drung (bdrung) wrote :

It's finally fixed in openjdk-6 6b24-1.11-4ubuntu1.

Changed in openjdk-6 (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Drew Snellgrove (forkinme-deactivatedaccount) wrote :

This bug seems to have reappeared in 6b24-1.11.1-4ubuntu1:

$ sudo apt-get --no-install-recommends install openjdk-6-jre:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  icedtea-plugin:i386
Recommended packages:
  ttf-dejavu-extra:i386 icedtea-netx:i386
The following NEW packages will be installed:
  openjdk-6-jre:i386
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
85 not fully installed or removed.
Need to get 0 B/232 kB of archives.
After this operation, 706 kB of additional disk space will be used.
(Reading database ... 161613 files and directories currently installed.)
Unpacking openjdk-6-jre:i386 (from .../openjdk-6-jre_6b24-1.11.1-4ubuntu1_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/openjdk-6-jre_6b24-1.11.1-4ubuntu1_i386.deb (--unpack):
 './usr/share/applications/openjdk-6-policytool.desktop' is different from the same file on the system
Processing triggers for desktop-file-utils ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for gnome-menus ...
Errors were encountered while processing:
 /var/cache/apt/archives/openjdk-6-jre_6b24-1.11.1-4ubuntu1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Benjamin Drung (bdrung) wrote :

Drew, I filed a new bug for it: LP #980351

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.