You are not logged in.

#1 2009-02-16 01:30:23

The Orange Peanut
Member
Registered: 2008-01-06
Posts: 152

Can't -Syu because netbeans requires jdk, but I have openjdk6

I tried to pacman -Syu today, but I'm unable to.  Here is the output:

[nelson@alpha-pc ~]$ pacman -Syu
error: you cannot perform this operation unless you are root.
[nelson@alpha-pc ~]$ sudo pacman -Syu
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 kdemod-core is up to date
 kdemod-extragear is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for inter-conflicts...
error: failed to prepare transaction (could not satisfy dependencies)
:: netbeans: requires jdk

I have not changed (or even touched, for that matter) netbeans in at least a couple of months.  According to pacman -Qs and pacman -Ss openjdk, there is a new version, and I'm guessing that is where netbeans is having a problem.

[nelson@alpha-pc ~]$ pacman -Qs openjdk
local/openjdk6 1.4-1
    Free Java environment based on OpenJDK 6.0 with IcedTea6 replacing binary plugs.
[nelson@alpha-pc ~]$ pacman -Ss openjdk
extra/openjdk6 1.4-2
    Free Java environment based on OpenJDK 6.0 with IcedTea6 replacing binary plugs.

Would it be safe to pacman -Sf openjdk6 ?  It's not that big of a deal that I can't update openjdk, except that it also means I can't update the rest of my system.  What should I do?

Offline

#2 2009-02-16 01:48:10

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Can't -Syu because netbeans requires jdk, but I have openjdk6

Sorry, I didn't completely follow that... why would you need to force openjdk6 if pacman is complaining about netbeans? What happens if you just try "pacman -S openjdk6"?

... few minutes later...

I just looked into this a bit more... on x86_64, netbeans-6.5-3 requires "java-environment", which openjdk6 provides, but on i686 netbeans-6.5-2 requires "jdk" explicitly. Either the i686 version actually requires jdk due to some incompatibility with openjdk6, or the i686 packager made a mistake, which is my bet (I doubt it would work with openjdk on a 64-bit system but not on a 32-bit system).

