This error persists in 18.04.3, gvfs version: 1.36.1-0ubuntu1.3.3 I tried to use gcp instead of cp but the result is the same, so this is an gvfs error.
But actually most of the files are copied (both using cp or gcp). So for example an gz-file is copied and it is possible to unpack it, but zgrep returns "unexpected end of file". Note: By using smbclient I can retrieve the files without errors. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to gvfs in Ubuntu. https://bugs.launchpad.net/bugs/1773114 Title: Cannot copy file using 'cp' on a gvfs mount Status in gvfs package in Ubuntu: Confirmed Bug description: On Ubuntu 18.04, I can't anymore copy a file using the 'cp' command on a gvfs smb mount. For example, If I try to copy the file test.odp on a SMB shared folder, like this: cp -v test.odp /run/user/1000/gvfs/smb- share:domain=XXXXX,server=xxxxx,share=xxx,user=xxxxx/<some folder> I get the following error: cp: cannot fstat '/run/user/1000/gvfs/smb- share:domain=XXXXX,server=xxxxx,share=xxx,user=xxxxx/<some folder>/test.odp': Invalid argument A file 'test.odp' is created, but with size 0. I can delete any file on the shared folder using the 'rm' command. If I copy the file using the command 'gio copy', then it works as expected. This used to work in Ubuntu 16.04. Of course, I don't know if the problem is in the gvfs package or in some underlying component... System: Ubuntu 18.04 LTS (Bionic Beaver) 64-bit Kernel: 4.15.0-22-generic x86_64 Package: gvfs 1.36.1-0ubuntu1 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gvfs/+bug/1773114/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp