AnLinux-App icon indicating copy to clipboard operation
AnLinux-App copied to clipboard

Libreoffice /proc not mounted

Open dsvilko opened this issue 6 years ago • 12 comments

Is there any workaround? Libreoffice fails to start on ubuntu complaining that the /proc is not mounted. It is but I guess on Oreo some virtual files are not accessible.

dsvilko avatar Nov 16 '18 05:11 dsvilko

The start-ubuntu.sh in Termux mount Android local /proc in the distro, you can try to uncomment that line of code to see if it works.

exalab999 avatar Nov 18 '18 09:11 exalab999

It doesn't. The problem is not that the /proc filesystem is mounted but that it's not fully mounted. Has anyone got the libreoffice to run through proot on Oreo?

dsvilko avatar Nov 18 '18 10:11 dsvilko

On my PC ubuntu 18.04, libreoffice accesses these files: /proc/filesystems (not accessible) /proc/self/exe (ok) /proc/version (not accessible) /proc/self/maps (exists?) /proc/10670/exe /proc/10669/exe /proc /proc/10669 /proc/self/status (ok) /proc/modules (not accessible) /proc/driver/nvidia/params /proc/meminfo (ok)

dsvilko avatar Nov 18 '18 10:11 dsvilko

It doesn't work for me too on Ubuntu.

emidiomorgia avatar Nov 27 '18 20:11 emidiomorgia

Hi I had the same problem when trying to install open office on ubuntu mate running on an oreo based phone. I switched to kali linux on Android 6.0 and works fine. the problem is access permission on Android 8 and above.

sujitvasanth avatar Feb 28 '19 19:02 sujitvasanth

Issue solvable either via setenforce 0 or running program under "tsu". Both variants require device to be rooted.

For me setting SELinux mode to Permissive via setenforce 0 on Termux (after gaining root permission, in a rooted device, through su) did the trick.

serovar avatar Sep 08 '19 10:09 serovar

Is there any other option except rooting the device?

DarthZedd avatar Oct 08 '19 15:10 DarthZedd

I've found a way. You can edit file /usr/lib/libreoffice/program/oosplash with any HEX editor (bless for example). Just find text "/proc/version" (LibreOffice checks this file) and change to for example "/prod/version". Then you can create fake empty "/prod/version" file in the filesystem, then Office starts and works well (source code says /proc is very important but I can't find any issue, maybe because /proc partially accessible since it is "mounted" with proot to the guest system). Not very fine method but now is the only one without root.

Zin-Uru avatar Oct 17 '19 12:10 Zin-Uru

Zin-Uru's solution worked awesome for me on Andronix Modded Ubuntu version. Thanks so much!

frpe98 avatar Jan 20 '20 21:01 frpe98

Zin-Uru.. sir i have tried this method but it says something like permission denied please help sir here is screenshOt Screenshot_20200710-115059_VNC Viewer

yununusmulla avatar Jul 10 '20 06:07 yununusmulla

Or just edit /usr/lib/libreoffice/program/oosplash with emacs, then create /prod/version. What a hack! Thanks, Zin-Uru.

khenty avatar Jun 08 '21 06:06 khenty

I have created a python script fix-libreoffice.py to automate this process for Arch base distro.

Copy and run in Arch based distro

wget https://raw.githubusercontent.com/infinyte7/manjaro-fs-arm64/main/scripts/fix-libreoffice.py && python fix-libreoffice.py

krmanik avatar Sep 14 '21 04:09 krmanik