I would try installing netbeans with "pacman -Sd netbeans" to ignore the dep check (or with "-Sf if that doesn't work), and if netbeans worked I would file a bug report to get the i686 packager to fix the PKGBUILD.

Last edited by Xyne (2009-02-16 01:51:03)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#3 2009-02-16 02:07:04

The Orange Peanut
Member
Registered: 2008-01-06
Posts: 152

Re: Can't -Syu because netbeans requires jdk, but I have openjdk6

I filed a bug report on the community bug tracker.  What should I do in the mean time?  pacman -Sf netbeans tries to reinstall netbeans (which is already up to date, so I'm not sure that would help.)  pacman -Sf still throws me an error about netbeans requiring jdk and aborts the operation.  Any ideas?

Offline

#4 2009-02-16 02:11:07

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,549

Re: Can't -Syu because netbeans requires jdk, but I have openjdk6

man pacman says you should try 'pacman -Sd netbeans' wink

Offline

#5 2009-02-16 02:22:41

The Orange Peanut
Member
Registered: 2008-01-06
Posts: 152

Re: Can't -Syu because netbeans requires jdk, but I have openjdk6

Perhaps I misunderstood what to do, but

[nelson@alpha-pc ~]$ sudo pacman -Sd netbeans && sudo pacman -Syu
Password:
warning: netbeans-6.5-2 is up to date -- reinstalling
looking for inter-conflicts...

Targets (1): netbeans-6.5-2

Total Download Size:    204.28 MB
Total Installed Size:   438.07 MB

Proceed with installation? [Y/n] y
:: Retrieving packages from community...
 netbeans-6.5-2           204.3M 1079.0K/s 00:03:14 [#############################] 100%
checking package integrity...
(1/1) checking for file conflicts                   [#############################] 100%
(1/1) upgrading netbeans                            [#############################] 100%
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 kdemod-core is up to date
 kdemod-extragear is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for inter-conflicts...
error: failed to prepare transaction (could not satisfy dependencies)
:: netbeans: requires jdk

What'd I do wrong?  Would pacman -Syud be safe in this context (it looks like it would work, but would it break anything?)

Last edited by The Orange Peanut (2009-02-16 02:24:10)

Offline

#6 2009-02-16 02:40:18

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,400
Website

Re: Can't -Syu because netbeans requires jdk, but I have openjdk6

Using the d or f flags with "pacman -Syu" is never safe.   Use.

pacman -Rd netbeans && pacman -Syu && pacman -Sd netbeans

The latest openjdk6 does not provide jre/jdk (it provides java-runtime and java-environment).  Netbeans is not liking that upgrade.

Offline

#7 2009-02-16 02:44:07

Ranguvar
Member
Registered: 2008-08-12
Posts: 2,549

Re: Can't -Syu because netbeans requires jdk, but I have openjdk6

Whoops, my apologies for not reading your problem thoroughly enough x.x

You could also change jdk to java-environment in pacman's deps file for netbeans in /var..

Last edited by Ranguvar (2009-02-16 02:44:32)

Offline

#8 2009-02-16 02:52:39

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Can't -Syu because netbeans requires jdk, but I have openjdk6

Try this instead:

sudo pacman -Sd netbeans && sudo pacman -Syu --ignore netbeans

I would not run "pacman -Syud".

Read the pacman man page to learn more about what you can do with pacman.

man pacman

*edit*
@Allan
Is there any reason to prefer removing and reinstalling netbeans instead of using "--ignore"?
Also, the x86_64 netbeans specifies "java-environment" as a requirement, so it seems like the coordination among the packagers (netbeans vs openjdk6, 32-bit vs 64-bit) needs some help.

Last edited by Xyne (2009-02-16 02:56:14)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#9 2009-02-16 08:16:16

awagner
Member
From: Mainz, Germany
Registered: 2007-08-24
Posts: 191

Re: Can't -Syu because netbeans requires jdk, but I have openjdk6

I'm on x86_64 and I have several programs (bootchart, jacman, java-saxon and tuxguitar) blocking the -Syu because of arguably missing j2re or jre (in the case of tuxguitar). However, as I understand the output printed below, openjdk6 should in effect provide these....

[wagner: Salamanca_Forschung]$ LC_ALL="C" pacman -Qi openjdk6
Name           : openjdk6
Version        : 1.4-1
URL            : http://icedtea.classpath.org
Licenses       : GPL  
Groups         : None
Provides       : jdk=6  j2sdk  java-environment  jre=6  j2re  java-runtime  
Depends On     : gcc-libs  xdg-utils  hicolor-icon-theme  
Optional Deps  : None
Required By    : bootchart  jacman  java-saxon  soprano  swt  tuxguitar  
Conflicts With : jdk  j2sdk  java-environment  j2re  java-runtime  jre  
Replaces       : None
Installed Size : 147384.00 K
Packager       : AndyRTR_<andyrtr@archlinux.org>
Architecture   : x86_64
Build Date     : Thu Feb 5 18:09:45 2009
Install Date   : Thu Feb 12 22:43:33 2009

Offline

#10 2009-02-16 08:24:09

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,400
Website

Re: Can't -Syu because netbeans requires jdk, but I have openjdk6

The openjdk6-1.4-2 only provides java-environment and java-runtime.  Java packages should depend on those rather than jdk, jre, j2sdk and all the others.  This is the cause of all these issues.


Xyne wrote:

*edit*
@Allan
Is there any reason to prefer removing and reinstalling netbeans instead of using "--ignore"?
Also, the x86_64 netbeans specifies "java-environment" as a requirement, so it seems like the coordination among the packagers (netbeans vs openjdk6, 32-bit vs 64-bit) needs some help.

Because it is the openjdk6 package causing the issue rather than netbeans.  The upgrade has to occur when netbeans is not there or openjdk will not be upgraded due netbeans depends being "missing".

Offline

#11 2009-02-16 15:45:26

drf
Member
From: Milano, Italy
Registered: 2008-01-13
Posts: 113

Re: Can't -Syu because netbeans requires jdk, but I have openjdk6

For the records, this happens with a lot of packages depending on jre too:

errore: impossibile eseguire l'operazione richiesta (impossibile soddisfare le dipendenze)
:: fop: richiede jre
:: java-avalon-framework: richiede jre
:: java-batik: richiede jre
:: java-commons-io: richiede jre
:: java-commons-logging: richiede jre
:: java-flexdock: richiede jre
:: java-jdom: richiede jdk
:: java-skinlf: richiede jre
:: java-xmlgraphics-commons: richiede jre
:: javahelp2: richiede jre
:: jeuclid-core: richiede jre
:: jogl: richiede jre
:: jrosetta: richiede jre
:: limewire: richiede jre
:: scilab: richiede jre

Offline

#12 2009-02-17 00:19:31

saneone
Member
From: Warsaw, PL/Bridgeport, CT
Registered: 2007-06-05
Posts: 70

Re: Can't -Syu because netbeans requires jdk, but I have openjdk6

same problem


I never sleep, cause sleep is the cousin of death

Offline

#13 2009-02-17 09:10:44

saneone
Member
From: Warsaw, PL/Bridgeport, CT
Registered: 2007-06-05
Posts: 70

Re: Can't -Syu because netbeans requires jdk, but I have openjdk6

resolving dependencies...
looking for inter-conflicts...
error: failed to prepare transaction (could not satisfy dependencies)
:: bootchart: requires j2re
:: frostwire: requires jre
:: jacman: requires j2re


I never sleep, cause sleep is the cousin of death

Offline

#14 2009-02-17 09:12:00

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,400
Website

Re: Can't -Syu because netbeans requires jdk, but I have openjdk6

File bug reports for the packages in the [extra] and [community] repos that depend on j2re etc.

Offline

#15 2009-02-17 16:27:57

joephantom
Member
From: Latinoamérica
Registered: 2008-01-09
Posts: 94
Website

Re: Can't -Syu because netbeans requires jdk, but I have openjdk6

same problem here:

:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 archlinuxfr is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for inter-conflicts...
error: failed to prepare transaction (could not satisfy dependencies)
:: yacy: requires jre

By striving to do the impossible, man has always achieved what is possible. Those who have cautiously done no more than they believed possible have never taken a single step forward - Mikhail Bakunin

Offline

#16 2009-02-18 12:28:15

Snub
Member
Registered: 2007-09-09
Posts: 13

Re: Can't -Syu because netbeans requires jdk, but I have openjdk6

I think I'm also having this problem. I'm trying to update, but pacman prompts me to replace jdk (which I need) with openjdk6 (which I don't want), and won't let me continue unless I do.

[robert@arch ~]$ sudo pacman -Syu
:: Synchronising package databases...
 core is up to date
 extra is up to date
 community is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for inter-conflicts...
:: openjdk6 conflicts with jdk. Remove jdk? [Y/n] n
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: openjdk6: conflicts with jdk

Offline

#17 2009-02-22 09:46:34

psycepa
Member
Registered: 2009-02-22
Posts: 45

Re: Can't -Syu because netbeans requires jdk, but I have openjdk6

Hi there guys.
It's unfortunate that my first post here is like this but...
I've been using arch for a while now, switched to it after gentoo's emerge drove me crazy for 100th time...
Didn't have much trouble with using arch so far...yes...so far...
I got the same problem as The Orange Peanut, but with eclipse-wtp package...
It's been a week now since problems started...and noone did anything about it... That is not what Arch community got me used to...
Anyway, after browsing some threads on the forums I got some idea - not to solve the problem but rather kind of workaround...which actually worked...
I was trying to force install of my problematic package, but it was nowhere to be found....little bit strange, but I thought that it might have been installed thorough eclipse update mechanism hence didn't update pacman's database. (but if so, why was it complaining about jdk during -Syu anyway?) I don't know exactly...
So what I have done was to install that bastard eclipse-wtp package from AUR via yaourt and guess what....that did the trick...
Right now -Syu is working like a charm so after a week of beeing unable to update I got about 1Gb of soft to install but oh well...
Anyway, I hope this can help someone to get rid of that annoying problem.
On the other hand though, I wonder what was the reason of all that c**p situation and who should we decapitate for this smile?

Offline

#18 2009-02-22 09:56:32

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,400
Website

Re: Can't -Syu because netbeans requires jdk, but I have openjdk6

psycepa wrote:

On the other hand though, I wonder what was the reason of all that c**p situation and who should we decapitate for this smile?

Every packager who specified "depends=('jre')" in their PKGBUILD instead of "depends=('java-runtime')".   So, that is probably everyone who has ever made a java package...

Offline

#19 2009-02-22 10:06:20

psycepa
Member
Registered: 2009-02-22
Posts: 45

Re: Can't -Syu because netbeans requires jdk, but I have openjdk6

Lots of heads then... :]

Offline

#20 2009-02-22 10:26:50

nishantjr
Member
From: Tokyo
Registered: 2009-02-17
Posts: 4
Website

Re: Can't -Syu because netbeans requires jdk, but I have openjdk6

same prob here ... only with limewire ... edited the .PKGINFO and reinstalled

Offline

#21 2009-02-22 16:09:27

awagner
Member
From: Mainz, Germany
Registered: 2007-08-24
Posts: 191

Re: Can't -Syu because netbeans requires jdk, but I have openjdk6

Just to inform you that there /is/ progress. The two packages which have been causing trouble for me, tuxguitar and bootchart have both had filed a bug report and have by now fixed the issue. So that really is the way to go...

Offline

Board footer

Powered by FluxBB