LibreOffice can't find JRE

Tags: #<Tag:0x00007fc0bdf67950>

Hello,

  • _OpenMandriva Lx version:_LX 4.0

  • Desktop environment (KDE, LXQT…): LXQT, KDE

LibreOffice 6.2.4.2.0+ can’t find any JAVA-JRE in
Libreoffice -> Extras -> Optionen -> Erweitert -> x Eine Java-Laufzeitumgebung verwenden

~]$ sudo update-alternatives --config java

Es gibt 3 Programme, welche »java« zur Verfügung stellen.

Auswahl Befehl

*+ 1 /usr/lib/jvm/jre-1.8.0-openjdk.x86_64/bin/java
2 /usr/java/jre1.8.0_221-amd64/bin/java
3 /usr/java/jre1.8.0_221-i586/bin/java

Eingabe um die vorgegebene Auswahl[+] zu behalten, oder geben Sie die Nummer an:

What can I do?

with regards
Ch. Hanisch

Two things you can do to make it easier for others to see what is going on and help if they can.

  1. Post code as code with the </> icon. Example:

$ sudo dnf upgradel

  1. Preface commands with ‘LC_ALL=C’ so the output is in English. Example:

$ LC_ALL=C sudo dnf upgrade

I’m not sure of the exact answer to this but I asked on IRC @ #openmandriva-cooker so maybe a developer will respond. I do know that it won’t be java-1.8.0 and more likely would be java-12.

Post-edit: It there is a runtime environment in java-12 I can’t find it. I’m thinking it should be ‘/usr/lib/jvm/java-12-openjdk/bin/java’ but that does not seem to exist.

java-12-openjdk-12.0.1.ga-2.x86_64

is installed. I presume this is installed by default as I don’t recall installing this myself.

Post-edit: My understanding is that java is only needed if user installs and actually uses LibreOffice Base? That’s a question not a statement.

@Hanisch I got an answer from @bero on IRC. For java plugin bits for LibreOffice user needs to install:

$ sudo dnf install libreoffice-java

The reason is that we don’t want to install all the dependencies by default as most people won’t use them or need the java stuff in LO.

After installing ‘libreoffice-java’ a user should see this in LibreOffice>Tools>Options>Advanced:

Hello,

`$ sudo dnf install libreoffice-java`

That was the solution - thank you very much.
I have now “OpenMandriva 12.0.1 external”

Oh, no!!
Now is following taken:

$ sudo dnf install libreoffice-java
Letzte Prüfung auf abgelaufene Metadaten: vor 0:14:52 am Mi 28 Aug 2019 11:18:25 CEST.
Fehler: 
 Problem: package libreoffice-java-6.2.4-2.x86_64 requires pentaho-reporting-flow-engine, but none of the providers can be installed
  - package pentaho-reporting-flow-engine-1:0.9.4-8.3.noarch requires liblayout >= 0.2.10, but none of the providers can be installed
  - conflicting requests
  - nothing provides xml-commons-apis needed by liblayout-0.2.10-8.0.noarch
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

Why I can’t ‘libreoffice-java’ install again in last minutes?

with regards
Ch. Hanisch

This way:

1 Like

Hello,

O wonder!
Now is it OK.

]$ sudo dnf install libreoffice-java                                        
OpenMandriva Cooker - Unsupported - x86_64                                                   6.7 kB/s | 1.5 kB     00:00    
OpenMandriva Cooker - Restricted - x86_64                                                    7.5 kB/s | 1.5 kB     00:00    
OpenMandriva Cooker - Non-free - x86_64                                                      7.4 kB/s | 1.5 kB     00:00    
OpenMandriva Rock - x86_64                                                                   3.5 kB/s | 1.5 kB     00:00    
OpenMandriva Rock - x86_64 - Updates                                                         8.3 kB/s | 1.5 kB     00:00    
OpenMandriva Rock - Unsupported - x86_64                                                     9.5 kB/s | 1.5 kB     00:00    
OpenMandriva Rock - Unsupported - x86_64 - Updates                                           8.2 kB/s | 1.5 kB     00:00    
OpenMandriva Rock - Restricted - x86_64                                                      7.5 kB/s | 1.5 kB     00:00    
OpenMandriva Rock - Restricted - x86_64 - Updates                                            7.9 kB/s | 1.5 kB     00:00    
OpenMandriva Rock - Non-free - x86_64                                                        9.9 kB/s | 1.5 kB     00:00    
OpenMandriva Rock - Non-free - x86_64 - Updates                                              9.9 kB/s | 1.5 kB     00:00    
Das Paket libreoffice-java-6.2.4-2.x86_64 ist bereits installiert.
Abhängigkeiten sind aufgelöst.
Nichts zu tun.
Fertig.

