You are here: Home / Can't start Libreoffice in Parrot OS after updates

Can't start Libreoffice in Parrot OS after updates

Notes on how to fix java and Libreoffice in Parrot OS if start having trouble after updates...

 

 

Error for starting Libreoffice (either libreoffice or loffice):

loffice
Reading profile /etc/firejail/loffice.profile
Reading profile /etc/firejail/libreoffice.profile
Reading profile /etc/firejail/libreoffice.local
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/whitelist-var-common.inc
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Reading profile /etc/firejail/disable-programs.inc
Parent pid 28961, child pid 28962
TESTING warning: noblacklist /home/bofh/.cache not matched by a proper blacklist command in disable*.inc
Blacklist violations are logged to syslog
Child process initialized in 128.13 ms
Warning: failed to launch javaldx - java may not function correctly
ERROR 4 forking process

Parent is shutting down, bye...

 

 

Workaround for Libreoffice

Try this to see if it works, in the command line, use the full path of /usr/bin/loffice (or /usr/bin/libreoffice), if that works, then see the fix below...

 

Fix for Libreoffice

Remove link from /usr/local/bin/libreoffice (or loffice, etc.)

Then run:

firejail --noprofile libreoffice

Now should work again.

 

 

 

 

Option 2: Manual Installation

Download OpenJDK 10 binaries for Linux.
Untar the downloaded archive:
tar xzvf openjdk-10_linux-x64_bin.tar.gz
Move the extracted archive to where your system keeps your installed JDKs:
sudo mv jdk-10 /usr/lib/jvm/java-10-openjdk-amd64/
Add the new Java alternative:
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/java-10-openjdk-amd64/bin/java 1
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/java-10-openjdk-amd64/bin/javac 1
Update your system's java alternatives and choose JDK 10:

$ sudo update-alternatives --config java
here are 3 choices for the alternative java (providing /usr/bin/java).

Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/jvm/java-9-openjdk-amd64/bin/java 1091 auto mode
* 1 /usr/lib/jvm/java-10-openjdk-amd64/bin/java 1 manual mode
2 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1081 manual mode
3 /usr/lib/jvm/java-9-openjdk-amd64/bin/java 1091 manual mode

Press <enter> to keep the current choice[*], or type selection number:
and
$ sudo update-alternatives --config javac
There are 3 choices for the alternative javac (providing /usr/bin/javac).

Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/lib/jvm/java-9-openjdk-amd64/bin/javac 1091 auto mode
1 /usr/lib/jvm/java-10-openjdk-amd64/bin/javac 1 manual mode
2 /usr/lib/jvm/java-8-openjdk-amd64/bin/javac 1081 manual mode
3 /usr/lib/jvm/java-9-openjdk-amd64/bin/javac 1091 manual mode

Press <enter> to keep the current choice[*], or type selection number: 1
update-alternatives: using /usr/lib/jvm/java-10-openjdk-amd64/bin/javac to provide /usr/bin/javac (javac) in manual mode
Verify your installation with:

$ java --version
openjdk 10 2018-03-20
OpenJDK Runtime Environment 18.3 (build 10+46)
OpenJDK 64-Bit Server VM 18.3 (build 10+46, mixed mode)
and
$ javac --version
javac 10
Done
If you prefer Oracle's JDK, download it and follow the installation steps as shown above.

Java 10, download from Oracle.

Extract and move dir to /usr/lib/jvm (or jre or jdk as appropriate).

 

 

 

References

https://oldforums.parrotsec.org/viewtopic.php?id=1227

 

https://stackoverflow.com/questions/49507160/how-to-install-jdk-10-under-ubuntu?rq=1

Filed under: ,
Navigation