Меню

Unable to access location ошибка ubuntu

  1. Ubuntu 20.04 LTS unable to browse smb share?

    Hope in the correct area Desktop install problem with network access to files.

    I have just done a new install of Ubuntru 20.04 LTS on this machine, being slightly more powerful then my others, I have a couple of oldermachines one with Suse and one with Ubuntu 18.04. On my network I have an old RaspPi running samba shares from a hard disk so basically a network share.

    I have followed the help pages in trying to browse for the shares with no success. i.e.
    Open the Files application from the Activities overview, and click Other Locations in the sidebar. The file manager will find any computers on your local area network that advertise their ability to serve files

    I can see another linux device one of the Pluto SDR’s and an icon for Wndows network, clicking on this says it is empty.

    I know the location from Ubuntu 18.04 as smb://192.168.1.104/adrian as a valid share, if I try to enter this into the server location.

    I get an error of Unable to access location failed to retrieve the share list from server: Software caused connection abort.

    I do not appear to have installed samba on Ubuntu 18.04 as if I type samba at the command prompt or smb etc it suggests i install it.

    UFW is not running so I believe a firewall issue is not the cause, but I am lost and hope someone can point me in the correct direction to get access to the NFS.

    Cheers

    Adrian


  2. Re: Ubuntu 20.04 LTS unable to browse smb share?

    I have got a stage further down the line after more searching with google, I have installed nfs-common with sudo apt install nfs-common

    Now I can see the windows shares and browse to my own shared drive on the raspPi but clicking on the share gives an error of Unable to access location Failed to mount Windows share:Software caused connection abort.

    So I am guessing I have to find a way of adding username and password?

    Adrian


  3. Re: Ubuntu 20.04 LTS unable to browse smb share?

    OK so after a reboot I am back to square one the Windows network is again empty. I will see if anyone can assist before I go futher, I will de-install the nfs-common.

    Adrian


  4. Re: Ubuntu 20.04 LTS unable to browse smb share?

    CIFS/Samba and NFS are completely different from each other. They don’t impact each other. Best to pick one to be used and get that working, ignoring the other, then removing/disabling it after you are happy.

    NFS is great for Unix-like OSes. Usually, a r-pi would be the NFS client. Regardless, the NFS server must have a static IP and must be wired ethernet connected to avoid all sorts of problems. If you want NFS, let me know and I can help. Others can help with Samba.


  5. Re: Ubuntu 20.04 LTS unable to browse smb share?

    I have instant notifications set, but nothing received, so sorry for not seeing your reply.

    The raspberry PI does have a fixed IP address, 192.168.1.104, and is wired. I think the distro is now quite old on it and passed updating but it does run samba to share the directories. In ubuntu 18.04 I can access it using smb://192.168.1.104/adrian, the system has stored my login and password somewhere? The thing is I can not remember having to install anything in particular on that machine, if I type samba at a control prompt it suggests I need to install it.

    Using the same smb://192.168.1.104/adrian on this machine with 20.04 I get the errors as above and it can not detect any windows shares at all. Perhaps I did install something on 18 but have just forgotten what I did.

    Cheers

    Adrian


  6. Re: Ubuntu 20.04 LTS unable to browse smb share?

    Ah, now your description makes sense.

    Software caused connection abort.

    Ubuntu 20 will attempt to access the server with the SMBv2 dialect of samba. If the server only understands SMBv1 ( what samba calls NT1 ) the Ubuntu 20 machine appears to it as speaking gibberish so it disconnects from the client.

    Edit /etc/samba/smb.conf on Ubuntu 20 and add the following line under the workgroup = WORKGROUP line:

    Code:

    client min protocol = NT1

    If you want these antique machines to be able to access any Ubuntu 20 samba shares you will need to add this line right under the first:

    Code:

    server min protocol = NT1

    There is another issue and that is the security mode associated with these older systems. You may need to adjust for that as well.

    Code:

    client lanman auth = yes
    ntlm auth = yes

    You would think that a simple restart of the smbd service would suffice but alas you need to do a reboot.

    Then do the smb://192.168.1.104/adrian thing again.

    Last edited by Morbius1; July 22nd, 2020 at 01:08 PM.


  7. Re: Ubuntu 20.04 LTS unable to browse smb share?

    Thank you Morbious1 I have installed Samba and done as you suggested and it has worked.

    I am still very confused over the fact that with My Ubuntu 18.04 install that I am on this moment I do not have Samba installed, there is no /etc/samba/smb.conf but it can access the file shares easily. What has changed between the two, as far as memory is concerned they were both Normal desktop installs.

    Also sorry for the delay but I seemed to have locked myself out of the forum and had to be given access again.

    Adrian


  8. Re: Ubuntu 20.04 LTS unable to browse smb share?

    The Linux samba client is made possible through the file manager with an smb library ( libsmbclient ) that is present, running, has a predefined set of defaults, and can do all that without an smb.conf file on all versions of Ubuntu.

    smb.conf comes from samba-common not from samba ( the server package ) directly so if you didn’t want to have a samba server you could have just installed the smbclient package. Then you would have an smb.conf file to mess with.

    The difference between Ubuntu18 and Ubuntu20 is the version of samba that is used. In Ubuntu20 samba disables SMB1 ( NT1 ).

    Despite what the samba documentation states smb.conf is not THE samba config file. It’s an override file used against the default settings that you have no access to directly. And that is exactly what you did here. You overrode the new settings for client and server smb protocols with the same one’s used in Ubuntu18.

    Last edited by Morbius1; July 23rd, 2020 at 01:12 PM.


  9. Re: Ubuntu 20.04 LTS unable to browse smb share?

    Looks like I have got my notifications back.

    Thank you again for your answer and assistance, So I can remove samba and install smbclient but keeping the smb.conf as suggested.

    I will give that a go and make notes of what I do in a journal.

    Adrian


  10. Re: Ubuntu 20.04 LTS unable to browse smb share?

    Success!

    I installed Ubuntu Studio 20.04 and lost my ability to open may samba shares.
    When I tried to open the samba share file I could see the top level folders, files, but when I try to open Documents I see the error

    Code:

     thunar "failed to mount windows share" software caused connection abort

    I discovered that samba was not installed, so I installed it.

    And then did this one thing

    Quote Originally Posted by Morbius1
    View Post

    Ubuntu 20 will attempt to access the server with the SMBv2 dialect of samba. If the server only understands SMBv1 ( what samba calls NT1 ) the Ubuntu 20 machine appears to it as speaking gibberish so it disconnects from the client.

    Edit /etc/samba/smb.conf on Ubuntu 20 and add the following line under the workgroup = WORKGROUP line:

    Code:

    client min protocol = NT1

    I am now able to open my shared drives.
    Thanks!

    Rob
    Ubuntu Studio 20.04 LTS
    Dell Optiplex 7010MT , Intel Quad Core i5-3550 3.30Ghz
    M-Audio Audiophile 2496 & Presonus Audiobox USB (red!)


