You are not logged in.

#1 2011-10-15 12:51:53

Shahab
Member
Registered: 2011-10-15
Posts: 30

[SOLVED] openjdk6 and jre6 false conflict

Hello everybody,
I am a newbie in archlinux but I like every bit of it, that helps me understad the linux systems better. Recently I have encountered a problem; at first I installed openjdk6:

# pacman -S openjdk6

Then for some reasons I needed to install jre6 from AUR:

# pacman -Rsn openjdk6
# yaourt jre6

But now when I want to upgrade the packages I get this error:

[root@machine]# pacman -Syyuu
resolving dependencies...
looking for inter-conflicts...
:: openjdk6 and jre6 are in conflict (java-runtime). Remove jre6? [y/N] N
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: openjdk6 and jre6 are in conflict (java-runtime)

I managed to do it anyway with:

# pacman -Sddyyuu

but do you know how can I solve this in an appropriate way?

Last edited by Shahab (2011-10-15 20:05:26)

Offline

#2 2011-10-15 12:57:55

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] openjdk6 and jre6 false conflict

So now you have both packages installed?

Offline

#3 2011-10-15 12:59:07

Shahab
Member
Registered: 2011-10-15
Posts: 30

Re: [SOLVED] openjdk6 and jre6 false conflict

no, I have removed openjdk6 with:

# pacman -Rsn openjdk6

Offline

#4 2011-10-15 13:46:39

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] openjdk6 and jre6 false conflict

Shahab wrote:

no, I have removed openjdk6 with:

# pacman -Rsn openjdk6

Why does you system want you to install openjdk6? What package requires it?

Offline

#5 2011-10-15 13:50:42

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [SOLVED] openjdk6 and jre6 false conflict

maybe there is a package in your system that requires java-environment and it tries to fix the dependency at pacman -Syu.

do pacman -Syu --debug


Give what you have. To someone, it may be better than you dare to think.

Offline

#6 2011-10-15 14:07:20

Shahab
Member
Registered: 2011-10-15
Posts: 30

Re: [SOLVED] openjdk6 and jre6 false conflict

wonder wrote:

maybe there is a package in your system that requires java-environment and it tries to fix the dependency at pacman -Syu.

do pacman -Syu --debug

You are correct wonder. The thing is now that I run the update command since there is no update for those packages, I see no error:

[root@machine]# pacman -Syuu
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
:: Starting full system upgrade...
 there is nothing to do

karol, as I remember while removing the openjdk6 there was some complaints about these packages:

eclipse
icedtea-web
jdownloader

But I forced removing the openjdk6 with 'dd' flag anyway. In the first post when I said there was a problem, actually there was an update for eclipse (one of three packages above). How can I fix this? because all of these program are running fine and using jre6 already.

Last edited by Shahab (2011-10-15 14:10:17)

Offline

#7 2011-10-15 14:10:03

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] openjdk6 and jre6 false conflict

Shahab wrote:

As I remember while removing the openjdk6 there was some complaints about these packages:

eclipse
icedtea-web
jdownloader

But I forced removing the openjdk6 with 'dd' flag anyway. In the first post when I said there was a problem, actually there was an update for eclipse (one of three packages above). How can I fix this? because all of these program are running fine and using jre6 already.

You can add openjdk6 to IgnorePkg in pacman.conf and update them by hand or rebuild the packages that depend on it to use the Oracle JRE.
Not the best ideas but the only ones I have atm.

Offline

#8 2011-10-15 14:10:55

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [SOLVED] openjdk6 and jre6 false conflict

so install jdk6 as well along with jre6 and everything is fine


Give what you have. To someone, it may be better than you dare to think.

Offline

#9 2011-10-15 14:11:41

Shahab
Member
Registered: 2011-10-15
Posts: 30

Re: [SOLVED] openjdk6 and jre6 false conflict

karol wrote:
Shahab wrote:

As I remember while removing the openjdk6 there was some complaints about these packages:

eclipse
icedtea-web
jdownloader

But I forced removing the openjdk6 with 'dd' flag anyway. In the first post when I said there was a problem, actually there was an update for eclipse (one of three packages above). How can I fix this? because all of these program are running fine and using jre6 already.

You can add openjdk6 to IgnorePkg in pacman.conf and update them by hand or rebuild the packages that depend on it to use the Oracle JRE.
Not the best ideas but the only ones I have atm.

thanks for your flash reply wink

Offline

#10 2011-10-15 14:19:01

Shahab
Member
Registered: 2011-10-15
Posts: 30

Re: [SOLVED] openjdk6 and jre6 false conflict

nope, the problem is still there:

[root@machine]# pacman -Rsn icedtea-web
[root@machine]# pacman -S icedtea-web
resolving dependencies...
looking for inter-conflicts...
:: openjdk6 and jre6 are in conflict (java-runtime). Remove jre6? [y/N] y

Remove (1): jre6-6u27-1

Total Removed Size:   108.91 MB

Targets (3): ca-certificates-java-20110816-1  openjdk6-6.b22_1.10.3-1
             icedtea-web-1.1.3-1

...

I think somehow I should make it understad to use jre6 not openjdk6.

Last edited by Shahab (2011-10-15 14:20:05)

Offline

#11 2011-10-15 14:20:02

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] openjdk6 and jre6 false conflict

Remove openjdk6 and install both jre6 and jdk6.

Offline

#12 2011-10-15 14:22:44

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [SOLVED] openjdk6 and jre6 false conflict

remove icedtea-web as well. jre6 contains a browser plugin


Give what you have. To someone, it may be better than you dare to think.

Offline

#13 2011-10-15 14:36:59

Shahab
Member
Registered: 2011-10-15
Posts: 30

Re: [SOLVED] openjdk6 and jre6 false conflict

wonder wrote:

remove icedtea-web as well. jre6 contains a browser plugin

That was the problem after all, icedtea only uses openjdk6. I removed it and the problem of conflicts are gone. thank you both smile

Last edited by Shahab (2011-10-15 14:37:59)

Offline

#14 2011-10-15 14:48:09

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] openjdk6 and jre6 false conflict

I didn't help you at all, because I ... ummm ... forgot that jre doesn't include jdk while openjdk provides both.

Please remember to mark the thread as solved.

Offline

Board footer

Powered by FluxBB