You are not logged in.

#1 2012-03-07 21:32:05

Coward
Member
Registered: 2009-06-24
Posts: 9

[Solved] Pacman fails to satisfied java-runtime dependency on upgrade

Hi. So I haven't been able to upgrade yesterday or today because of this bug. I couldn't figure out how to solve it on my own.

This is what happens when I try to upgrade:

jake@levi> sudo pacman -Syyu                                                                                                                                                                                                                                     ~
:: Synchronizing package databases...
 core                                                                                                                                104.8 KiB  76.7K/s 00:01 [##################################################################################################] 100%
 extra                                                                                                                              1389.5 KiB   187K/s 00:07 [##################################################################################################] 100%
 community                                                                                                                          1549.8 KiB   191K/s 00:08 [##################################################################################################] 100%
 multilib                                                                                                                             89.7 KiB   145K/s 00:01 [##################################################################################################] 100%
:: Starting full system upgrade...
resolving dependencies...
looking for inter-conflicts...
error: failed to prepare transaction (could not satisfy dependencies)
:: languagetool: requires java-runtime>=6
:: rhino: requires java-runtime

I have jre7-openjdk-headless already installed, which provides java-runtime 7, so I don't see why I could be running into any problems.

[1] jake@levi> pacman -Qi jre7-openjdk-headless                                                                                                                                                                                                                      ~
Name           : jre7-openjdk-headless
Version        : 7.b147_2.1-1
URL            : http://icedtea.classpath.org
Licenses       : custom
Groups         : None
Provides       : java-runtime=7
Depends On     : libjpeg-turbo  lcms2  nss  ca-certificates-java  rhino
Optional Deps  : libcups: needed for Java Mauve support - libmawt.so
                 fontconfig: needed for Java Mauve support - libmawt.so
Required By    : languagetool  rhino
Conflicts With : java-runtime  openjdk6
Replaces       : None
Installed Size : 107421.00 KiB
Packager       : Andreas Radke <andyrtr@archlinux.org>
Architecture   : x86_64
Build Date     : Wed Feb 15 06:36:20 2012
Install Date   : Thu Mar 1 14:06:19 2012
Install Reason : Installed as a dependency for another package
Install Script : Yes
Description    : Free Java environment based on OpenJDK 7.0 with IcedTea7 replacing binary plugs - Minimal Java runtime - needed for executing non GUI Java programs

There could be something I don't understand though. Any help is appreciated.

Last edited by Coward (2012-03-08 00:30:57)

Offline

#2 2012-03-07 21:55:20

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

Re: [Solved] Pacman fails to satisfied java-runtime dependency on upgrade

jre7-openjdk-headless 7.b147_2.1-3 (the current one) provides java-runtime-headless=7, not java-runtime. New rhino requires java-runtime-headless.
Try to ignore the conflicts and see if it works out. I guess languagetool will be broken, but rhino should be OK.
Explicitly updating

pacman -S rhino jre7-openjdk-headless

may help too.

Offline

#3 2012-03-08 00:10:17

mira
Member
Registered: 2009-12-03
Posts: 4

Re: [Solved] Pacman fails to satisfied java-runtime dependency on upgrade

Probably it have something to do with https://bugs.archlinux.org/task/28797

Offline

#4 2012-03-08 00:28:25

Coward
Member
Registered: 2009-06-24
Posts: 9

Re: [Solved] Pacman fails to satisfied java-runtime dependency on upgrade

Thanks everyone, following karol's advice it got me to install jre7-openjdk and now I can upgrade again.

Offline

#5 2012-03-08 00:32:31

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

Re: [Solved] Pacman fails to satisfied java-runtime dependency on upgrade

If you need java-runtime (e.g. for the languagetool), you can install openjdk6 or jre7-openjdk.

Offline

#6 2012-03-08 00:38:10

mira
Member
Registered: 2009-12-03
Posts: 4

Re: [Solved] Pacman fails to satisfied java-runtime dependency on upgrade

Karol's advice did not worked for me, so I did this:

pacman -Rdd jre7-openjdk-headless

and after that this:

pacman -S jre7-openjdk

and then the update worked as it should. Hope that helps somebody.

Offline

#7 2012-03-08 00:49:09

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

Re: [Solved] Pacman fails to satisfied java-runtime dependency on upgrade

mira wrote:

Karol's advice did not worked for me, so I did this:

pacman -Rdd jre7-openjdk-headless

and after that this:

pacman -S jre7-openjdk

and then the update worked as it should. Hope that helps somebody.

Not sure what was the issue in your case, but I did say "Try to ignore the conflicts and see if it works out." and by that I meant the '-dd' switch.
Now I see I should have been explicit about it as my comment doesn't make it clear at all.

Offline

Board footer

Powered by FluxBB