libreoffice won't start on debian: ERROR 4 forking process

Since I ran an update yesterday, libreoffice won’t start any more on my debian system. No error messages, only when I try from the command line, I get:

ERROR 4 forking process

Any ideas how this could be fixed?

I found this reference amongst others for the message https://askubuntu.com/questions/73427/cannot-fork-error-messages. By update, do you mean debian update? More information on your system would be helpful as to whether this problem is Debian, or LibreOffice related.

I think you’ll find that there is a conflict in this file: /etc/apparmor.d/usr.lib.libreoffice.program.soffice.bin

If you run sudo aa-complain /etc/apparmor.d/usr.lib.libreoffice.program.soffice.bin it might help you zero in on the problem. The error I got was completely unhelpful initially because it didn’t tell me which line was at fault. But there is the following line:

/usr/lib{,32,64}/@{multiarch}/gstreamer???/gstreamer-???/gst-plugin-scanner mrPUx,

The problem is that I believe it includes another file above which also contains a gstreamer rule, but instead of mrPUx, it uses ix . PUx conflicts with ix, so I changed the libreoffice file to be mrix instead of mrPUx. It is possible I had an old file, but I think this was the conflict:

abstractions/ubuntu-browsers.d/ubuntu-integration: /usr/lib/@{multiarch}/gstreamer0.10/gstreamer-0.10/gst-plugin-scanner ix,

I’m running Ubuntu, but Ubuntu gets their initial spin from Debian, so it should be similar. At any rate, it ultimately comes down to soffice.bin’s apparmor file isn’t being loaded so soffice.bin doesn’t run.