libreoffice issue

(dkorzhevin) #1

Hello gents,

Libre office is broken, right after install (1:6.1.5-3):

$libreoffice 
Reading profile /etc/firejail/libreoffice.profile
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
Parent pid 1606, child pid 1607
Blacklist violations are logged to syslog
Child process initialized in 78.51 ms
Final linking of kernel DynamicKernel failed.

Parent is shutting down, bye...
(dmknght) #2

Hi! I think this is a little issue with our appamor. This problem is very easy to fix.
Firstly, the problem happens because there is a link file in /usr/local/bin that points to firejail.

┌─[dmknght@parrot]─[~]
└──╼ $which libreoffice
/usr/local/bin/libreoffice
┌─[dmknght@parrot]─[~]
└──╼ $ls -la /usr/local/bin/libreoffice
lrwxrwxrwx 1 root staff 17 Jun  1 23:31 /usr/local/bin/libreoffice -> /usr/bin/firejail

You can fix it by delete /usr/local/bin/libreoffice. The real path of libreoffice is /usr/bin/libreoffice

┌─[dmknght@parrot]─[~]
└──╼ $whereis libreoffice
libreoffice: /usr/bin/libreoffice /usr/lib/libreoffice /etc/libreoffice /usr/local/bin/libreoffice /usr/share/libreoffice /usr/share/man/man1/libreoffice.1.gz

P/s: this issue has been asked in community forum before

1 Like
(dkorzhevin) #3

@dmknght thank you, /usr/bin/libreoffice works for me, after link removal.

I bet, this problem should be fixed in firejail configuration, provided with parrot…

(dmknght) #4

I believe it is some issues inside our firejail package. Currently we have had more broken shortcuts. I reported to other devs. Hope we can fix this issue soon

(Michael C) #5

wow that seems a lot easier than my solution.

How I fixed it:

first run:

sudo apt purge firejail firejail-profiles

then:

sudo rm -r /etc/firejail

  • this ensures any residual configuration left by firejail is removed. The apt purge command should have removed it, in theory. However close attention to terminal output will reveal that this fails because “directory not empty” errors.

then:

rm -r ~/.config/libreoffice

Reboot the system

log in, try to launch libreoffice, it should work now that firejail is removed as the prime offender causing this issue. If it doesn’t, you may want to uninstall libreoffice as well. This really shouldn’t be necessary, but if it is:

sudo apt purge libreoffice

then:

sudo apt install libreoffice

ONLY NECESSARY IF IT DOESN’T LOAD AFTER FIREJAIL IS REMOVED AND SYSTEM REBOOTED!

Otherwise, run:

sudo apt install firejail firejail-profiles

try to run libreoffice, it should load, but if launched in terminal you’ll see it complain about apparmor profiles not being enforced. This is because the system needs to be rebooted to properly and fully load firejail. Reboot the system now.

Log in and attempt to load libreoffice. If the result is the same as on my system, it should load. Again, I had the same DynamicKernel error that was listed above. However, unfortunately I came across this thread after I did all that stuff above.

In summary, what I think happens is that when firejail is updated, any links on the system are not updated along with the firejail configuration. Removing firejail seemed to remove the link as well (since firejail was no longer installed, it made the link invalid, and apt rightfully deleted the link as in the solution outline above). Basically, I took the long way to get to the same solution. Much credit to dmknght for narrowing down the solution to something far simpler than what I ended up doing.
Unfortunately, out of the plethora of threads here addressing libreoffice issues, this is the only one I found with the solution to my problem, and it wasn’t exactly the “top result” or easiest to find. It’s worth noting that trying to search forums for a specific thread that has one’s specific issue is typically a nightmare at best, but then again when is searching forums reasonably easy (that doesn’t end up in wading through dozens or hundreds of posts). Perhaps a stickied post for “how to address libreoffice loading issues” is needed?

edit: my orignal install was 4.5.1 security edition, amd64, updated to 4.7 via rolling release.

(dmknght) #6

You are REMOVING FIREJAIL SANDBOX. It is removing protection, not fixing problem -_- dont do that next time you sir.

(dkorzhevin) #7

I can admit, that firejail is one of many things, why I personally prefer parrot over kali, where all work under root.