[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problem with Sun's Java Debian Packages from Non-Free...



Hi Scott

On Tuesday 18 July 2006 05:31, Redefined Horizons wrote:
> Java Guys,
>
> I'm having some trouble getting the Debs for Sun's Java in the
> Non-Free section installed. I wanted to check with you guys for a
> solution, and if I'm not messing something up then I will file a bug
> report.
>
> I think there may be a circular dependency with the sun-java5-bin
> Debian package and the sun-java5-jre Debian Package.
>
The circular dependency is a known issue.  See 
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=368108.

> Here is the message I get from dpkg when I try to install the
> sun-java5-bin package. (It does prompt me to accept the license, but
> I'm not sure if it completes the installation.)
>
> Error Message
>
> darthvadersbox:/home/darthvader/debs# dpkg -i
>  Selecting previously deselected package
> sun-java5-bin.
<snip dpkg output>
> Here is the message I get when I try to install the sun-java5-jre
> package.
>
> darthvadersbox:/home/darthvader/debs# dpkg -i
> sun-java5-jre_1.5.0-07-1_i386.deb dpkg: error processing
> sun-java5-jre_1.5.0-07-1_i386.deb (--install): cannot access archive: No
> such file or directory
> Errors were encountered while processing:
>  sun-java5-jre_1.5.0-07-1_i386.deb
sun-java5-jre_1.5.0-07-1_i386.deb doesn't exist, sun-java5-jre is 
architecture all, you meant sun-java5-jre_1.5.0-07-1_all.deb

> darthvadersbox:/home/darthvader/debs# dpkg -i
> sun-java5-jre_1.5.0-07-1_all.deb Selecting previously deselected package
> sun-java5-jre.
<snip dpkg install; dpkg errors about unconfigured sun-java5-bin>
>
> Can I fix this by overriding the dependecy checks and forcing the
> install?
Force-depends is an (un-necessarily) big hammer.  Using 
dpkg -i --force-depends here will probably work, but there are better 
solutions.  

i. In the state that you ended up in, dpkg --configure --pending will 
configure both packages.

ii. Install both packages with the same command eg
dpkg -i sun-java5-jre_1.5.0-07-1_all.deb sun-java5-bin_1.5.0-07-1_i386.deb
This should work even with one or both packages partially installed.

I'm not sure why you're installing with dpkg, but in general I recommend 
using apt-get or aptitude or another package manager as a front end to 
dpkg.  They should handle dependencies for you.

HTH
Andrew V.



Reply to: