Ubuntu Mate 21.04 cannot connect to Windows Network

Ubuntu Mate 21.04 cannot connect to Windows Network, seems like a bug across all 21.04 Ubuntu flavours. GVFS and Smbclient are properly installed. Anyone else seeing this?

Hi :slight_smile:

Did you installed cifs-utils ?

Yes I did. Still a no go.

Is this related?

do you have a error message ?

Failed to mount Windows share: Invalid argument
Please select another viewer and try again

If I boot with the Budgie 20.04 live image and try to connect, it connects instantly.

I just done a test with one fresh export from my end :

$ mkdir /tmp/share

$ sudo mount -t cifs -o username=olek //192.168.2.4/test /tmp/share

[sudo] password for olek: 
Password for olek@//192.168.2.4/test:  **************

$ mount | grep share
//192.168.2.4/test on /tmp/share type cifs (rw,relatime,vers=3.1.1,cache=strict,username=olek,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.2.4,file_mode=0755,dir_mode=0755,soft,nounix,serverino,mapposix,rsize=4194304,wsize=4194304,bsize=1048576,echo_interval=60,actimeo=1)

Can you try doing it similar way ? I mean from command line using same syntax and commands ?

1 Like

Thanks for your help. But this is out of my league!

Don't worry it will not mess up things :slight_smile:
Just open a terminal, try this commands :

mkdir /tmp/share this will create a temporary folder for our test, that will dissapear at next boot

sudo mount -t cifs -o username=<your smb user name> //<ip of the smb server>/<smb export name> /tmp/share this will mount your remote smb location to your system. Think to replace your smb user name, ip of the smb server and smb export name
like on Windows \\192.168.1.2\myfolder but \ are inverted to /

It will ask you for your linux local root password and next, for the remote smb user password - not your linux user :slight_smile: :

[sudo] password for olek: 
Password for olek@//192.168.2.4/test:  **************

Next just insure this got work with mount command and grep (search inside output) for the word share - this should print your mount that contain the word share at the line :
mount | grep share

should look something like this if it worked :
//192.168.2.4/test on /tmp/share type cifs (rw,relatime,vers=3.1.1,cache=strict,username=olek,uid=0,noforceuid,gid=0,noforcegid,addr=192.168.2.4,file_mode=0755,dir_mode=0755,soft,nounix,serverino,mapposix,rsize=4194304,wsize=4194304,bsize=1048576,echo_interval=60,actimeo=1)

Good luck :slight_smile: and we are all learning, no shame to have :slight_smile:

2 Likes

No such file or directory.

Thanks for everything, will go back to 20.04.
Have a great day.