Всем привет. Пытаюсь настроить сервер на основе Debian, и столкнулся с проблемой при настройке <Samba> выходит ошибка, < E: Sub-process /usr/bin/dpkg returned an error code (1)> вижу что неудолетворенные зависимости
ergei@debian:~$ sudo apt-get install -f
Мы полагаем, что ваш системный администратор изложил вам основы
безопасности. Как правило, всё сводится к трём следующим правилам:
№1) Уважайте частную жизнь других.
№2) Думайте, прежде что-то вводить.
№3) С большой властью приходит большая ответственность.
[sudo] пароль для cergei:
sudo: /var/lib/sudo/lectured is group writable
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
Обновлено 0 пакетов, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 469 пакетов не обновлено.
Установлено или удалено не до конца 2 пакетов.
После данной операции объём занятого дискового пространства возрастёт на 0 B.
Настраивается пакет samba-common-bin (2:4.11.5+dfsg-1+b1) ...
Checking smb.conf with testparm
Load smb config files from /etc/samba/smb.conf
Error loading services.
dpkg: ошибка при обработке пакета samba-common-bin (--configure):
installed samba-common-bin package post-installation script subprocess returned error exit status 1
dpkg: зависимости пакетов не позволяют настроить пакет samba:
samba зависит от samba-common-bin (= 2:4.11.5+dfsg-1+b1), однако:
Пакет samba-common-bin пока не настроен.
dpkg: ошибка при обработке пакета samba (--csudo apt-get update --fix-missing
sudo apt-get install -fonfigure):
проблемы зависимостей — оставляем не настроенным
При обработке следующих пакетов произошли ошибки:
samba-common-bin
samba
E: Sub-process /usr/bin/dpkg returned an error code (1)
и пытался все это исправить осноываясь на советах из интернета, полностью удалял весь пакет <samba> используя команды:
sudo apt-get update --fix-missing
не помогло. Затем второй подход
sudo apt-get install -f
sudo dpkg --configure -a
Опять мимо, ну и затем
sudo apt-get clean
sudo apt-get update
sudo apt-get remove sudo dpkg --remove --force-remove-reinstreq samba
sudo apt-get clean
sudo apt-get update
и заново устаналиаю пакет <samba> а потом все рано при обновлении пакетов выходит что ,<samba> и <samba-common-bin> с ошибкой как видно в выводе терминала.Чувствую что где то накосячил а вот где и как исправить не вникну. Вот ниже предсталяю данные системы на которой это все и разворачивается :
an:~$ uname -a
Linux debian 5.2.9-kirkwood-tld-1 #1 PREEMPT Sat Aug 17 15:00:56 PDT 2019 armv5tel GNU/Linux
cergei@debian:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux bullseye/sid
Release: stable-updates
Codename: sid
cergei@debian:~$ cat /etc/apt/sources.list
deb http://deb.debian.org/debian buster main
deb-src http://deb.debian.org/debian buster main
deb http://deb.debian.org/debian-security/ buster/updates main
deb-src http://deb.debian.org/debian-security/ buster/updates main
deb http://deb.debian.org/debian buster-updates main
deb-src http://deb.debian.org/debian buster-updates main
deb http://ftp.ru.debian.org/debian sid main
cergei@debian:~$ ls /etc/apt/sources.list.d
ls: невозможно получить доступ к '/etc/apt/sources.list.d': Нет такого файла или каталога
Любые советы будут приняты с благодарностью.
Привёл пост в более удобночитаемый вид. Ogost
Содержание
- package samba-common-bin 2:4.11.6+dfsg-0ubuntu1.3 failed to install/upgrade: installed samba-common-bin package post-installation script subprocess returned error exit status 1
- Bug Description
- Linux Mint Forums
- Samba will not install on Mint 20 Ulyana
- Samba will not install on Mint 20 Ulyana
- Re: Samba will not install on Mint 20 Ulyana
- Re: Samba will not install on Mint 20 Ulyana
- Re: Samba will not install on Mint 20 Ulyana
- Re: Samba will not install on Mint 20 Ulyana
- Installed samba common bin package post installation script subprocess returned error exit status 1
- Re: RPi 4 — Samba installed but service won’t start
- Re: RPi 4 — Samba installed but service won’t start
- Re: RPi 4 — Samba installed but service won’t start
- Re: RPi 4 — Samba installed but service won’t start
- Re: RPi 4 — Samba installed but service won’t start
- Re: RPi 4 — Samba installed but service won’t start
- Re: RPi 4 — Samba installed but service won’t start
- Re: RPi 4 — Samba installed but service won’t start
- dpkg: ошибка при обработке пакета samba-common-bin
package samba-common-bin 2:4.11.6+dfsg-0ubuntu1.3 failed to install/upgrade: installed samba-common-bin package post-installation script subprocess returned error exit status 1
Affects | Status | Importance | Assigned to | Milestone |
---|---|---|---|---|
samba (Debian) |
Bug Description
I was able to workaround the installation failure by using systemd-tmpfiles to create the missing directory:
$ sudo dpkg —configure -a
Setting up samba-common-bin (2:4.11. 6+dfsg- 0ubuntu1. 3) .
Checking smb.conf with testparm
Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
ERROR: lock directory /run/samba does not exist
ERROR: pid directory /run/samba does not exist
WARNING: some services use vfs_fruit, others don’t. Mounting them in conjunction on OS X clients results in undefined behaviour.
Server role: ROLE_STANDALONE
dpkg: error processing package samba-common-bin (—configure):
installed samba-common-bin package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of samba:
samba depends on samba-common-bin (= 2:4.11. 6+dfsg- 0ubuntu1. 3); however:
Package samba-common-bin is not configured yet.
dpkg: error processing package samba (—configure):
dependency problems — leaving unconfigured
Errors were encountered while processing:
samba-common-bin
samba
+bryan@bryanNAS:
$ sudo /bin/systemd- tmpfiles —create /usr/lib/ tmpfiles. d/samba. conf
+bryan@bryanNAS:
$ sudo dpkg —configure -a
Setting up samba-common-bin (2:4.11. 6+dfsg- 0ubuntu1. 3) .
Checking smb.conf with testparm
Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
WARNING: some services use vfs_fruit, others don’t. Mounting them in conjunction on OS X clients results in undefined behaviour.
Server role: ROLE_STANDALONE
Done
Setting up samba (2:4.11. 6+dfsg- 0ubuntu1. 3) .
Installing new version of config file /etc/init.d/nmbd .
Installing new version of config file /etc/init. d/samba- ad-dc .
Installing new version of config file /etc/init.d/smbd .
Installing new version of config file /etc/logrotate. d/samba .
Samba is not being run as an AD Domain Controller: Masking samba-ad-dc.service
Please ignore the following error about deb-systemd-helper not finding those services.
(samba- ad-dc.service already masked)
Removing obsolete conffile /etc/init.d/samba .
Removing obsolete conffile /etc/init/nmbd.conf .
Removing obsolete conffile /etc/init/ reload- smbd.conf .
Removing obsolete conffile /etc/init/ samba-ad- dc.conf .
Removing obsolete conffile /etc/init/smbd.conf .
Failed to preset unit: Unit file /etc/systemd/ system/ samba-ad- dc.service is masked.
/usr/bin/ deb-systemd- helper: error: systemctl preset failed on samba-ad- dc.service: No such file or directory
samba-ad-dc.service is a disabled or a static unit not running, not starting it.
Processing triggers for libc-bin (2.31-0ubuntu9) .
Processing triggers for systemd (245.4-4ubuntu3.1) .
Processing triggers for ureadahead (0.100.0-21) .
ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: samba-common-bin 2:4.11. 6+dfsg- 0ubuntu1. 3
ProcVersionSign ature: Ubuntu 5.4.0-40.44-generic 5.4.44
Uname: Linux 5.4.0-40-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.3
Architecture: amd64
CasperMD5CheckR esult: skip
Date: Thu Jul 2 17:08:23 2020
ErrorMessage: installed samba-common-bin package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2017-08-20 (1047 days ago)
InstallationMedia: Ubuntu 17.04 «Zesty Zapus» — Release amd64 (20170412)
OtherFailedConnect: Yes
Python3Details: /usr/bin/python3.8, Python 3.8.2, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: /usr/bin/python2.7, Python 2.7.18rc1, python-is-python2, 2.7.17-4
RelatedPackageV ersions:
dpkg 1.19.7ubuntu3
apt 2.0.2ubuntu0.1
SambaServerRegr ession: Yes
SmbConfIncluded: No
SourcePackage: samba
TestparmExitCode: 0
Title: package samba-common-bin 2:4.11. 6+dfsg- 0ubuntu1. 3 failed to install/upgrade: installed samba-common-bin package post-installation script subprocess returned error exit status 1
UpgradeStatus: Upgraded to focal on 2020-07-02 (0 days ago)
Источник
Linux Mint Forums
Welcome to the Linux Mint forums!
Samba will not install on Mint 20 Ulyana
Samba will not install on Mint 20 Ulyana
Post by imadley » Mon Oct 26, 2020 11:34 am
I am new to Linux but need to be able to connect my work laptop (windows 10 pro) to my desktop
I am trying to get Samba to run but it will not even install from either the Software Manager or Terminal.
The follow error codes are being generated
«Error loading services.
dpkg: error processing package samba-common-bin (—configure):
installed samba-common-bin package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of samba:
samba depends on samba-common-bin (= 2:4.11.6+dfsg-0ubuntu1.5); however:
Package samba-common-bin is not configured yet.
dpkg: error processing package samba (—configure):
dependency problems — leaving unconfigured
Processing triggers for ufw (0.36-6) .
Processing triggers for systemd (245.4-4ubuntu3.2) .
Processing triggers for man-db (2.9.1-1) .
Processing triggers for libc-bin (2.31-0ubuntu9.1) .
Errors were encountered while processing:
samba-common-bin
samba
Setting up samba-common-bin (2:4.11.6+dfsg-0ubuntu1.5) .
Checking smb.conf with testparm
Load smb config files from /etc/samba/smb.conf
Error loading services.
dpkg: error processing package samba-common-bin (—configure):
installed samba-common-bin package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of samba:
samba depends on samba-common-bin (= 2:4.11.6+dfsg-0ubuntu1.5); however:
Package samba-common-bin is not configured yet.
dpkg: error processing package samba (—configure):
dependency problems — leaving unconfigured»
Any suggestions as how to solve this?
Re: Samba will not install on Mint 20 Ulyana
Post by Lord Boltar » Mon Oct 26, 2020 5:42 pm
You do not have all the prerequisites installed you are missing samba-common-bin
samba is in the repositories
IF your problem has been solved, please edit your original post and add [SOLVED] to the beginning of the Subject Line. It helps other members
The only way for evil to prosper is for good men to do nothing
Re: Samba will not install on Mint 20 Ulyana
Post by imadley » Tue Oct 27, 2020 1:34 pm
This hasn’t worked
Samba-common-bin still fails
The error reported is
» dpkg: error processing package samba (—configure):
dependency problems — leaving unconfigured
Errors were encountered while processing:
samba-common-bin
samba
E: Sub-process /usr/bin/dpkg returned error code (1)»
Re: Samba will not install on Mint 20 Ulyana
Post by Lord Boltar » Tue Oct 27, 2020 9:14 pm
IF your problem has been solved, please edit your original post and add [SOLVED] to the beginning of the Subject Line. It helps other members
The only way for evil to prosper is for good men to do nothing
Re: Samba will not install on Mint 20 Ulyana
Post by Kadaitcha Man » Tue Oct 27, 2020 9:33 pm
Источник
Installed samba common bin package post installation script subprocess returned error exit status 1
I have a RPi4 — 4GB
I can’t get samba working on it which is normally very easy.
Here are some details
- It’s Buster lite
- It’s a fresh, updated install
- All I have installed in OpenJDK 8
- I’ve gone through the install — always followed this guy’s blog
- install is simply sudo apt-get install samba samba-common-bin
- All the above is done logged in as root.
I get the following in while installing
After that, I’m stuck
Any help appreciated.
Re: RPi 4 — Samba installed but service won’t start
I have a RPi4 — 4GB
I can’t get samba working on it which is normally very easy.
Here are some details
- It’s Buster lite
- It’s a fresh, updated install
- All I have installed in OpenJDK 8
- I’ve gone through the install — always followed this guy’s blog
- install is simply sudo apt-get install samba samba-common-bin
- All the above is done logged in as root.
I get the following in while installing
After that, I’m stuck
Any help appreciated.
Re: RPi 4 — Samba installed but service won’t start
Re: RPi 4 — Samba installed but service won’t start
OpenJDK8 is not in the Buster repositories, it is OpenJDK11
It’s installed though —
Re: RPi 4 — Samba installed but service won’t start
Re: RPi 4 — Samba installed but service won’t start
true, it does have that in but you can install java8.
Still struggling to get samba working.
Re: RPi 4 — Samba installed but service won’t start
Do you have samba installed and working?
Re: RPi 4 — Samba installed but service won’t start
Are they actually running ?
Try restarting ‘smbd’ & ‘nmbd’
As for the ‘blog’ you followed, you might just as well not create a Samba user and use this share:
It will work just like the one in the blog, but with less lines.
You should also check that ‘map to guest = bad user’ is set in [global]
If ‘smbd’ & ‘nmbd’ are running, you should be able to connect to the share, but you will probably have to navigate to it, seeing as SMBv1 is now turned off.
Re: RPi 4 — Samba installed but service won’t start
well, yes and no.
So, it turns out it was working the whole time. I did not bother checking through windows if it is actually sharing them. When I did I face-palmed.
On my RPi3B+ I see the following
As you can see there is a service called samba and smdb. On the RPi4 there is only smbd.
I’m sure I am not the only one who is using the previously mentioned tutorial so hopefully this thread will help others.
Источник
dpkg: ошибка при обработке пакета samba-common-bin
Добрейшего всем дня или ночи! Завёл kali на планшете, столкнулся с данной проблемой.. при апдейте. Хелб!
Переустанавливал систему, проблема осталась актуальной
Настраивается пакет samba-common-bin (2:4.8.2+dfsg-1) … Checking smb.conf ERROR: Unable to load default file dpkg: ошибка при обработке пакета samba-common-bin (—configure): installed samba-common-bin package post-installation script subprocess returned error exit status 255 dpkg: зависимости пакетов не позволяют настроить пакет passing-the-hash: passing-the-hash зависит от samba-common-bin (>= 2:4), однако: Пакет samba-common-bin пока не настроен.
dpkg: ошибка при обработке пакета passing-the-hash (—configure): проблемы зависимостей — оставляем не настроенным dpkg: зависимости пакетов не позволяют настроить пакет kali-linux-full: kali-linux-full зависит от passing-the-hash, однако: Пакет passing-the-hash пока не настроен.
dpkg: ошибка при обработке пакета kali-linux-full (—configure): проблемы зависимостей — оставляем не настроенным dpkg: зависимости пакетов не позволяют настроить пакет samba: samba зависит от samba-common-bin (= 2:4.8.2+dfsg-1), однако: Пакет samba-common-bin пока не настроен.
dpkg: ошибка при обработке пакета samba (—configure): проблемы зависимостей — оставляем не настроенным dpkg: зависимости пакетов не позволяют настроить пакет enum4linux: enum4linux зависит от samba, однако: Пакет samba пока не настроен.
dpkg: ошибка при обработке пакета enum4linux (—configure): проблемы зависимостей — оставляем не настроенным dpkg: зависимости пакетов не позволяют настроить пакет kali-linux: kali-linux зависит от samba, однако: Пакет samba пока не настроен.
dpkg: ошибка при обработке пакета kali-linux (—configure): проблемы зависимостей — оставляем не настроенным При обработке следующих пакетов произошли ошибки: samba-common-bin passing-the-hash kali-linux-full samba enum4linux kali-linux
Источник
I was able to workaround the installation failure by using systemd-tmpfiles to create the missing directory:
+bryan@bryanNAS:~$ sudo dpkg —configure -a
Setting up samba-common-bin (2:4.11.6+dfsg-0ubuntu1.3) …
Checking smb.conf with testparm
Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
ERROR: lock directory /run/samba does not exist
ERROR: pid directory /run/samba does not exist
WARNING: some services use vfs_fruit, others don’t. Mounting them in conjunction on OS X clients results in undefined behaviour.
Server role: ROLE_STANDALONE
dpkg: error processing package samba-common-bin (—configure):
installed samba-common-bin package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of samba:
samba depends on samba-common-bin (= 2:4.11.6+dfsg-0ubuntu1.3); however:
Package samba-common-bin is not configured yet.
dpkg: error processing package samba (—configure):
dependency problems — leaving unconfigured
Errors were encountered while processing:
samba-common-bin
samba
+bryan@bryanNAS:~$ sudo /bin/systemd-tmpfiles —create /usr/lib/tmpfiles.d/samba.conf
+bryan@bryanNAS:~$ sudo dpkg —configure -a
Setting up samba-common-bin (2:4.11.6+dfsg-0ubuntu1.3) …
Checking smb.conf with testparm
Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
WARNING: some services use vfs_fruit, others don’t. Mounting them in conjunction on OS X clients results in undefined behaviour.
Server role: ROLE_STANDALONE
Done
Setting up samba (2:4.11.6+dfsg-0ubuntu1.3) …
Installing new version of config file /etc/init.d/nmbd …
Installing new version of config file /etc/init.d/samba-ad-dc …
Installing new version of config file /etc/init.d/smbd …
Installing new version of config file /etc/logrotate.d/samba …
Samba is not being run as an AD Domain Controller: Masking samba-ad-dc.service
Please ignore the following error about deb-systemd-helper not finding those services.
(samba-ad-dc.service already masked)
Removing obsolete conffile /etc/init.d/samba …
Removing obsolete conffile /etc/init/nmbd.conf …
Removing obsolete conffile /etc/init/reload-smbd.conf …
Removing obsolete conffile /etc/init/samba-ad-dc.conf …
Removing obsolete conffile /etc/init/smbd.conf …
Failed to preset unit: Unit file /etc/systemd/system/samba-ad-dc.service is masked.
/usr/bin/deb-systemd-helper: error: systemctl preset failed on samba-ad-dc.service: No such file or directory
samba-ad-dc.service is a disabled or a static unit not running, not starting it.
Processing triggers for libc-bin (2.31-0ubuntu9) …
Processing triggers for systemd (245.4-4ubuntu3.1) …
Processing triggers for ureadahead (0.100.0-21) …
ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: samba-common-bin 2:4.11.6+dfsg-0ubuntu1.3
ProcVersionSignature: Ubuntu 5.4.0-40.44-generic 5.4.44
Uname: Linux 5.4.0-40-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.3
Architecture: amd64
CasperMD5CheckResult: skip
Date: Thu Jul 2 17:08:23 2020
ErrorMessage: installed samba-common-bin package post-installation script subprocess returned error exit status 1
InstallationDate: Installed on 2017-08-20 (1047 days ago)
InstallationMedia: Ubuntu 17.04 «Zesty Zapus» — Release amd64 (20170412)
OtherFailedConnect: Yes
Python3Details: /usr/bin/python3.8, Python 3.8.2, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: /usr/bin/python2.7, Python 2.7.18rc1, python-is-python2, 2.7.17-4
RelatedPackageVersions:
dpkg 1.19.7ubuntu3
apt 2.0.2ubuntu0.1
SambaServerRegression: Yes
SmbConfIncluded: No
SourcePackage: samba
TestparmExitCode: 0
Title: package samba-common-bin 2:4.11.6+dfsg-0ubuntu1.3 failed to install/upgrade: installed samba-common-bin package post-installation script subprocess returned error exit status 1
UpgradeStatus: Upgraded to focal on 2020-07-02 (0 days ago)
I have new installation of Ubuntu 16.04 on my server, hoping to serve files to a Wetek Core with LibreELEC.
I was having problems with filesharing and made a poor decision to uninstall Samba and reinstall. I installed it by attempting to share a file and it asked if I wanted to install Samba. It gave me the following error after installation failed:
installArchives() failed: Selecting previously unselected package python-dnspython.
(Reading database ...
(Reading database ... 5%%
(Reading database ... 10%%
(Reading database ... 15%%
(Reading database ... 20%%
(Reading database ... 25%%
(Reading database ... 30%%
(Reading database ... 35%%
(Reading database ... 40%%
(Reading database ... 45%%
(Reading database ... 50%%
(Reading database ... 55%%
(Reading database ... 60%%
(Reading database ... 65%%
(Reading database ... 70%%
(Reading database ... 75%%
(Reading database ... 80%%
(Reading database ... 85%%
(Reading database ... 90%%
(Reading database ... 95%%
(Reading database ... 100%%
(Reading database ... 248054 files and directories currently installed.)
Preparing to unpack .../python-dnspython_1.12.0-1_all.deb ...
Unpacking python-dnspython (1.12.0-1) ...
Selecting previously unselected package python-crypto.
Preparing to unpack .../python-crypto_2.6.1-6ubuntu0.16.04.2_amd64.deb ...
Unpacking python-crypto (2.6.1-6ubuntu0.16.04.2) ...
Selecting previously unselected package python-ldb.
Preparing to unpack .../python-ldb_2%%3a1.1.24-1ubuntu3_amd64.deb ...
Unpacking python-ldb (2:1.1.24-1ubuntu3) ...
Selecting previously unselected package python-tdb.
Preparing to unpack .../python-tdb_1.3.8-2_amd64.deb ...
Unpacking python-tdb (1.3.8-2) ...
Selecting previously unselected package python-samba.
Preparing to unpack .../python-samba_2%%3a4.3.11+dfsg-0ubuntu0.16.04.9_amd64.deb ...
Unpacking python-samba (2:4.3.11+dfsg-0ubuntu0.16.04.9) ...
Selecting previously unselected package samba-common-bin.
Preparing to unpack .../samba-common-bin_2%%3a4.3.11+dfsg-0ubuntu0.16.04.9_amd64.deb ...
Unpacking samba-common-bin (2:4.3.11+dfsg-0ubuntu0.16.04.9) ...
Selecting previously unselected package tdb-tools.
Preparing to unpack .../tdb-tools_1.3.8-2_amd64.deb ...
Unpacking tdb-tools (1.3.8-2) ...
Selecting previously unselected package samba.
Preparing to unpack .../samba_2%%3a4.3.11+dfsg-0ubuntu0.16.04.9_amd64.deb ...
Unpacking samba (2:4.3.11+dfsg-0ubuntu0.16.04.9) ...
Selecting previously unselected package attr.
Preparing to unpack .../attr_1%%3a2.4.47-2_amd64.deb ...
Unpacking attr (1:2.4.47-2) ...
Selecting previously unselected package libaio1:amd64.
Preparing to unpack .../libaio1_0.3.110-2_amd64.deb ...
Unpacking libaio1:amd64 (0.3.110-2) ...
Selecting previously unselected package samba-dsdb-modules.
Preparing to unpack .../samba-dsdb-modules_2%%3a4.3.11+dfsg-0ubuntu0.16.04.9_amd64.deb ...
Unpacking samba-dsdb-modules (2:4.3.11+dfsg-0ubuntu0.16.04.9) ...
Selecting previously unselected package samba-vfs-modules.
Preparing to unpack .../samba-vfs-modules_2%%3a4.3.11+dfsg-0ubuntu0.16.04.9_amd64.deb ...
Unpacking samba-vfs-modules (2:4.3.11+dfsg-0ubuntu0.16.04.9) ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for ufw (0.35-0ubuntu2) ...
Processing triggers for systemd (229-4ubuntu19) ...
Setting up python-dnspython (1.12.0-1) ...
Setting up python-crypto (2.6.1-6ubuntu0.16.04.2) ...
Setting up python-ldb (2:1.1.24-1ubuntu3) ...
Setting up python-tdb (1.3.8-2) ...
Setting up python-samba (2:4.3.11+dfsg-0ubuntu0.16.04.9) ...
Setting up samba-common-bin (2:4.3.11+dfsg-0ubuntu0.16.04.9) ...
Setting up tdb-tools (1.3.8-2) ...
update-alternatives: using /usr/bin/tdbbackup.tdbtools to provide /usr/bin/tdbbackup (tdbbackup) in auto mode
Setting up samba (2:4.3.11+dfsg-0ubuntu0.16.04.9) ...
Job for smbd.service failed because the control process exited with error code. See "systemctl status smbd.service" and "journalctl -xe" for details.
invoke-rc.d: initscript smbd, action "start" failed.
smbd.service - LSB: start Samba SMB/CIFS daemon (smbd)
Loaded: loaded (/etc/init.d/smbd; bad; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2017-08-06 03:58:00 EDT; 5ms ago
Docs: man:systemd-sysv-generator(8)
Process: 13139 ExecStart=/etc/init.d/smbd start (code=exited, status=1/FAILURE)
Aug 06 03:58:00 capitalist systemd[1]: Starting LSB: start Samba SMB/CIFS d.....
Aug 06 03:58:00 capitalist smbd[13139]: * Starting SMB/CIFS daemon smbd
Aug 06 03:58:00 capitalist smbd[13139]: ...fail!
Aug 06 03:58:00 capitalist systemd[1]: smbd.service: Control process exited...=1
Aug 06 03:58:00 capitalist systemd[1]: Failed to start LSB: start Samba SMB...).
Aug 06 03:58:00 capitalist systemd[1]: smbd.service: Unit entered failed state.
Aug 06 03:58:00 capitalist systemd[1]: smbd.service: Failed with result 'ex...'.
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: error processing package samba (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up attr (1:2.4.47-2) ...
Setting up libaio1:amd64 (0.3.110-2) ...
Setting up samba-dsdb-modules (2:4.3.11+dfsg-0ubuntu0.16.04.9) ...
Setting up samba-vfs-modules (2:4.3.11+dfsg-0ubuntu0.16.04.9) ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Errors were encountered while processing:
samba
Setting up samba (2:4.3.11+dfsg-0ubuntu0.16.04.9) ...
Job for smbd.service failed because the control process exited with error code. See "systemctl status smbd.service" and "journalctl -xe" for details.
invoke-rc.d: initscript smbd, action "start" failed.
smbd.service - LSB: start Samba SMB/CIFS daemon (smbd)
Loaded: loaded (/etc/init.d/smbd; bad; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2017-08-06 03:58:03 EDT; 4ms ago
Docs: man:systemd-sysv-generator(8)
Process: 13297 ExecStart=/etc/init.d/smbd start (code=exited, status=1/FAILURE)
Aug 06 03:58:03 capitalist systemd[1]: Starting LSB: start Samba SMB/CIFS d.....
Aug 06 03:58:03 capitalist smbd[13297]: * Starting SMB/CIFS daemon smbd
Aug 06 03:58:03 capitalist smbd[13297]: ...fail!
Aug 06 03:58:03 capitalist systemd[1]: smbd.service: Control process exited...=1
Aug 06 03:58:03 capitalist systemd[1]: Failed to start LSB: start Samba SMB...).
Aug 06 03:58:03 capitalist systemd[1]: smbd.service: Unit entered failed state.
Aug 06 03:58:03 capitalist systemd[1]: smbd.service: Failed with result 'ex...'.
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: error processing package samba (--configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Package 'libpam-smbpass' is virtual.
Samba's testparm returned error 1: Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Error loading services.
$ systemctl status -l smbd.service
● smbd.service - LSB: start Samba SMB/CIFS daemon (smbd)
Loaded: loaded (/etc/init.d/smbd; bad; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2017-08-06 03:58:03 EDT; 5h 34mi
Docs: man:systemd-sysv-generator(8)
Process: 13297 ExecStart=/etc/init.d/smbd start (code=exited, status=1/FAILURE
Aug 06 03:58:03 capitalist systemd[1]: Starting LSB: start Samba SMB/CIFS daemon
Aug 06 03:58:03 capitalist smbd[13297]: * Starting SMB/CIFS daemon smbd
Aug 06 03:58:03 capitalist smbd[13297]: ...fail!
Aug 06 03:58:03 capitalist systemd[1]: smbd.service: Control process exited, cod
Aug 06 03:58:03 capitalist systemd[1]: Failed to start LSB: start Samba SMB/CIFS
Aug 06 03:58:03 capitalist systemd[1]: smbd.service: Unit entered failed state.
Aug 06 03:58:03 capitalist systemd[1]: smbd.service: Failed with result 'exit-co
lines 1-13/13 (END)
$ find /etc/samba/smb.conf
find: ‘/etc/samba/smb.conf’: No such file or directory
brian@capitalist:~$ locate /etc/samba/smb.conf
brian@capitalist:~$ locate smb.conf
/usr/share/doc/nautilus-share/examples/smb.conf
/usr/share/doc/samba-common/examples/smb.conf.default.gz
/usr/share/man/man5/smb.conf.5.gz
/usr/share/samba/smb.conf
/var/lib/ucf/cache/:etc:samba:smb.conf
I don’t know what I’m doing and need some help.
Forum rules
There are no such things as «stupid» questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.
-
imadley
- Level 1
- Posts: 3
- Joined: Mon Oct 26, 2020 11:20 am
Samba will not install on Mint 20 Ulyana
I am new to Linux but need to be able to connect my work laptop (windows 10 pro) to my desktop
I am trying to get Samba to run but it will not even install from either the Software Manager or Terminal.
The follow error codes are being generated
«Error loading services.
dpkg: error processing package samba-common-bin (—configure):
installed samba-common-bin package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of samba:
samba depends on samba-common-bin (= 2:4.11.6+dfsg-0ubuntu1.5); however:
Package samba-common-bin is not configured yet.
dpkg: error processing package samba (—configure):
dependency problems — leaving unconfigured
Processing triggers for ufw (0.36-6) …
Processing triggers for systemd (245.4-4ubuntu3.2) …
Processing triggers for man-db (2.9.1-1) …
Processing triggers for libc-bin (2.31-0ubuntu9.1) …
Errors were encountered while processing:
samba-common-bin
samba
Setting up samba-common-bin (2:4.11.6+dfsg-0ubuntu1.5) …
Checking smb.conf with testparm
Load smb config files from /etc/samba/smb.conf
Error loading services.
dpkg: error processing package samba-common-bin (—configure):
installed samba-common-bin package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of samba:
samba depends on samba-common-bin (= 2:4.11.6+dfsg-0ubuntu1.5); however:
Package samba-common-bin is not configured yet.
dpkg: error processing package samba (—configure):
dependency problems — leaving unconfigured»
Any suggestions as how to solve this?
Ian
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
-
Lord Boltar
- Level 5
- Posts: 803
- Joined: Mon Jan 09, 2017 7:24 pm
- Location: Sunny Florida
Re: Samba will not install on Mint 20 Ulyana
Post
by Lord Boltar » Mon Oct 26, 2020 5:42 pm
You do not have all the prerequisites installed you are missing samba-common-bin
samba is in the repositories
open terminal
then
this should install everything you need
IF your problem has been solved, please edit your original post and add [SOLVED] to the beginning of the Subject Line. It helps other members
The only way for evil to prosper is for good men to do nothing
-
imadley
- Level 1
- Posts: 3
- Joined: Mon Oct 26, 2020 11:20 am
Re: Samba will not install on Mint 20 Ulyana
Post
by imadley » Tue Oct 27, 2020 1:34 pm
This hasn’t worked
Samba-common-bin still fails
The error reported is
«dpkg: error processing package samba (—configure):
dependency problems — leaving unconfigured
Errors were encountered while processing:
samba-common-bin
samba
E: Sub-process /usr/bin/dpkg returned error code (1)»
-
Lord Boltar
- Level 5
- Posts: 803
- Joined: Mon Jan 09, 2017 7:24 pm
- Location: Sunny Florida
Re: Samba will not install on Mint 20 Ulyana
Post
by Lord Boltar » Tue Oct 27, 2020 9:14 pm
Do you have Synaptic Package Manager installed? if not
If you do it is listed there try and install it that way there just search for samba Synaptic will also tell you if you have any broken packages
IF your problem has been solved, please edit your original post and add [SOLVED] to the beginning of the Subject Line. It helps other members
The only way for evil to prosper is for good men to do nothing
Using the LM 19.1 Update Manager, I updated my LM install except I am getting the following error messages when I try to install the Samba package:
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up samba (2:4.7.6+dfsg~ubuntu-0ubuntu2.11) …
Samba is not being run as an AD Domain Controller.
Please ignore the following error about deb-systemd-helper not finding samba-ad-dc.service.
Job for nmbd.service failed because a timeout was exceeded.
See «systemctl status nmbd.service» and «journalctl -xe» for details.
invoke-rc.d: initscript nmbd, action «restart» failed.
● nmbd.service — Samba NMB Daemon
Loaded: loaded (/lib/systemd/system/nmbd.service; enabled; vendor preset: enabled)
Active: failed (Result: timeout) since Mon 2019-05-27 15:04:10 EDT; 5ms ago
Docs: man:nmbd(8)
man:samba(7)
man:smb.conf(5)
Process: 104267 ExecStart=/usr/sbin/nmbd —foreground —no-process-group $NMBDOPTIONS (code=killed, signal=TERM)
Main PID: 104267 (code=killed, signal=TERM)
Status: «nmbd: No local IPv4 non-loopback interfaces available, waiting for interface …»
May 27 15:02:40 shockwaveriderz-vm systemd[1]: Starting Samba NMB Daemon…
May 27 15:04:10 shockwaveriderz-vm systemd[1]: nmbd.service: Start operation timed out. Terminating.
May 27 15:04:10 shockwaveriderz-vm systemd[1]: nmbd.service: Failed with result ‘timeout’.
May 27 15:04:10 shockwaveriderz-vm systemd[1]: Failed to start Samba NMB Daemon.
dpkg: error processing package samba (—configure):
installed samba package post-installation script subprocess returned error exit status 1
Processing triggers for libc-bin (2.27-3ubuntu1) …
Errors were encountered while processing:
samba
Any idea what all this means? . I gather that the NMB service cannot be started for some reason. What are my diagnostic steps here? Where and how should I look for more information? Any help will be greatly appreciated. TIA
I tried systemctl status nmbd.service and got this:
Loaded: loaded (/lib/systemd/system/nmbd.service; enabled; vendor preset: enabled)
Active: failed (Result: timeout) since Mon 2019-05-27 15:04:10 EDT; 5ms ago
Docs: man:nmbd(8)
man:samba(7)
man:smb.conf(5)
Process: 104267 ExecStart=/usr/sbin/nmbd —foreground —no-process-group $NMBDOPTIONS (code=killed, signal=TERM)
Main PID: 104267 (code=killed, signal=TERM)
Status: «nmbd: No local IPv4 non-loopback interfaces available, waiting for interface …»
also did:
journalctl -xe and found nothing relevent.
when I try to start it with sudo service nmbd start I get:
job for nmdb.service failed because a timeout was exceeded
The samba daemon/service is running fine.
When I try to install samba on Debian buster like this:
sudo apt install samba
I get this output:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
attr libcephfs2 libgpgme11 python-crypto python-dnspython python-gpg python-ldb python-samba python-tdb samba-common-bin
samba-dsdb-modules samba-vfs-modules tdb-tools
Suggested packages:
python-crypto-doc bind9 bind9utils ctdb ldb-tools ntp | chrony smbldap-tools winbind heimdal-clients
The following NEW packages will be installed:
attr libcephfs2 libgpgme11 python-crypto python-dnspython python-gpg python-ldb python-samba python-tdb samba samba-common-bin
samba-dsdb-modules samba-vfs-modules tdb-tools
0 upgraded, 14 newly installed, 0 to remove and 0 not upgraded.
Need to get 3,877 kB/5,457 kB of archives.
After this operation, 38.9 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://mirrors.ocf.berkeley.edu/raspbian/raspbian buster/main armhf python-dnspython all 1.16.0-1 [90.1 kB]
Get:2 http://mirrors.ocf.berkeley.edu/raspbian/raspbian buster/main armhf python-crypto armhf 2.6.1-9+b1 [248 kB]
Get:3 http://mirrors.ocf.berkeley.edu/raspbian/raspbian buster/main armhf python-ldb armhf 2:1.5.1+really1.4.6-3 [33.1 kB]
Get:4 http://mirrors.ocf.berkeley.edu/raspbian/raspbian buster/main armhf python-tdb armhf 1.3.16-2+b1 [16.0 kB]
Get:5 http://mirrors.ocf.berkeley.edu/raspbian/raspbian buster/main armhf python-samba armhf 2:4.9.5+dfsg-5+deb10u1+rpi1 [1,794 kB]
Get:6 http://mirrors.ocf.berkeley.edu/raspbian/raspbian buster/main armhf tdb-tools armhf 1.3.16-2+b1 [26.9 kB]
Get:7 http://mirrors.ocf.berkeley.edu/raspbian/raspbian buster/main armhf attr armhf 1:2.4.48-4 [39.4 kB]
Get:8 http://mirrors.ocf.berkeley.edu/raspbian/raspbian buster/main armhf libcephfs2 armhf 12.2.11+dfsg1-2.1+rpi1 [380 kB]
Get:9 http://mirrors.ocf.berkeley.edu/raspbian/raspbian buster/main armhf libgpgme11 armhf 1.12.0-6 [230 kB]
Get:10 http://mirrors.ocf.berkeley.edu/raspbian/raspbian buster/main armhf python-gpg armhf 1.12.0-6 [275 kB]
Get:11 http://mirrors.ocf.berkeley.edu/raspbian/raspbian buster/main armhf samba-dsdb-modules armhf 2:4.9.5+dfsg-5+deb10u1+rpi1 [345 kB]
Get:12 http://mirrors.ocf.berkeley.edu/raspbian/raspbian buster/main armhf samba-vfs-modules armhf 2:4.9.5+dfsg-5+deb10u1+rpi1 [400 kB]
Fetched 3,877 kB in 6s (641 kB/s)
Selecting previously unselected package python-dnspython.
(Reading database ... 103379 files and directories currently installed.)
Preparing to unpack .../00-python-dnspython_1.16.0-1_all.deb ...
Unpacking python-dnspython (1.16.0-1) ...
Selecting previously unselected package python-crypto.
Preparing to unpack .../01-python-crypto_2.6.1-9+b1_armhf.deb ...
Unpacking python-crypto (2.6.1-9+b1) ...
Selecting previously unselected package python-ldb.
Preparing to unpack .../02-python-ldb_2%3a1.5.1+really1.4.6-3_armhf.deb ...
Unpacking python-ldb (2:1.5.1+really1.4.6-3) ...
Selecting previously unselected package python-tdb.
Preparing to unpack .../03-python-tdb_1.3.16-2+b1_armhf.deb ...
Unpacking python-tdb (1.3.16-2+b1) ...
Selecting previously unselected package python-samba.
Preparing to unpack .../04-python-samba_2%3a4.9.5+dfsg-5+deb10u1+rpi1_armhf.deb ...
Unpacking python-samba (2:4.9.5+dfsg-5+deb10u1+rpi1) ...
Selecting previously unselected package samba-common-bin.
Preparing to unpack .../05-samba-common-bin_2%3a4.9.5+dfsg-5+deb10u1+rpi1_armhf.deb ...
Unpacking samba-common-bin (2:4.9.5+dfsg-5+deb10u1+rpi1) ...
Selecting previously unselected package tdb-tools.
Preparing to unpack .../06-tdb-tools_1.3.16-2+b1_armhf.deb ...
Unpacking tdb-tools (1.3.16-2+b1) ...
Selecting previously unselected package samba.
Preparing to unpack .../07-samba_2%3a4.9.5+dfsg-5+deb10u1+rpi1_armhf.deb ...
Unpacking samba (2:4.9.5+dfsg-5+deb10u1+rpi1) ...
Selecting previously unselected package attr.
Preparing to unpack .../08-attr_1%3a2.4.48-4_armhf.deb ...
Unpacking attr (1:2.4.48-4) ...
Selecting previously unselected package libcephfs2:armhf.
Preparing to unpack .../09-libcephfs2_12.2.11+dfsg1-2.1+rpi1_armhf.deb ...
Unpacking libcephfs2:armhf (12.2.11+dfsg1-2.1+rpi1) ...
Selecting previously unselected package libgpgme11:armhf.
Preparing to unpack .../10-libgpgme11_1.12.0-6_armhf.deb ...
Unpacking libgpgme11:armhf (1.12.0-6) ...
Selecting previously unselected package python-gpg.
Preparing to unpack .../11-python-gpg_1.12.0-6_armhf.deb ...
Unpacking python-gpg (1.12.0-6) ...
Selecting previously unselected package samba-dsdb-modules:armhf.
Preparing to unpack .../12-samba-dsdb-modules_2%3a4.9.5+dfsg-5+deb10u1+rpi1_armhf.deb ...
Unpacking samba-dsdb-modules:armhf (2:4.9.5+dfsg-5+deb10u1+rpi1) ...
Selecting previously unselected package samba-vfs-modules:armhf.
Preparing to unpack .../13-samba-vfs-modules_2%3a4.9.5+dfsg-5+deb10u1+rpi1_armhf.deb ...
Unpacking samba-vfs-modules:armhf (2:4.9.5+dfsg-5+deb10u1+rpi1) ...
Setting up python-crypto (2.6.1-9+b1) ...
Setting up attr (1:2.4.48-4) ...
Setting up samba-vfs-modules:armhf (2:4.9.5+dfsg-5+deb10u1+rpi1) ...
Setting up libgpgme11:armhf (1.12.0-6) ...
Setting up libcephfs2:armhf (12.2.11+dfsg1-2.1+rpi1) ...
Setting up python-ldb (2:1.5.1+really1.4.6-3) ...
Setting up tdb-tools (1.3.16-2+b1) ...
update-alternatives: using /usr/bin/tdbbackup.tdbtools to provide /usr/bin/tdbbackup (tdbbackup) in auto mode
Setting up python-tdb (1.3.16-2+b1) ...
Setting up samba-dsdb-modules:armhf (2:4.9.5+dfsg-5+deb10u1+rpi1) ...
Setting up python-dnspython (1.16.0-1) ...
Setting up python-gpg (1.12.0-6) ...
Setting up python-samba (2:4.9.5+dfsg-5+deb10u1+rpi1) ...
Setting up samba-common-bin (2:4.9.5+dfsg-5+deb10u1+rpi1) ...
Checking smb.conf with testparm
Load smb config files from /etc/samba/smb.conf
Error loading services.
dpkg: error processing package samba-common-bin (--configure):
installed samba-common-bin package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of samba:
samba depends on samba-common-bin (= 2:4.9.5+dfsg-5+deb10u1+rpi1); however:
Package samba-common-bin is not configured yet.
dpkg: error processing package samba (--configure):
dependency problems - leaving unconfigured
Processing triggers for ufw (0.36-1) ...
Processing triggers for systemd (241-7~deb10u4+rpi1) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.28-10+rpi1) ...
Errors were encountered while processing:
samba-common-bin
samba
E: Sub-process /usr/bin/dpkg returned an error code (1)
m
I don’t understand what the dependency error means since the install appears to install samba-common-bin.
Debugging Central |
This page is part of the debugging series — pages with debugging details for a variety of Ubuntu packages. |
Contents
Contents
- Introduction
-
How to file
-
-
Samba as a client
- Is it a regression ?
- What version of samba packages are used ?
- How is the remote share accessed from the Ubuntu system?
- If nautilus (or another GUI client) is used to access the remote share, can the share be accessed with the smbclient command line utility ?
- If a cifs mount is used
- What is the remote server ?
-
Samba as a server
- Is it a regression ?
- What version of samba packages are used ?
- Which clients are failing to connect?
- What is the error message produced on the client?
- Other information to include
-
Install/upgrade failure
- Status of samba packages on the system
- Other information to include
-
Samba as a client
-
-
How to Triage
-
- Samba as a client
-
Stock Reply
-
- Samba as a client
- Samba as a server
- Install/upgrade failure
-
-
-
Non-bugs
-
-
Install/upgrade failure due to missing /etc/samba/smb.conf file
- How to recognize it
- Stock answer
-
Install/upgrade failure due to missing /etc/samba/smb.conf file
-
Introduction
Samba is a complex package, because it covers a wide range of use cases and provides lots of different binary packages.
Bugs relating to the samba source package typically fall into one of the following categories:
-
User cannot connect to (or properly access files on) a remote share from his Ubuntu system. This falls under the category of samba as a client.
-
Other systems cannot connect to (or properly access files on) an Ubuntu system providing samba shares. This may be an issue with samba as a server.
-
Install/upgrade failures of the samba packages.
-
libpam-smbpass specific issues. Sharing a folder from the GUI installs libpam-smbpass, which stacks a PAM module that maintains sync between system and samba passwords. Failure in libpam-smbpass may result in inability to login on the system.
-
winbind specific issues. Winbind allows to get user/group info from a Windows DC. It is sometimes installed by unsuspecting users as a recommended package from Wine.
Also, it is a very good idea to have a look at the official Samba HOWTO. You will find there not only a how-to, but also common errors.
How to file
First figure out if the bug falls under one of the generic categories:
-
samba as a client
-
samba as a server
-
install/upgrade failure
- libpam-smbpass related
- winbind related
Samba as a client
Is it a regression ?
Did this use to work properly with a previous release ?
What version of samba packages are used ?
Please give the output of:
dpkg-query -W -f='${Package} ${Version} ${Source} ${Status}n' | grep samba
- nautilus (or other GUI client)
- smbclient (from the command line)
- cifs filesystem mount (from /etc/fstab or a mount command)
To test:
- install the samba-client package
- try to connect to the remote system from the command line:
smbclient //remote_system/share_name
If the share requires a specific username/password, try using the «-U» parameter (for example, use «-U ntdomain\user»).
If a cifs mount is used
In that case please also provide:
-
the content of the file /etc/fstab, or the command line used to mount the remote share if the share is manually mounted.
-
the content of the file /proc/fs/cifs/DebugData
What is the remote server ?
In all cases, please include the output of the following smbclient command:
smbclient -L //remote_system
This should give us the remote server version. Also include on what kind of machine the share is located (Windows 2003 Server, Ubuntu 8.04, NAS box model…)
Samba as a server
Is it a regression ?
Did this use to work properly with a previous release ?
What version of samba packages are used ?
Please give the output of:
dpkg-query -W -f='${Package} ${Version} ${Source} ${Status}n' | grep samba
Which clients are failing to connect?
Include the operating system (Windows, Ubuntu) and version (XP, Vista, 8.04) of the client systems failing to connect to the share.
What is the error message produced on the client?
Other information to include
-
the content of the /etc/samba/smb.conf file
-
log files found in /var/log/samba/
-
the output of the smbclient -L //server/
-
the output of testparm -s
Install/upgrade failure
Status of samba packages on the system
Please give the output of:
dpkg-query -W -f='${Package} ${Version} ${Source} ${Status}n' | grep samba
Other information to include
-
apt and dpkg log files: /var/log/dpkg.log and /var/log/apt/term.log.
-
/etc/samba/smb.conf (or absence thereof)
In the case of an upgrade was there a prompt for a modified configuration file? If so what steps were taken.
How to Triage
Identify if the bug falls in one of the generic categories above. If so make sure that the relevant information is available. If not ask for it using one of the stock replies.
Samba as a client
If nautilus fails to connect but smbclient can successfully connect, the bug is related to nautilus. Mark the samba task Invalid and open a new task for nautilus.
If both nautilus and smbclient can not connect, the bug is related to samba.
If cifs cannot connect the bug might be related to CIFS kernelspace (package linux) or userspace (package samba). In doubt, leave it in samba.
Stock Reply
Samba as a client
Use this reply if an Ubuntu system cannot access a remote samba/windows share.
Thank you for taking the time to report this bug and helping to make Ubuntu better. Unfortunately we can't fix it without more information. Please include the information requested at https://wiki.ubuntu.com/DebuggingSamba#samba-client.
Samba as a server
Use this reply if remote clients cannot access a share provided by an Ubuntu system.
Thank you for taking the time to report this bug and helping to make Ubuntu better. Unfortunately we can't fix it without more information. Please include the information requested at https://wiki.ubuntu.com/DebuggingSamba#samba-server.
Install/upgrade failure
Use this reply if there is a package installation/upgrade failure on the Ubuntu system.
Thank you for taking the time to report this bug and helping to make Ubuntu better. Unfortunately we can't fix it without more information. Please include the information requested at https://wiki.ubuntu.com/DebuggingSamba#samba-pkg-fail.
Non-bugs
Install/upgrade failure due to missing /etc/samba/smb.conf file
How to recognize it
This is a case of install/upgrade failure that results in the following error message (potentially translated):
package samba-common <version> failed to install/upgrade: subprocess post-installation script returned error exit status 1
The DpkgTerminalLog.gz (or /var/log/apt/term.log) contains the following message:
Not replacing deleted config file /etc/samba/smb.conf chmod: cannot access `/etc/samba/smb.conf': No such file or directory
The user should not be able to provide any /etc/samba/smb.conf file, since it is missing.
Stock answer
Thank you for taking the time to report this bug and helping to make Ubuntu better. It looks like you manually removed /etc/samba/smb.conf before reinstalling/upgrading samba packages. Configuration files are special files that should be purged by running "apt-get purge", not manually removed. You can recover from this situation by restoring /etc/samba/smb.conf and restart pending package configuration: $ sudo cp /usr/share/samba/smb.conf /etc/samba/smb.conf $ sudo dpkg --configure -a Alternatively, you can purge samba-common completely and attempt the install/upgrade again: $ sudo apt-get purge samba-common This bug will be marked as Invalid: please reopen it if the above steps do not resolve the situation for you. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!
Close the bug report as Invalid.
CategoryBugSquad CategoryDebugging
I tried installing samba on my debian server, and the installation failed with
$ sudo apt install samba -y
Preparing to unpack .../samba_2%3a4.9.5+dfsg-5+deb10u1_amd64.deb ...
Unpacking samba (2:4.9.5+dfsg-5+deb10u1) ...
Setting up samba (2:4.9.5+dfsg-5+deb10u1) ...
Samba is not being run as an AD Domain Controller: Masking samba-ad-dc.service
Please ignore the following error about deb-systemd-helper not finding those services.
(samba-ad-dc.service masked)
Job for smbd.service failed because the control process exited with error code.
See "systemctl status smbd.service" and "journalctl -xe" for details.
invoke-rc.d: initscript smbd, action "start" failed.
● smbd.service - Samba SMB Daemon
Loaded: loaded (/lib/systemd/system/smbd.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2021-01-24 15:08:59 CET; 20ms ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Process: 30205 ExecStartPre=/usr/share/samba/update-apparmor-samba-profile (code=exited, status=0/SUCCESS)
Process: 30214 ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS (code=exited, status=1/FAILURE)
Main PID: 30214 (code=exited, status=1/FAILURE)
Jan 24 15:08:59 domain.not systemd[1]: Starting Samba SMB Daemon...
Jan 24 15:08:59 domain.not update-apparmor-samba-profile[30205]: grep: /etc/apparmor.d/samba/smbd-shares: No such file or directory
Jan 24 15:08:59 domain.not update-apparmor-samba-profile[30205]: diff: /etc/apparmor.d/samba/smbd-shares: No such file or directory
Jan 24 15:08:59 domain.not systemd[1]: smbd.service: Main process exited, code=exited, status=1/FAILURE
Jan 24 15:08:59 domain.not systemd[1]: smbd.service: Failed with result 'exit-code'.
Jan 24 15:08:59 domain.not systemd[1]: Failed to start Samba SMB Daemon.
dpkg: error processing package samba (--configure):
installed samba package post-installation script subprocess returned error exit status 1
Processing triggers for systemd (241-7~deb10u5) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.28-10) ...
Errors were encountered while processing:
samba
E: Sub-process /usr/bin/dpkg returned an error code (1)
While I would like to ignore the error as instructed (Please ignore the following error
), it leaves me with not fully installed package. Never mind that, I believe this can be fixed somehow.
The problem is that the package is not working. By googling and manually running (as a root)
$ /usr/sbin/nmbd -S -d 1
I got relevant information
mkdir failed on directory /var/log/samba/cores: No such file or directory
Failed to create /var/log/samba/cores for user 0 with mode 0700
Unable to setup corepath for nmbd: No such file or directory
ERROR: Can't log to stdout (-S) unless daemon is in foreground (-F) or interactive (-i)
The /var/log/samba
doesn’t exist. So I created it and tried again, now with -i
and got another relevant info
nmbd version 4.9.5-Debian started.
Copyright Andrew Tridgell and the Samba Team 1992-2018
mkdir failed on directory /var/lib/samba/private/msg.sock: No such file or directory
And again, the folder /var/lib/samba/private
doesn’t exist. At this point I questioned myself whether manually creating this folder is the right direction, as /var/lib might be mounted on some sort of temporary storage.
So basically I have two questions
- Are we (admins) supposed to manually patch installations (of well known, widely used software)?
- What did I do wrong that I am not able to install samba as every other person (I have
Debian GNU/Linux 10 (buster) (4.19.0-8-amd64)
)
-
Crispin
- Posts: 8
- Joined: Thu Oct 18, 2012 11:59 pm
RPi 4 — Samba installed but service won’t start
Hi folks,
I have a RPi4 — 4GB
I can’t get samba working on it which is normally very easy.
Here are some details
- It’s Buster lite
- It’s a fresh, updated install
- All I have installed in OpenJDK 8
- I’ve gone through the install — always followed this guy’s blog
- install is simply sudo apt-get install samba samba-common-bin
- All the above is done logged in as root.
I get the following in while installing
Code: Select all
Setting up libcephfs2:armhf (12.2.11+dfsg1-2.1+rpi1) ...
Setting up libgfapi0:armhf (5.5-3) ...
Setting up samba-common-bin (2:4.9.5+dfsg-5) ...
Checking smb.conf with testparm
Load smb config files from /etc/samba/smb.conf
Error loading services.
dpkg: error processing package samba-common-bin (--configure):
installed samba-common-bin package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of samba:
samba depends on samba-common-bin (= 2:4.9.5+dfsg-5); however:
Package samba-common-bin is not configured yet.
dpkg: error processing package samba (--configure):
dependency problems - leaving unconfigured
Processing triggers for systemd (241-5+rpi1) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.28-10+rpi1) ...
Errors were encountered while processing:
samba-common-bin
samba
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@raspberrypi:~#
After that, I’m stuck
Any help appreciated.
-
fruitoftheloom
- Posts: 27225
- Joined: Tue Mar 25, 2014 12:40 pm
Re: RPi 4 — Samba installed but service won’t start
Sat Jun 29, 2019 5:25 am
Crispin wrote: ↑
Sat Jun 29, 2019 5:16 am
Hi folks,I have a RPi4 — 4GB
I can’t get samba working on it which is normally very easy.
Here are some details
- It’s Buster lite
- It’s a fresh, updated install
- All I have installed in OpenJDK 8
- I’ve gone through the install — always followed this guy’s blog
- install is simply sudo apt-get install samba samba-common-bin
- All the above is done logged in as root.
I get the following in while installing
Code: Select all
Setting up libcephfs2:armhf (12.2.11+dfsg1-2.1+rpi1) ... Setting up libgfapi0:armhf (5.5-3) ... Setting up samba-common-bin (2:4.9.5+dfsg-5) ... Checking smb.conf with testparm Load smb config files from /etc/samba/smb.conf Error loading services. dpkg: error processing package samba-common-bin (--configure): installed samba-common-bin package post-installation script subprocess returned error exit status 1 dpkg: dependency problems prevent configuration of samba: samba depends on samba-common-bin (= 2:4.9.5+dfsg-5); however: Package samba-common-bin is not configured yet. dpkg: error processing package samba (--configure): dependency problems - leaving unconfigured Processing triggers for systemd (241-5+rpi1) ... Processing triggers for man-db (2.8.5-2) ... Processing triggers for libc-bin (2.28-10+rpi1) ... Errors were encountered while processing: samba-common-bin samba E: Sub-process /usr/bin/dpkg returned an error code (1) root@raspberrypi:~#
After that, I’m stuck
Any help appreciated.
OpenJDK8 is not in the Buster repositories, it is OpenJDK11
Code: Select all
sudo apt update
sudo apt full-upgrade
sudo reboot
Code: Select all
sudo apt update
sudo apt install samba-common-bin
Last edited by fruitoftheloom on Sat Jun 29, 2019 5:29 am, edited 3 times in total.
Take what I advise as advice not the utopian holy grail, and it is gratis !!
-
Crispin
- Posts: 8
- Joined: Thu Oct 18, 2012 11:59 pm
Re: RPi 4 — Samba installed but service won’t start
Sat Jun 29, 2019 5:28 am
I’ve done a purge and and reinstall — below is a new error as part of the reinstall
Code: Select all
Do you want to continue? [Y/n] y
Extracting templates from packages: 100%
Preconfiguring packages ...
Selecting previously unselected package python-dnspython.
(Reading database ... 48119 files and directories currently installed.)
Preparing to unpack .../00-python-dnspython_1.16.0-1_all.deb ...
Unpacking python-dnspython (1.16.0-1) ...
Selecting previously unselected package python-crypto.
Preparing to unpack .../01-python-crypto_2.6.1-9+b1_armhf.deb ...
Unpacking python-crypto (2.6.1-9+b1) ...
Selecting previously unselected package libtdb1:armhf.
Preparing to unpack .../02-libtdb1_1.3.16-2+b1_armhf.deb ...
Unpacking libtdb1:armhf (1.3.16-2+b1) ...
Selecting previously unselected package libtevent0:armhf.
Preparing to unpack .../03-libtevent0_0.9.37-1_armhf.deb ...
Unpacking libtevent0:armhf (0.9.37-1) ...
Selecting previously unselected package libldb1:armhf.
Preparing to unpack .../04-libldb1_2%3a1.5.1+really1.4.6-3_armhf.deb ...
Unpacking libldb1:armhf (2:1.5.1+really1.4.6-3) ...
Selecting previously unselected package libpython2.7:armhf.
Preparing to unpack .../05-libpython2.7_2.7.16-2_armhf.deb ...
Unpacking libpython2.7:armhf (2.7.16-2) ...
Selecting previously unselected package python-ldb.
Preparing to unpack .../06-python-ldb_2%3a1.5.1+really1.4.6-3_armhf.deb ...
Unpacking python-ldb (2:1.5.1+really1.4.6-3) ...
Selecting previously unselected package python-tdb.
Preparing to unpack .../07-python-tdb_1.3.16-2+b1_armhf.deb ...
Unpacking python-tdb (1.3.16-2+b1) ...
Selecting previously unselected package libjansson4:armhf.
Preparing to unpack .../08-libjansson4_2.12-1_armhf.deb ...
Unpacking libjansson4:armhf (2.12-1) ...
Selecting previously unselected package python-talloc:armhf.
Preparing to unpack .../09-python-talloc_2.1.14-2_armhf.deb ...
Unpacking python-talloc:armhf (2.1.14-2) ...
Selecting previously unselected package samba-libs:armhf.
Preparing to unpack .../10-samba-libs_2%3a4.9.5+dfsg-5_armhf.deb ...
Unpacking samba-libs:armhf (2:4.9.5+dfsg-5) ...
Selecting previously unselected package python-samba.
Preparing to unpack .../11-python-samba_2%3a4.9.5+dfsg-5_armhf.deb ...
Unpacking python-samba (2:4.9.5+dfsg-5) ...
Selecting previously unselected package samba-common.
Preparing to unpack .../12-samba-common_2%3a4.9.5+dfsg-5_all.deb ...
Unpacking samba-common (2:4.9.5+dfsg-5) ...
Selecting previously unselected package samba-common-bin.
Preparing to unpack .../13-samba-common-bin_2%3a4.9.5+dfsg-5_armhf.deb ...
Unpacking samba-common-bin (2:4.9.5+dfsg-5) ...
Selecting previously unselected package tdb-tools.
Preparing to unpack .../14-tdb-tools_1.3.16-2+b1_armhf.deb ...
Unpacking tdb-tools (1.3.16-2+b1) ...
Selecting previously unselected package samba.
Preparing to unpack .../15-samba_2%3a4.9.5+dfsg-5_armhf.deb ...
Unpacking samba (2:4.9.5+dfsg-5) ...
Selecting previously unselected package attr.
Preparing to unpack .../16-attr_1%3a2.4.48-4_armhf.deb ...
Unpacking attr (1:2.4.48-4) ...
Selecting previously unselected package libibverbs1:armhf.
Preparing to unpack .../17-libibverbs1_22.1-1_armhf.deb ...
Unpacking libibverbs1:armhf (22.1-1) ...
Selecting previously unselected package ibverbs-providers:armhf.
Preparing to unpack .../18-ibverbs-providers_22.1-1_armhf.deb ...
Unpacking ibverbs-providers:armhf (22.1-1) ...
Selecting previously unselected package libboost-atomic1.67.0:armhf.
Preparing to unpack .../19-libboost-atomic1.67.0_1.67.0-13_armhf.deb ...
Unpacking libboost-atomic1.67.0:armhf (1.67.0-13) ...
Selecting previously unselected package libboost-iostreams1.67.0:armhf.
Preparing to unpack .../20-libboost-iostreams1.67.0_1.67.0-13_armhf.deb ...
Unpacking libboost-iostreams1.67.0:armhf (1.67.0-13) ...
Selecting previously unselected package libboost-regex1.67.0:armhf.
Preparing to unpack .../21-libboost-regex1.67.0_1.67.0-13_armhf.deb ...
Unpacking libboost-regex1.67.0:armhf (1.67.0-13) ...
Selecting previously unselected package libboost-system1.67.0:armhf.
Preparing to unpack .../22-libboost-system1.67.0_1.67.0-13_armhf.deb ...
Unpacking libboost-system1.67.0:armhf (1.67.0-13) ...
Selecting previously unselected package libboost-thread1.67.0:armhf.
Preparing to unpack .../23-libboost-thread1.67.0_1.67.0-13_armhf.deb ...
Unpacking libboost-thread1.67.0:armhf (1.67.0-13) ...
Selecting previously unselected package librados2:armhf.
Preparing to unpack .../24-librados2_12.2.11+dfsg1-2.1+rpi1_armhf.deb ...
Unpacking librados2:armhf (12.2.11+dfsg1-2.1+rpi1) ...
Selecting previously unselected package libcephfs2:armhf.
Preparing to unpack .../25-libcephfs2_12.2.11+dfsg1-2.1+rpi1_armhf.deb ...
Unpacking libcephfs2:armhf (12.2.11+dfsg1-2.1+rpi1) ...
Selecting previously unselected package libglusterfs0:armhf.
Preparing to unpack .../26-libglusterfs0_5.5-3_armhf.deb ...
Unpacking libglusterfs0:armhf (5.5-3) ...
Selecting previously unselected package libgfxdr0:armhf.
Preparing to unpack .../27-libgfxdr0_5.5-3_armhf.deb ...
Unpacking libgfxdr0:armhf (5.5-3) ...
Selecting previously unselected package libgfrpc0:armhf.
Preparing to unpack .../28-libgfrpc0_5.5-3_armhf.deb ...
Unpacking libgfrpc0:armhf (5.5-3) ...
Selecting previously unselected package libgfapi0:armhf.
Preparing to unpack .../29-libgfapi0_5.5-3_armhf.deb ...
Unpacking libgfapi0:armhf (5.5-3) ...
Selecting previously unselected package libgpgme11:armhf.
Preparing to unpack .../30-libgpgme11_1.12.0-6_armhf.deb ...
Unpacking libgpgme11:armhf (1.12.0-6) ...
Selecting previously unselected package python-gpg.
Preparing to unpack .../31-python-gpg_1.12.0-6_armhf.deb ...
Unpacking python-gpg (1.12.0-6) ...
Selecting previously unselected package samba-dsdb-modules:armhf.
Preparing to unpack .../32-samba-dsdb-modules_2%3a4.9.5+dfsg-5_armhf.deb ...
Unpacking samba-dsdb-modules:armhf (2:4.9.5+dfsg-5) ...
Selecting previously unselected package samba-vfs-modules:armhf.
Preparing to unpack .../33-samba-vfs-modules_2%3a4.9.5+dfsg-5_armhf.deb ...
Unpacking samba-vfs-modules:armhf (2:4.9.5+dfsg-5) ...
Setting up python-crypto (2.6.1-9+b1) ...
Setting up libibverbs1:armhf (22.1-1) ...
Setting up libpython2.7:armhf (2.7.16-2) ...
Setting up libboost-regex1.67.0:armhf (1.67.0-13) ...
Setting up ibverbs-providers:armhf (22.1-1) ...
Setting up attr (1:2.4.48-4) ...
Setting up libtdb1:armhf (1.3.16-2+b1) ...
Setting up samba-common (2:4.9.5+dfsg-5) ...
Creating config file /etc/samba/smb.conf with new version
Setting up libgpgme11:armhf (1.12.0-6) ...
Setting up libjansson4:armhf (2.12-1) ...
Setting up libglusterfs0:armhf (5.5-3) ...
Setting up libtevent0:armhf (0.9.37-1) ...
Setting up tdb-tools (1.3.16-2+b1) ...
update-alternatives: using /usr/bin/tdbbackup.tdbtools to provide /usr/bin/tdbbackup (tdbbackup) in auto mode
Setting up libboost-iostreams1.67.0:armhf (1.67.0-13) ...
Setting up python-tdb (1.3.16-2+b1) ...
Setting up libboost-atomic1.67.0:armhf (1.67.0-13) ...
Setting up python-dnspython (1.16.0-1) ...
Setting up libboost-system1.67.0:armhf (1.67.0-13) ...
Setting up python-gpg (1.12.0-6) ...
Setting up python-talloc:armhf (2.1.14-2) ...
Setting up libgfxdr0:armhf (5.5-3) ...
Setting up libldb1:armhf (2:1.5.1+really1.4.6-3) ...
Setting up libboost-thread1.67.0:armhf (1.67.0-13) ...
Setting up samba-libs:armhf (2:4.9.5+dfsg-5) ...
Setting up python-ldb (2:1.5.1+really1.4.6-3) ...
Setting up samba-dsdb-modules:armhf (2:4.9.5+dfsg-5) ...
Setting up libgfrpc0:armhf (5.5-3) ...
Setting up librados2:armhf (12.2.11+dfsg1-2.1+rpi1) ...
Setting up python-samba (2:4.9.5+dfsg-5) ...
Setting up samba-vfs-modules:armhf (2:4.9.5+dfsg-5) ...
Setting up libcephfs2:armhf (12.2.11+dfsg1-2.1+rpi1) ...
Setting up libgfapi0:armhf (5.5-3) ...
Setting up samba-common-bin (2:4.9.5+dfsg-5) ...
Checking smb.conf with testparm
Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
Server role: ROLE_STANDALONE
Done
Setting up samba (2:4.9.5+dfsg-5) ...
Samba is not being run as an AD Domain Controller: Masking samba-ad-dc.service
Please ignore the following error about deb-systemd-helper not finding those services.
(samba-ad-dc.service masked)
Created symlink /etc/systemd/system/multi-user.target.wants/nmbd.service → /lib/systemd/system/nmbd.service.
Failed to preset unit: Unit file /etc/systemd/system/samba-ad-dc.service is masked.
/usr/bin/deb-systemd-helper: error: systemctl preset failed on samba-ad-dc.service: No such file or directory
Created symlink /etc/systemd/system/multi-user.target.wants/smbd.service → /lib/systemd/system/smbd.service.
Processing triggers for systemd (241-5+rpi1) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.28-10+rpi1) ...
root@raspberrypi:~#
Also no service installed
Code: Select all
root@raspberrypi:~# service --status-all
[ - ] alsa-utils
[ + ] avahi-daemon
[ + ] bluetooth
[ - ] console-setup.sh
[ + ] cron
[ + ] dbus
[ + ] dhcpcd
[ + ] dphys-swapfile
[ + ] fake-hwclock
[ - ] hwclock.sh
[ - ] keyboard-setup.sh
[ + ] kmod
[ + ] networking
[ - ] nfs-common
[ + ] nmbd
[ + ] openhab2
[ - ] paxctld
[ + ] procps
[ + ] raspi-config
[ ? ] rng-tools
[ - ] rpcbind
[ - ] rsync
[ + ] rsyslog
[ - ] samba-ad-dc
[ + ] smbd
[ + ] ssh
[ - ] sudo
[ + ] triggerhappy
[ + ] udev
[ - ] x11-common
root@raspberrypi:~#
-
Crispin
- Posts: 8
- Joined: Thu Oct 18, 2012 11:59 pm
Re: RPi 4 — Samba installed but service won’t start
Sat Jun 29, 2019 5:34 am
fruitoftheloom wrote: ↑
Sat Jun 29, 2019 5:25 am
OpenJDK8 is not in the Buster repositories, it is OpenJDK11
Code: Select all
sudo apt update sudo apt full-upgrade sudo reboot
Code: Select all
sudo apt update sudo apt install samba-common-bin
Hi,
It’s installed though —
Code: Select all
root@raspberrypi:~# update-alternatives --config java
There is only one alternative in link group java (providing /usr/bin/java): /usr/lib/jvm/java-8-openjdk-armhf/jre/bin/java
Nothing to configure.
Code: Select all
root@raspberrypi:~# java -version
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (build 1.8.0_212-8u212-b01-1+rpi1-b01)
OpenJDK Client VM (build 25.212-b01, mixed mode)
samba common is installed (auto-installed after purge)
Code: Select all
root@raspberrypi:~# apt install samba-common-bin
Reading package lists... Done
Building dependency tree
Reading state information... Done
samba-common-bin is already the newest version (2:4.9.5+dfsg-5).
samba-common-bin set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@raspberrypi:~#
-
fruitoftheloom
- Posts: 27225
- Joined: Tue Mar 25, 2014 12:40 pm
Re: RPi 4 — Samba installed but service won’t start
Sat Jun 29, 2019 5:59 am
i am running a fresh install of Buster fully updated
Code: Select all
java -version
openjdk version "11.0.3" 2019-04-16
OpenJDK Runtime Environment (build 11.0.3+7-post-Raspbian-5)
OpenJDK Server VM (build 11.0.3+7-post-Raspbian-5, mixed mode)
Samba 2:4.9.5+dfsg-5 plus dependencies………
Last edited by fruitoftheloom on Sat Jun 29, 2019 6:08 am, edited 1 time in total.
Take what I advise as advice not the utopian holy grail, and it is gratis !!
-
hortimech
- Posts: 720
- Joined: Wed Apr 08, 2015 5:52 pm
Re: RPi 4 — Samba installed but service won’t start
Sat Jun 29, 2019 7:28 am
You do have Samba installed, you are just mistaking the package name for the service names
Code: Select all
root@raspberrypi:~# service --status-all
.........
[ + ] nmbd
.........
[ + ] smbd
.........
Are they actually running ?
Try restarting ‘smbd’ & ‘nmbd’
As for the ‘blog’ you followed, you might just as well not create a Samba user and use this share:
Code: Select all
[share]
Comment = Pi shared folder
Path = /share
read only = no
create mask = 0777
directory mask = 0777
Guest ok = yes
It will work just like the one in the blog, but with less lines.
You should also check that ‘map to guest = bad user’ is set in [global]
If ‘smbd’ & ‘nmbd’ are running, you should be able to connect to the share, but you will probably have to navigate to it, seeing as SMBv1 is now turned off.
-
Crispin
- Posts: 8
- Joined: Thu Oct 18, 2012 11:59 pm
Re: RPi 4 — Samba installed but service won’t start
Sat Jun 29, 2019 9:24 pm
well, yes and no.
So, it turns out it was working the whole time. I did not bother checking through windows if it is actually sharing them. When I did I face-palmed.
On my RPi3B+ I see the following
Code: Select all
[ + ] raspi-config
[ - ] rpcbind
[ - ] rsync
[ + ] rsyslog
[ + ] samba
[ - ] samba-ad-dc
[ - ] screen-cleanup
[ + ] smbd
[ + ] ssh
[ - ] sudo
[ + ] triggerhappy
[ + ] udev
[ - ] ups-monitor
As you can see there is a service called samba and smdb. On the RPi4 there is only smbd.
I’m sure I am not the only one who is using the previously mentioned tutorial so hopefully this thread will help others.
Glad I am not going mad
Thanks for your help!
Return to “Troubleshooting”