with regards
Ch. Hanisch

@Hanisch
please run in console -as simple user- command

dnf repolist --all|grep enabled

and post output here

1 Like

Mixing Cooker repos with a stable release repos like Rock is just plain dumb. This is asking for problems. I’m baffled as to where people come up with this being OK. So anyway we added to Release Notes a section About Repositories.

This is the content of that section:

We have now the om-repo-picker aka: Software Repository Selector to select additional repositories for more package availability. Do not mix the repositories from different release versions/update channels. Example: This means do not use Cooker repositories on a Rock system. If you use Rock use Rock repositories only. This is explained in more detail in OpenMandriva Release Plan and Repositories.

If you do mix different release/update channel repositories and you break your computer the solution is to do a fresh install. And after that fresh install don’t do this again.

Post-edit: Perhaps I should be careful about labeling something as dumb lest I be asked about all the dumb things I’ve done on computers… (To many for sure.)

Hello,

$ dnf repolist --all|grep enabled
google-earth-pro                                 38 kB/s | 5.2 kB     00:00    
OpenMandriva Cooker - Unsupported - x86_64      7.8 kB/s | 1.5 kB     00:00    
OpenMandriva Cooker - Unsupported - x86_64      4.6 MB/s | 4.9 MB     00:01    
OpenMandriva Cooker - Restricted - x86_64       8.4 kB/s | 1.5 kB     00:00    
OpenMandriva Cooker - Non-free - x86_64         8.5 kB/s | 1.5 kB     00:00    
OpenMandriva Rock - x86_64                      8.1 kB/s | 1.5 kB     00:00    
OpenMandriva Rock - x86_64 - Updates            8.9 kB/s | 1.5 kB     00:00    
OpenMandriva Rock - Unsupported - x86_64        5.3 MB/s |  11 MB     00:02    
OpenMandriva Rock - Unsupported - x86_64 - Upda 602 kB/s | 248 kB     00:00    
OpenMandriva Rock - Restricted - x86_64         411 kB/s | 140 kB     00:00    
OpenMandriva Rock - Restricted - x86_64 - Updat 1.3 kB/s | 344  B     00:00    
OpenMandriva Rock - Non-free - x86_64           502 kB/s | 161 kB     00:00    
OpenMandriva Rock - Non-free - x86_64 - Updates  46 kB/s |  11 kB     00:00

How can I deactivate the Cooker repositories?
Perhaps in /etc/yum.repos.d?

with regards
Ch. Hanisch

$ sudo nano /etc/yum.repos.d/openmandriva-cooker-x86_64.repo

Yes, in the file /etc/yum.repos.d/openmandriva-cooker-x86_64.repo change every instance of ‘enabled=1’ to ‘enabled=0’.

Hello,
I have set all not relevant Repositories like
/etc/yum.repos.d/openmandriva-cooker-x86_64.repo.OFF