Есть 2 ноутбука, на каждом стоит Windows 10 и Ubuntu 20.04 отдельной системой на другом разделе диска.

На первом ноутбуке:
В Ubuntu в файловом менеджере я вижу раздел с Windows 10, но не имею к нему доступа (при попытке туда зайти получаю ошибку «Unable to access location» «No .Filesystem or .Encrypted interface on D-Bus object». При этом я ничего не делал специально для закрытия доступа, так было изначально после установки.

На втором ноутбуке:
В Ubuntu в файловом менеджере также вижу раздел с Windows 10, но могу зайти в него и имею доступ ко всем файлам Windows.

Обе системы ставил схожим образом (на Windows разделял диск; при установке Ubuntu выбирал «Установить Ubuntu рядом с Windows», разделы создавались автоматически).

Вопрос: как на втором ноутбуке запретить доступ к диску с Windows аналогично, как на первом? Чтобы вообще никак нельзя было получить доступ туда, даже с правами администратора.

P.S. Если это поможет, можно даже переустановить Ubuntu и что-то поменять на этапе установки.

P.P.S. Из Windows я не вижу раздел с Ubuntu (и это хорошо).

P.P.P.S. Идеально будет, если обе системы будут изолированы друг от друга, и Ubuntu вообще не будет видеть диск с Windows.

02 April 2018

For the past few weeks I’ve been battling to get my Linux instances to access file shares on my Windows 10 instances over the network. Whether it was Ubuntu, Fedora, or RedHat, the recent upgrades to Windows 10 left my Windows shares inaccessible via Samba. Troubleshooting was difficult as I had nothing to go on exception really ambiguous messages via the syslog (“Failed to mount Windows share: Connection timed out”). After some trial and error it all came down to an undocumented change in how Windows 10 supports the SMB protocol.

Like most horrible troubleshooting stories, my one was filled with dead ends and false (and self inflicted) root causes.

I run a number of Linux based hosts on my home network, and after installing the latest version of Windows 10 Insider Edition, accessing network file shares on Windows 10 hosts from from Ubuntu simply stopped working. I immediately assumed that the Insider Edition had broken network sharing support, as among other things Home Groups were gone (I later discovered this was sadly by design from Creators Update onwards – and I was running the Insider version of Spring Creators Updates).

After configuring a non-Insiders Edition Windows desktop to run file sharing, I realized that this was also broken – This issue must have existed for a few months before i’d noticed it.

Then I turned to my primary Ubuntu file server.

This is the ambiguous error I was seeing in the Ubuntu Network Manager:

Unable to access location. Failed to mount Windows Share: Connection timed out

Unable to access location
Failed to mount Windows share: Connection timed out

Digging a little deeper the syslog showed a similar message with little additional context:

dbus_mount_reply: Error from org.gtk.vfs.Mountable.mount(): Failed to mount Windows share: Connection timed out

Assuming this was a samba file sharing issue I set about attempting to troubleshoot the networking issue by running smbclient and smbtree varying levels of logging turned on (eg “smbtree –d4”) to see if there was anything going wrong in the handshake process to my Windows 10 machines.

Frustratingly I saw similar timeout errors while attempting to troubleshoot.

The Solution (and a guess at Root Cause)

After rummaging around in both the Samba and Windows 10 release notes for the past few version I noticed that Windows 10 now offers you install a Windows feature to enable Samba 1 shares. This indicates that SMB 1 isn’t supported by default:

image

With this little fact to go on, I had the idea that Windows 10 may be blocking Samba clients from negotiating at lower levels of the SMB protocol. SMB 3.1.1 was released with Windows 10 and Windows Server 2016, adding improved encryption. Assuming the latest version of Windows 10 has started enforcing use of higher versions of SMB this sounded like a possible cause.

While this might make sense, Samba is meant to support SMB 3 (man pages), so running the latest version of Samba assumes this isn’t a problem.

Well you’d assume incorrectly.

Reconfiguring Samba to use a minimum protocol version of SMB 3, all of my issues were magically resolved.

To do this, edit your /etc/samba/smb.conf and under the [global] section of your Samba config define the minimum version of the SMB protocol to use SMB 3.

[global]
client min protocol = SMB3

Alternatively, this can also be done with the following one-liner:

$ sudo sed -i "/\[global\]/a client min protocol = SMB3" /etc/samba/smb.conf

Once these settings are saved, Windows 10 shares should be accessible from your Ubuntu/Fedora/Redhat instance and you’re off and racing again.

Я смог соединиться несколько месяцев назад моей Ubuntu 16.04 к совместно использованному драйверу сервера Windows моего института с помощью «подключения к серверу» опция на настольной панели с помощью smb://и IP-адрес сервера.

Теперь, когда я пытаюсь соединиться снова, это дает мне это сообщение об ошибке:

Unhandled error message: Failed to mount Windows share: Connection timed out

Что могло произойтись/измениться для предоставления этой ошибки?

Это имеет отношение к обновлению программного обеспечения? Самба уже в новейшей версии!

задан
12 June 2017 в 14:47

поделиться

3 ответа

Отредактируйте и добавьте ниже записей в/etc/samba/smb.conf, под [глобальным] Он должен быть похожим

[global]
client min protocol = SMB3
client max protocol = SMB3

ответ дан George Udosen
1 December 2019 в 10:34

поделиться

Для меня я раньше мог соединиться с корпоративным диском доли Windows с Наутилусом с Ubuntu 16.04, но больше после переключения на Ubuntu 18.04. Наутилус, как предполагается, запрашивает мое имя пользователя и пароль соединяться с диском доли Окна, но в Ubuntu 18.04, это просто сразу дало ошибку Unable to access location. Failed to mount Windows share: Connection Timed Out. даже не запрашивая имя пользователя и пароль. Я думаю, что причина состоит в том, потому что значения по умолчанию Ubuntu 18.04 к использованию SMB3, который не может быть совместим с долей Windows, в зависимости от Вашей ситуации.

Я смог зафиксировать его путем редактирования sudo vi /etc/samba/smb.conf и добавление client max protocol = SMB2 под [global] раздел. (Вы могли также добавить client min protocol = SMB2, но это не было необходимо для меня.)

Затем это запросило мое имя пользователя/пароль, и я смог соединиться с диском доли Windows.

ответ дан wisbucky
1 December 2019 в 10:34

поделиться

Предложения здесь работают, т.е. добавить в раздел [Global] файла smb.conf

client min protocol = SMB2
client max protocol = SMB2

Большинство компьютеров в моей сети запустите Ubuntu 16.04, и проблема заключалась в получении сообщения об ошибке.

Unable to access location. Failed to mount Windows share: Connection Timed Out.

при подключении к более новой машине под управлением Ubuntu 20.04. Новая машина могла видеть сеть и подключаться к любой машине в ней, но не наоборот, то есть старые машины с Ubuntu 16.04 не могли получить доступ к машине с Ubuntu 20.04 и отвечали

Unable to access location. Failed to mount Windows share: Connection Timed Out.  

ответ дан debonaire57
6 November 2020 в 23:06

поделиться

Другие вопросы по тегам:

Похожие вопросы:

0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии

А вот еще интересные материалы:

  • Яшка сломя голову остановился исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного исправьте ошибки
  • Ясность цели позволяет целеустремленно добиваться намеченного где ошибка
  • Un6 ошибка стиральная машина haier
  • Unarc dll вернул код ошибки 1 dark souls