- Ошибка «Не удалось получить список общих ресурсов с сервера» при просмотре общего ресурса с помощью Nautilus
- Linux smbclient Connect to Server Error: Failed to retrieve share list from the server, No Such File Or Directory
- Linux Mint Forums
- Samba woes: Failed to retrieve share list from server [SOLVED]
- Samba woes: Failed to retrieve share list from server [SOLVED]
- BTW, Linux system can share with each other
- Re: Samba woes: Failed to retrieve share list from server
- Thank you kind sir
- Re: Samba woes: Failed to retrieve share list from server [SOLVED]
- Re: Samba woes: Failed to retrieve share list from server [SOLVED]
- Thread: Failed to retrieve share list from server
- Failed to retrieve share list from server
- Re: Failed to retrieve share list from server
- Re: Failed to retrieve share list from server
- Re: Failed to retrieve share list from server
- Re: Failed to retrieve share list from server
- Re: Failed to retrieve share list from server
- Re: Failed to retrieve share list from server
- Re: Failed to retrieve share list from server
- Re: Failed to retrieve share list from server
Ошибка «Не удалось получить список общих ресурсов с сервера» при просмотре общего ресурса с помощью Nautilus
Незадолго до обновления с 10.04 до 11.10 мой рабочий стол Ubuntu перестал разрешать мне доступ к моим общим каталогам Windows. Я рассчитывал обновить до 11.10, и проблема будет решена, но нет.
Всякий раз, когда я нажимаю на сетевой домен Windows с помощью Nautilus, появляется следующее сообщение:
Невозможно смонтировать расположение. Не удалось получить список общих ресурсов с сервера.
С чего начать устранение этой проблемы? Я сейчас отчаялся 🙁
Как ни странно, я получил всплывающее окно с указанием:
Это верный ответ на ваш вопрос. У меня тоже была такая же проблема.
Запустите терминал и введите эту команду
и добавьте IP-адрес и имя компьютера в файл hosts. Сохранить и выйти.
Пример ip и имени:
Я обнаружил, что этот совет от Горда Никерсона сработал для меня: сообщение об ошибке «Не удалось получить список общих ресурсов с сервера», поэтому он не может просматривать ПК с Windows 7, Ubuntu 10 или настольный ПК Mac.
Прежде всего, демоны Samba smbd и nmbd оба должны работать для работы в сети. Их можно запускать с service или с systemctl start более новых системных версий Ubuntu.
smbtree перечисляет все акции с машин в сети.
Итак, /etc/samba и мы sudo pico smb.conf .
Порядок разрешения имен сначала использует файлы хостов, а потом и широковещательные, и он закомментирован! Может быть, мы изменим это на:
а затем перезапустите серверы с помощью service smbd restart и service nmbd restart
Работает! Это ужасная ошибка в обновлении. Обновление не должно нарушать работоспособность, особенно такую важную вещь, как сетевое взаимодействие. Хорошо, что я вспоминаю ручную работу, которую вы должны были выполнить, чтобы вернуть самбу обратно в redhat 5 и 6.
Возможно, это общая ошибка подключения к системе:
В приведенном выше случае потока было несоответствие между именем и IP-адресом, что nmblookup помогло определить проблему. Кроме того, на этой странице есть несколько полезных советов по устранению неполадок.
- Переведите smbclient в режим отладки, вывод должен отображаться в dmesg (-d | —debuglevel = level)
- smbclient -L // -U
- nmblookup
- Можете ли вы монтировать из других систем?
Отредактируйте свой вопрос, если вы решите больше проблем.
С Ubuntu 14.04:
Эта ошибка может быть вызвана именем netbios размером более 15 символов. Он должен генерировать логи в файле /var/log/samba/log.smbd, который выглядит следующим образом:
Эту ошибку можно исправить, отредактировав файл /etc/samba/smb.conf и добавив следующую строку:
NAME-OF-PC не должен содержать более 15 символов.
У меня были очень хорошие результаты в смешанных сетевых средах (Windows / Ubuntu) с этим методом:
Нажмите Alt + F2 и введите: gksu gedit /etc/nsswitch.conf
Посмотрите на эту строку:
Добавьте wins так, чтобы это выглядело так:
Установите пакет «winbind»: sudo apt-get install winbind
Перезагрузите или перезапустите вашу сеть.
Просто добавьте «allow out» в брандмауэр:
- Порт 137 / UDP — используется nmbd
- Порт 138 / UDP — используется nmbd
- Порт 139 / TCP — используется smbd
- Порт 445 / TCP — используется smbd
И это будет работать, и если вы не знаете, как это сделать, просто установите «gufw», и используйте «+», а затем «простую вкладку».
Моя проблема была из-за /etc/samba/smb.conf . Искал WORKGROUP и удалял строку после которой упомянул localhost имя. Убедитесь, что они WORKGROUP одинаковы для обоих файлов конфигурации на каждом компьютере. Круглый путь к sudo apt-get purge samba (и / или remove ?), А затем sudo apt-get install samba . Так я решаю проблему в первый раз, после обновления с 16.10 до 17.04 на одной из моих машин (16.10 для меня было ошибкой). У меня сейчас две машины: 16.04 и 17.04.
У меня была эта проблема, и я решил ее, установив пакет gvfs-bin . За исключением gvfs-bin, большинство пакетов gvfs уже были установлены: gvfs, -common, -libs, -daemons и -backends.
Попробуйте войти в Windows-систему из Ubuntu с помощью Files. Перейдите в «Другие места» и «Подключиться к Сереру» внизу. Используйте smb: // username @ serveraddress. Это сработало для меня.
Проблема (по крайней мере, в Ubuntu 18.04, где я это пробовал) заключается в том, что следующая команда:
добавит правила только для Samba, выступающей в роли сервера. Это не добавит никаких правил для Samba, выступающей в роли клиента. Но когда вы пытаетесь смонтировать удаленный общий ресурс, это то, что вы делаете: в этом случае ваша машина является клиентом, а удаленная машина — сервером.
Кроме того, ошибка «без ответа» — это подсказка, что какой-то брандмауэр все портит. Машины обычно отвечают на запросы. Они могут ответить с ошибкой, в этом случае у вас есть другие проблемы, но если они не отвечают вообще, то их пакеты, как правило, пожираются брандмауэром.
Правил, которые позволяют Samba выступать в качестве сервера, недостаточно для того, чтобы Samba могла выступать в качестве клиента, поскольку удаленные машины отвечают со своего собственного порта 137, но локальный порт, на который поступают эти ответы, не 137, это некоторые случайный порт.
Чтобы решить эту проблему, выполните следующую команду:
Это позволит UDP-пакетам поступать на любой локальный порт, если они исходят из порта 137 или 138 удаленного компьютера. Порт 138, вероятно, не является необходимым, поскольку я видел только пакеты, прибывающие из 137, но вы никогда не знаете.
Это, вероятно, небезопасно, потому что исходный порт может быть подделан, но давайте не будем параноиком.
Источник
Linux smbclient Connect to Server Error: Failed to retrieve share list from the server, No Such File Or Directory
In this quick article, or tutorial or whatever you call it, let me share a problem solution which I recently encountered when I’m trying to connect to my client’s windows server from my Debian bases Linux system.
It’s not that this is the first time I’m trying to connect to windows server using the smbclient. Everything works before since I updated my smbclient to 4.7.4. Now if I try to connect to my windows server it shows me the following error.
Failed to retreive share list from server. No such file or directory.
I searched for the solution on different online forums and did get the breakthrough. So, the only way to solve this problem is by editing the /etc/samba/smb.conf file and override the default by adding a line inside the [global] section.
Note: If you did not find the file samba/smb.conf file in the /etc directory then you first need to install the smbclient using the following command.
After the successful installation of smbclient opens the up the /etc/samba/smb.conf file and right after the workgroup = WORKGROUP add the below line to change the default.
Visually the file looks like this.
In the last step, you just need to save the file and reboot the system.
Note: Reboot is necessary otherwise the above solution will not work.
Hopefully, this works well without any kind of error.
More Resource
You can check out this forum for a complete discussion on why this error occurred when working with smbclient on new version “Failed to retrieve share list from the server, no such file or directory”.
If the above solution solves your problem then don’t forget to hit the ♥️ button.
Источник
Linux Mint Forums
Welcome to the Linux Mint forums!
Samba woes: Failed to retrieve share list from server [SOLVED]
Samba woes: Failed to retrieve share list from server [SOLVED]
Post by windyweather » Tue Apr 28, 2020 10:36 am
Windows 10 and Linux Mint 19.3 in a network.
Windows 10 has whole drives shared Read Only by everyone.
LM 19 has some shares writeable by guest anonymous.
Windows 10 systems can see LM19 shares and write files to them.
LM19 can see Windows 10 nodes, but cannot see shares.
Error is:
Have already tried : /etc/samba/smb.conf adding lines — either of the following
with the requisite sudo service smbd start
Anybody got any more Arcane Incantations to try?
Thanks a ton.
BTW, Linux system can share with each other
Post by windyweather » Tue Apr 28, 2020 7:52 pm
So,
- Windows can share with Linux, and
- Linux can share with Linux.
- But Linux cannot share with Windows.
Visibility is completely Transitive, but ability to mount drives to read / write them is not transitive.
So is this called a Transitivity Failure? Or a Reciprocity Failure?
Anyway, I sure would like it to work after all these years.
Looks like we are regressing.
Re: Samba woes: Failed to retrieve share list from server
Post by altair4 » Wed Apr 29, 2020 6:51 am
You can get that error message from a number of causes but if the server is running Win10 or Ubuntu20 the most likely cause is a bug in gvfs not samba: https://bugs.launchpad.net/gvfs/+bug/1828107
The «trick» here is to try to connect to the server without invoking gvfsd-smb-browse. You can do that by accessing the server and share explicitly in Nemo:
By mDNS host name ( hostname with a .local attached at the end ): smb://win10-host-name.local/share-name
By ip address: smb://win10-ip-address/share-name
And if you are really lucky ( meaning it will most likely fail ) by NetBIOS name: smb://win10-host-name/share-name
Thank you kind sir
Post by windyweather » Wed Apr 29, 2020 12:15 pm
Re: Samba woes: Failed to retrieve share list from server [SOLVED]
Post by jowind » Mon Nov 09, 2020 8:33 am
Hi, just to add what finally fixed my similar problem.
My message was «failed to retrieve share list from server: invalid argument», while trying to connect my PC (LM20) with a network router’s USB.
Inserting these two lines below ‘workgroup = WORKGROUP’, on /etc/samba/smb.conf, did the trick:
Then restart the service.
Hope that helps
Re: Samba woes: Failed to retrieve share list from server [SOLVED]
Post by tmanager » Fri Jan 08, 2021 4:51 pm
Hi, just to add what finally fixed my similar problem.
My message was «failed to retrieve share list from server: invalid argument», while trying to connect my PC (LM20) with a network router’s USB.
Inserting these two lines below ‘workgroup = WORKGROUP’, on /etc/samba/smb.conf, did the trick:
Then restart the service.
Hope that helps
THANK you so much, this fixed my issue as well — I have samba (just basic conf) running on LM to share some media and other LM could not see it. and this trick fixed it
Источник
Thread: Failed to retrieve share list from server
Thread Tools
Display
Failed to retrieve share list from server
— Places
— Network
— Windows Network
— WORKGROUP ( this is my work group name)
When I double click on workgroup I get this error:
«Failed to retrieve share list from server.»
What could be the problem . . . thanks for any help in advance.
Just an idea: Does my «windows 2003» server need to support this «smb» protocol? Is this manually installed at the server side?
Can someone explain to a windows person what smb is. . .its the first time I’m encountering this.
Re: Failed to retrieve share list from server
Maybe you don’t have the smbclient package installed (I don’t know if you need any extra packages besides that one in order to browse shares).
Or, if you are going to share folders from your linux box to windows clients, you could just install samba:
Re: Failed to retrieve share list from server
It appears I already have the smbclient installed. Could someone please address the «share list error message»
Re: Failed to retrieve share list from server
I’ve found this :
Also, there are a few threads talking about this issue:
Read coment #111:
Read comments #9 and #10
Re: Failed to retrieve share list from server
I’ve found this :
Also, there are a few threads talking about this issue:
Read coment #111:
Read comments #9 and #10
Thanks for the link that tells how to use computer names on windows machines, that has been annoying me for weeks! Had to use IP addresses on a machine connected via a DHCP so IP changed every time it logged off/on. Now it’ll connect without having to change anything.
Re: Failed to retrieve share list from server
This is also a problem for me, when I followed the instructions the network joined perfectly and it all worked well.
BUT my internet browsing speed was reduced. It was taking twice as long to load simple sites like google.
When I switched it back however it returned to normal!
All I did was edit the smb config file, and the nsswitch config file.
Re: Failed to retrieve share list from server
This is also a problem for me, when I followed the instructions the network joined perfectly and it all worked well.
BUT my internet browsing speed was reduced. It was taking twice as long to load simple sites like google.
When I switched it back however it returned to normal!
All I did was edit the smb config file, and the nsswitch config file.
I’m still quite new to Linux and Ubuntu myself, so this may not be too helpful. But, make sure your name resolve order in smb.conf looks like this:
make sure your nsswitch.conf hosts line looks like this:
The order for those lines is important. I’ve expeimented before, putting wins at the beginning of the name resolve order, and it killed Samba browsing for all of my Ubuntu machines.
I know that’s not the issue you are having, but just an example of how it can be important to make sure you followed the instructions exactly. Hope this helps.
Re: Failed to retrieve share list from server
I’m still quite new to Linux and Ubuntu myself, so this may not be too helpful. But, make sure your name resolve order in smb.conf looks like this:
make sure your nsswitch.conf hosts line looks like this:
The order for those lines is important. I’ve expeimented before, putting wins at the beginning of the name resolve order, and it killed Samba browsing for all of my Ubuntu machines.
I know that’s not the issue you are having, but just an example of how it can be important to make sure you followed the instructions exactly. Hope this helps.
I can confirm that this solves every problem I’ve had with this on the 4 machines with fresh installs.
Re: Failed to retrieve share list from server
I’m still quite new to Linux and Ubuntu myself, so this may not be too helpful. But, make sure your name resolve order in smb.conf looks like this:
make sure your nsswitch.conf hosts line looks like this:
The order for those lines is important. I’ve expeimented before, putting wins at the beginning of the name resolve order, and it killed Samba browsing for all of my Ubuntu machines.
I know that’s not the issue you are having, but just an example of how it can be important to make sure you followed the instructions exactly. Hope this helps.
Ahh perfect solution for my problem with this as well! Thank you, how lucky am I to stumble upon this thread!
Источник