You are not logged in.

#1 2012-07-23 19:33:59

Jindur
Member
Registered: 2011-09-29
Posts: 184

Cannot upgrade openjdk6 to openjdk7: Pacman ignores --force. [SOLVED]

$ sudo pacman -Sf jre7-openjdk
resolving dependencies...
looking for inter-conflicts...
:: jre7-openjdk-headless and openjdk6 are in conflict. Remove openjdk6? [y/N] y
error: failed to prepare transaction (could not satisfy dependencies)
:: clojure: requires java-environment
:: eclipse: requires java-environment
:: libreoffice-extension-diagram: requires java-environment
:: libreoffice-extension-google-docs: requires java-environment
:: libreoffice-extension-nlpsolver: requires java-environment
:: libreoffice-extension-presenter-screen: requires java-environment
:: libreoffice-extension-report-builder: requires java-environment
:: libreoffice-extension-scripting-beanshell: requires java-environment
:: libreoffice-extension-scripting-javascript: requires java-environment
:: libreoffice-extension-validator: requires java-environment
:: libreoffice-extension-watch-window: requires java-environment
:: libreoffice-extension-wiki-publisher: requires java-environment

How can I replace openjdk6 by 7?
Why does pacman ignore the "-f" force option that should omit checks?

Last edited by Jindur (2012-07-23 21:35:59)

Offline

#2 2012-07-23 20:00:40

AndyRTR
Developer
From: Magdeburg/Germany
Registered: 2005-10-07
Posts: 1,642

Re: Cannot upgrade openjdk6 to openjdk7: Pacman ignores --force. [SOLVED]

pacman -Rdd openjdk6  &&
pacman -S jre7-openjdk

Offline

#3 2012-07-23 20:01:13

fatboy
Member
From: India
Registered: 2012-03-17
Posts: 73

Re: Cannot upgrade openjdk6 to openjdk7: Pacman ignores --force. [SOLVED]

The -f option is only useful to bypass file conflict checks - ie it will overwrite any conflicting files. It is recommended to never use this option.

Use -d to skip dependency version checks, and -dd to skip all dependency checks.

(from man pacman)

Offline

#4 2012-07-23 20:05:16

guelfi
Member
From: /home/guelfi
Registered: 2011-07-01
Posts: 111

Re: Cannot upgrade openjdk6 to openjdk7: Pacman ignores --force. [SOLVED]

1. Never use --force unless the news says differently.

2. I think that the short -f switch was removed some time ago so that you see what you are doing (forcing something which should not be forced).

3. --force only applies to file conflicts and not to dependencies. Use -d (or -dd) to ignore dependencies when updating.

4. Since version 7, the name of the actual jdk is jdk7-openjdk,

Offline

#5 2012-07-23 20:56:33

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Cannot upgrade openjdk6 to openjdk7: Pacman ignores --force. [SOLVED]

Jindur wrote:

Why does pacman ignore the "-f" force option that should omit checks?

There is no -f option...

It was removed to protect people from themselves...

Dave, Ionuț, and I are getting a bit fed up with people abusing this option and
not realizing it skips a lot more than they think- if files move between
packages, using this option will likely leave your system in a state you did
not expect.

Removing the short option for it at least makes people read the word "force"
and maybe they will have some sense to step back and think about what they are
doing first.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2012-07-23 21:35:33

Jindur
Member
Registered: 2011-09-29
Posts: 184

Re: Cannot upgrade openjdk6 to openjdk7: Pacman ignores --force. [SOLVED]

Thanks, -Rdd worked well.

jasonwryan wrote:

There is no -f option

Well, "man pacman" is out of date then I guess. hmm

Offline

Board footer

Powered by FluxBB