and now I have:

]$ dnf repolist --all|grep enabled
google-earth-pro                                 19 kB/s | 1.3 kB     00:00    
OpenMandriva Rock - x86_64                      1.2 kB/s | 1.5 kB     00:01    
OpenMandriva Rock - x86_64 - Updates            8.6 kB/s | 1.5 kB     00:00    
OpenMandriva Rock - Unsupported - x86_64        8.4 kB/s | 1.5 kB     00:00    
OpenMandriva Rock - Unsupported - x86_64 - Upda 8.3 kB/s | 1.5 kB     00:00    
OpenMandriva Rock - Restricted - x86_64         8.2 kB/s | 1.5 kB     00:00    
OpenMandriva Rock - Restricted - x86_64 - Updat 7.9 kB/s | 1.5 kB     00:00    
OpenMandriva Rock - Non-free - x86_64           8.6 kB/s | 1.5 kB     00:00    
OpenMandriva Rock - Non-free - x86_64 - Updates  10 kB/s | 1.5 kB     00:00

It’s OK now?

with regards
Ch. Hanisch

1 Like

Yes, that is much better. Should save you from many problems.

If you find packages missing then do this.

Hello,
Sorry, the package flvstreamer is impossible to install.

$ sudo dnf --refresh install flvstreamer
google-earth-pro                                                                              20 kB/s | 1.3 kB     00:00    
OpenMandriva Rock - x86_64                                                                   8.5 kB/s | 1.5 kB     00:00    
OpenMandriva Rock - x86_64 - Updates                                                         8.8 kB/s | 1.5 kB     00:00    
OpenMandriva Rock - Unsupported - x86_64                                                     7.5 kB/s | 1.5 kB     00:00    
OpenMandriva Rock - Unsupported - x86_64 - Updates                                           8.9 kB/s | 1.5 kB     00:00    
OpenMandriva Rock - Restricted - x86_64                                                      8.2 kB/s | 1.5 kB     00:00    
OpenMandriva Rock - Restricted - x86_64 - Updates                                            9.9 kB/s | 1.5 kB     00:00    
OpenMandriva Rock - Non-free - x86_64                                                         11 kB/s | 1.5 kB     00:00    
OpenMandriva Rock - Non-free - x86_64 - Updates                                               10 kB/s | 1.5 kB     00:00    
Abhängigkeiten sind aufgelöst.
=============================================================================================================================
 Package                      Architecture            Version                    Repository                             Size
=============================================================================================================================
Installieren:
 flvstreamer                  x86_64                  2.1c1-3                    rock-x86_64-non-free                   60 k

Transaktionsübersicht
=============================================================================================================================
Installieren  1 Paket

