Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Using multiarch on wheezy

20 views
Skip to first unread message

Florian Weimer

unread,
Nov 4, 2012, 5:40:02 AM11/4/12
to
I'm trying to install the i386 version of openjdk-7-jre on an amd64
system. So I did:

# dpkg --add-architecture i386
# apt-get update

This appears to have been successful. But I still cannot install
packages:

# apt-get install openjdk-7-jre:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
openjdk-7-jre:i386 : Depends: libgif4:i386 (>= 4.1.4) but it is not going to be installed
Recommends: libgnome2-0:i386 but it is not going to be installed
Recommends: libgnomevfs2-0:i386 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
# apt-get install libgif4:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
emacs23 : Depends: libgif4 (>= 4.1.4) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

This does not make much sense. A proper version of libgif4 is
available:

# apt-cache show libgif4:i386
Package: libgif4
Source: giflib
Version: 4.1.6-9.1
Installed-Size: 87
Maintainer: Thibaut GRIDEL <tgr...@free.fr>
Architecture: i386
Provides: libungif4g
Depends: libc6 (>= 2.1.3)
Description-en: library for GIF images (library)
GIFLIB is a package of portable tools and library routines for working with GIF
images.
.
This package contains the library.
Homepage: http://giflib.sourceforge.net/
Description-md5: 6e1b50f7983687352e4b68758c6a50d6
Tag: implemented-in::c, role::shared-lib
Section: libs
Priority: optional
Filename: pool/main/g/giflib/libgif4_4.1.6-9.1_i386.deb
Size: 42198
MD5sum: 7881f3c5f903f745d108325e8a743178
SHA1: 6518f571ed6dbb232e42c78b9e25aa79d1c2a2a6
SHA256: c21c28bd6fd14c68dee1023eaf0132645b45800f7700f1e247ee538a8cab7301

Package: libgif4
Source: giflib
Version: 4.1.6-9.1
Installed-Size: 62
Maintainer: Thibaut GRIDEL <tgr...@free.fr>
Architecture: amd64
Provides: libungif4g
Depends: libc6 (>= 2.2.5)
Description-en: library for GIF images (library)
GIFLIB is a package of portable tools and library routines for working with GIF
images.
.
This package contains the library.
Homepage: http://giflib.sourceforge.net/
Description-md5: 6e1b50f7983687352e4b68758c6a50d6
Tag: implemented-in::c, role::shared-lib
Section: libs
Priority: optional
Filename: pool/main/g/giflib/libgif4_4.1.6-9.1_amd64.deb
Size: 42098
MD5sum: 0003397b0895147c8f83c6fb65dfdf28
SHA1: d2bfc2deb9bf96ab57a2eb5466d3acfb32a6671f
SHA256: b309d7723d528becfc9c448822ddefdf9746c4558890134010a5b0791a668915

It is also installed for amd64:

# dpkg -l libgif4
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
+++-==============-============-============-=================================
ii libgif4 4.1.6-9.1 amd64 library for GIF images (library)

Why does apt-get complain about dependency, which is already
fullfilled?


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/87txt5w...@mid.deneb.enyo.de

Florian Ernst

unread,
Nov 4, 2012, 6:50:02 AM11/4/12
to
Hello there,

On Sun, Nov 04, 2012 at 11:31:12AM +0100, Florian Weimer wrote:
> I'm trying to install the i386 version of openjdk-7-jre on an amd64
> system. So I did:
>
> # dpkg --add-architecture i386
> # apt-get update
>
> This appears to have been successful. But I still cannot install
> packages:
> [...]
> The following packages have unmet dependencies:
> emacs23 : Depends: libgif4 (>= 4.1.4) but it is not going to be installed
> E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
>
> This does not make much sense. A proper version of libgif4 is
> available:
> [...]
> It is also installed for amd64:
> [...]
> Why does apt-get complain about dependency, which is already
> fullfilled?

giflib hasn't been converted to multi-arch yet, cf.
http://bugs.debian.org/647497. As such, you can now install either the
amd64 version or the i386 version, but not both.
The dependency apt-get complains about stems from the Conflicts of the
package on itself, which would be broken if trying to have both versions
installed at the same time. As such, once you install libgif4:i386, apt
would try to remove libgif4:amd64 which in turn is something
emacs23:amd64 doesn't quite like.

Yes, it seems apt and friends need some more helpful output when dealing
with multi-arch, and methinks some people work on that. Using aptitude
myself, I most of the time didn't have much trouble seeing where it
breaks, though ...

HTH,
Flo


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/20121104114...@fernst.no-ip.org

Claudius Hubig

unread,
Nov 4, 2012, 7:00:02 AM11/4/12
to
Hello Florian,

Florian Weimer <f...@deneb.enyo.de> wrote:
> Why does apt-get complain about dependency, which is already
> fullfilled?

Not all packages are yet multi-archified, that is, declare that they
can be used on a multi-arch system (and how). In particular, since
libgif4 does not declare Multi-Arch:same, it cannot be installed at
the same time as another architecture of itself: libgif4:amd64 and
libgif4:i386 ‘conflict’.

Since it also not declares Multi-Arch:foreign, the libgif4:amd64
package cannot be used to satisfy the dependency of
openjdk-7-jre:i386 (and vice versa, libgif4:i386 cannot be used to
satisfy the dependency of emacs23:amd64).

At the current moment, your best bet is probably to use an i386
chroot or wait until libgif4 gets multiarchified. There is already a
bug report about this (http://bugs.debian.org/647497).

Best,

Claudius


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/20121104112...@ares.home.chubig.net

Claudius Hubig

unread,
Nov 4, 2012, 7:20:02 AM11/4/12
to
Hey,

Claudius Hubig <debia...@chubig.net> wrote:
> Florian Weimer <f...@deneb.enyo.de> wrote:
> > Why does apt-get complain about dependency, which is already
> > fullfilled?

following up on myself: It seems that openjdk-7-jre-headless:i386
installs fine on Multi-Arch (amd64 host). Maybe that is sufficient
for your needs?

Best,

Claudius


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/20121104120...@ares.home.chubig.net
0 new messages