Xubuntu Libre Office Calc can not open network file

I have newly installed Xubuntu desktop on a computer. I need to work with files on a NAS store (using samba shares). Libre Office can not open them.

  • I browse the network in Thunar and see all files. The are recognised as Open Office files (right icon).
  • I can copy files to my desktop.
  • I can open the files with gedit.
  • On double click I see the Libre Office5 splash sceen then then nothing happens. I do not get any error message.
  • When I open Libre Office I can browse to the file with the open dialog but after file selection, I am just back to the blank file.
  • I can edit the file after copying it to my desktop.
  • After uncommemting X-GIO-NoFuse=true in the config file I do get an error when trying to open the file:

    General input/output error while accessing run/user/1000/gvfs/smb-share:server=, share=".

  • I have read about a bug to disable /use/share/applications/libroffice-calc.desktop and comment out x-KDE prototocls, but that did not help. The question is Can't open files through the network.

I did not try to mount the network share with fstab, since I need to be able to work with temporary shares in the file manager.

Anyone else having that problem? How can I solve that?

Using Xubunutu 16.04, amd64, kernel 4.4.0.-64-generic.


Solution 1:

"I had a similar problem on Ubuntu. Make sure the Libreoffice Gnome integration package is installed. In my case the package was libreoffice-gnome"

https://ask.libreoffice.org/en/question/9549/unable-to-open-files-from-windows-share/?sort=votes#sort-top

Solution 2:

This error remains when I use the file managers network browsing function to access an open office file on a share. I still have no idea why it works with gedit and not with open office.

General input/output error while accessing
/run/user/1000/gvfs/smb-share..."** 

Since the question should not remain open indefinitely, I would like to put down the workaround that I found. With that also open office works fine.

The problem goes away when a share is not linked via gvfs as the file manager does it, but with cifs in /etc/fstab. The new entry maps the share to the home folder and uses a credentials file in the home folder

Here is how to do it, detailed explanations are in [How to select a file from a network share with file manager file open dialog.

sudo apt install cifs-utils
nano ~/.smbcredentials
  username=joe
  password=Doe711
  domain=myworkgroupname
chmod 400 ~/.smbcredentials
mkdir ~./network
mkdir ~./network/myserver
mkdir ~./network/myserver/sharename
sudo edit nano /etc/fstab
  //myserver/sharename /home/joe/network/myserver/sharename cifs credentials=/home/joe/.smbcredentials,uid=1000,gid=1000,iocharset=utf8,sec=ntlm, 0 0
sudo mount -a