Gesamte Downloadgröße: 60 k
Installationsgröße: 191 k
Ist dies in Ordnung? [j/N]: j
Pakete werden heruntergeladen:
[MIRROR] flvstreamer-2.1c1-3-omv2015.0.x86_64.rpm: Status code: 404 for http://ftp-stud.hs-esslingen.de/pub/Mirrors/openmandriva/rock/repository/x86_64/non-free/release/flvstreamer-2.1c1-3-omv2015.0.x86_64.rpm
[MIRROR] flvstreamer-2.1c1-3-omv2015.0.x86_64.rpm: Status code: 404 for http://distrib-coffee.ipsl.jussieu.fr/pub/linux/openmandriva/rock/repository/x86_64/non-free/release/flvstreamer-2.1c1-3-omv2015.0.x86_64.rpm
[MIRROR] flvstreamer-2.1c1-3-omv2015.0.x86_64.rpm: Status code: 404 for http://www.mirrorservice.org/sites/downloads.openmandriva.org/rock/repository/x86_64/non-free/release/flvstreamer-2.1c1-3-omv2015.0.x86_64.rpm
[MIRROR] flvstreamer-2.1c1-3-omv2015.0.x86_64.rpm: Status code: 404 for http://ftp.nluug.nl/pub/os/Linux/distr/openmandriva/rock/repository/x86_64/non-free/release/flvstreamer-2.1c1-3-omv2015.0.x86_64.rpm
[MIRROR] flvstreamer-2.1c1-3-omv2015.0.x86_64.rpm: Status code: 404 for http://abf-downloads.openmandriva.org/rock/repository/x86_64/non-free/release/flvstreamer-2.1c1-3-omv2015.0.x86_64.rpm
[MIRROR] flvstreamer-2.1c1-3-omv2015.0.x86_64.rpm: Status code: 404 for http://ftp.pwr.wroc.pl/OpenMandriva/rock/repository/x86_64/non-free/release/flvstreamer-2.1c1-3-omv2015.0.x86_64.rpm
[MIRROR] flvstreamer-2.1c1-3-omv2015.0.x86_64.rpm: Status code: 404 for http://ftp.icm.edu.pl/pub/Linux/dist/openmandriva/rock/repository/x86_64/non-free/release/flvstreamer-2.1c1-3-omv2015.0.x86_64.rpm
[MIRROR] flvstreamer-2.1c1-3-omv2015.0.x86_64.rpm: Status code: 404 for http://ftp.tu-chemnitz.de/pub/linux/openmandriva/rock/repository/x86_64/non-free/release/flvstreamer-2.1c1-3-omv2015.0.x86_64.rpm
[MIRROR] flvstreamer-2.1c1-3-omv2015.0.x86_64.rpm: Status code: 404 for http://mirror.yandex.ru/openmandriva/rock/repository/x86_64/non-free/release/flvstreamer-2.1c1-3-omv2015.0.x86_64.rpm
[MIRROR] flvstreamer-2.1c1-3-omv2015.0.x86_64.rpm: Status code: 404 for http://ftp.acc.umu.se/mirror/openmandriva.org/rock/repository/x86_64/non-free/release/flvstreamer-2.1c1-3-omv2015.0.x86_64.rpm
[MIRROR] flvstreamer-2.1c1-3-omv2015.0.x86_64.rpm: Status code: 404 for http://ftp.vectranet.pl/mirror/openmandriva.org/rock/repository/x86_64/non-free/release/flvstreamer-2.1c1-3-omv2015.0.x86_64.rpm
[MIRROR] flvstreamer-2.1c1-3-omv2015.0.x86_64.rpm: Status code: 404 for http://distro.ibiblio.org/openmandriva/rock/repository/x86_64/non-free/release/flvstreamer-2.1c1-3-omv2015.0.x86_64.rpm
[MIRROR] flvstreamer-2.1c1-3-omv2015.0.x86_64.rpm: Status code: 404 for http://openmandriva.c3sl.ufpr.br/rock/repository/x86_64/non-free/release/flvstreamer-2.1c1-3-omv2015.0.x86_64.rpm
[MIRROR] flvstreamer-2.1c1-3-omv2015.0.x86_64.rpm: Status code: 404 for http://mirror.rise.ph/openmandriva/rock/repository/x86_64/non-free/release/flvstreamer-2.1c1-3-omv2015.0.x86_64.rpm
[MIRROR] flvstreamer-2.1c1-3-omv2015.0.x86_64.rpm: Status code: 404 for http://ftp.yzu.edu.tw/Linux/openmandriva/rock/repository/x86_64/non-free/release/flvstreamer-2.1c1-3-omv2015.0.x86_64.rpm
[MIRROR] flvstreamer-2.1c1-3-omv2015.0.x86_64.rpm: Status code: 404 for http://mirror.lagoon.nc/pub/openmandriva/rock/repository/x86_64/non-free/release/flvstreamer-2.1c1-3-omv2015.0.x86_64.rpm
[FAILED] flvstreamer-2.1c1-3-omv2015.0.x86_64.rpm: No more mirrors to try - All mirrors were already tried without success  

Die heruntergeladenen Pakete wurden bis zur nächsten erfolgreichen Transaktion im Zwischenspeicher abgelegt.
Sie können zwischengespeicherte Pakete mit dem Befehl »dnf clean packages« entfernen.
Fehler: Fehler beim Herunterladen der Pakete:
  Cannot download flvstreamer-2.1c1-3-omv2015.0.x86_64.rpm: All mirrors were tried

What is the reason?

with regards
Ch. Hanisch

This LibreOffice issue looks solved. All the rest is OT. Please continue your discussion here.