file sharing stopped working after 20.04 dist upgrade

after dist-upgrade to 20.04, file sharing stopped working

now when i try to connect to another Ubuntu computer, it shows "Unable to mount location - Failed to retrieve share list from server: invalid argument"

how can we troubleshoot and fix this as simple and easily as possible? and how to prevent this happening again in the next dist-upgrade? i think i have both samba and smbclient installed

(i think i only used samba up to now, i have no idea how to configure nfs, afp or others as alternative network protocols since i never used them at home)


Are we talking about one Ubuntu 20.04 machine trying to connect to another 20.04 machine?

The problem is somewhat convoluted I'm afraid. Because of a bug in gvfsd-smb-browse the initial contact between client and server is with SMB1. But the version of samba in Ubuntu 20.04 disables SMB1 for security reasons. That is the reference to "invalid argument".

You have two choices:

[1] You could just override the default settings and re-enable SMB1 ( what samba calls NT1 ) on both machines:

Edit /etc/samba/smb.conf and right under the workgroup = WORKGROUP line add:

client min protocol = NT1
server min protocol = NT1

Then reboot the machine

[2] Or, you can leave things as they are by default and bypass gvfsd-smb-browse and connect to the server and its share directly in Connect to Server :

smb://hostname.local/share-name

The connection will be with SMB3.

There is actually a third option and that is a CIFS mount which you can add to /etc/fstab so that it mounts on access of its mount point. If you are interested I can show you how to do that.