Błędy występują już podczas samej instalacji samby. W katalogu /etc nie mam folderu samba
Usuwanie samby
Kod: Zaznacz cały
root@debian:/home/sanepid# sudo apt-get remove --purge samba
Czytanie list pakietów... Gotowe
Budowanie drzewa zależności
Odczyt informacji o stanie... Gotowe
Następujące pakiety zostały zainstalowane automatycznie i nie są już więcej wymagane:
attr ibverbs-providers libboost-atomic1.67.0 libboost-iostreams1.67.0 libboost-regex1.67.0 libboost-system1.67.0 libboost-thread1.67.0 libcephfs2 libgfapi0
libgfrpc0 libgfxdr0 libglusterfs0 libibverbs1 libnl-3-200 libnl-route-3-200 librados2 libtirpc-common libtirpc3 python-dnspython samba-vfs-modules tdb-tools
Aby je usunąć należy użyć "sudo apt autoremove".
Następujące pakiety zostaną USUNIĘTE:
samba*
0 aktualizowanych, 0 nowo instalowanych, 1 usuwanych i 0 nieaktualizowanych.
1 nie w pełni zainstalowanych lub usuniętych.
Po tej operacji zostanie zwolnione 16,4 MB miejsca na dysku.
Kontynuować? [T/n] t
(Odczytywanie bazy danych ... 57437 plików i katalogów obecnie zainstalowanych.)
Usuwanie pakietu samba (2:4.9.5+dfsg-5+deb10u1) ...
Przetwarzanie wyzwalaczy pakietu man-db (2.8.5-2)...
Przetwarzanie wyzwalaczy pakietu libc-bin (2.28-10)...
(Odczytywanie bazy danych ... 57220 plików i katalogów obecnie zainstalowanych.)
Czyszczenie z plików konfiguracyjnych pakietu samba (2:4.9.5+dfsg-5+deb10u1) ...
dpkg: ostrzeżenie: podczas usuwania pakietu samba, katalog "/var/lib/samba" nie był pusty, więc nie został usunięty
Przetwarzanie wyzwalaczy pakietu systemd (241-7~deb10u4)...
root@debian:/home/sanepid#
Instalacja samby
Kod: Zaznacz cały
root@debian:/home/sanepid# sudo apt-get install samba
Czytanie list pakietów... Gotowe
Budowanie drzewa zależności
Odczyt informacji o stanie... Gotowe
Sugerowane pakiety:
bind9 bind9utils ctdb ldb-tools ntp | chrony smbldap-tools ufw winbind
Zostaną zainstalowane następujące NOWE pakiety:
samba
0 aktualizowanych, 1 nowo instalowanych, 0 usuwanych i 0 nieaktualizowanych.
Konieczne pobranie 0 B/1 082 kB archiwów.
Po tej operacji zostanie dodatkowo użyte 16,4 MB miejsca na dysku.
Wybieranie wcześniej niewybranego pakietu samba.
(Odczytywanie bazy danych ... 57212 plików i katalogów obecnie zainstalowanych.)
Przygotowywanie do rozpakowania pakietu .../samba_2%3a4.9.5+dfsg-5+deb10u1_amd64.deb ...
Rozpakowywanie pakietu samba (2:4.9.5+dfsg-5+deb10u1) ...
Konfigurowanie pakietu 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 Fri 2020-06-26 07:48:11 CEST; 17ms ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Process: 1665 ExecStartPre=/usr/share/samba/update-apparmor-samba-profile (code=exited, status=0/SUCCESS)
Process: 1674 ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS (code=exited, status=1/FAILURE)
Main PID: 1674 (code=exited, status=1/FAILURE)
cze 26 07:48:11 debian systemd[1]: Starting Samba SMB Daemon...
cze 26 07:48:11 debian update-apparmor-samba-profile[1665]: grep: /etc/apparmor.d/samba/smbd-shares: Nie ma takiego pliku ani katalogu
cze 26 07:48:11 debian update-apparmor-samba-profile[1665]: diff: /etc/apparmor.d/samba/smbd-shares: Nie ma takiego pliku ani katalogu
cze 26 07:48:11 debian systemd[1]: smbd.service: Main process exited, code=exited, status=1/FAILURE
cze 26 07:48:11 debian systemd[1]: smbd.service: Failed with result 'exit-code'.
cze 26 07:48:11 debian systemd[1]: Failed to start Samba SMB Daemon.
dpkg: błąd przetwarzania pakietu samba (--configure):
podproces zainstalowany pakiet samba skrypt post-installation zwrócił kod błędu 1
Przetwarzanie wyzwalaczy pakietu systemd (241-7~deb10u4)...
Przetwarzanie wyzwalaczy pakietu man-db (2.8.5-2)...
Przetwarzanie wyzwalaczy pakietu libc-bin (2.28-10)...
Wystąpiły błędy podczas przetwarzania:
samba
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@debian:/home/sanepid#
Logi z sysloga
Kod: Zaznacz cały
Jun 26 07:47:10 debian systemd[1]: Reloading.
Jun 26 07:47:11 debian systemd[1]: getty@tty1.service: Current command vanished from the unit file, execution of the command list won't be resumed.
Jun 26 07:47:11 debian systemd[1]: Reloading.
Jun 26 07:47:11 debian systemd[1]: /lib/systemd/system/nmbd.service:9: PIDFile= references path below legacy directory /var/run/, updating /var/run/samba/nmbd.pid $
Jun 26 07:47:11 debian systemd[1]: /lib/systemd/system/nmbd.service:9: PIDFile= references path below legacy directory /var/run/, updating /var/run/samba/nmbd.pid $
Jun 26 07:47:11 debian systemd[1]: /lib/systemd/system/nmbd.service:9: PIDFile= references path below legacy directory /var/run/, updating /var/run/samba/nmbd.pid $
Jun 26 07:47:11 debian systemd[1]: /lib/systemd/system/nmbd.service:9: PIDFile= references path below legacy directory /var/run/, updating /var/run/samba/nmbd.pid $
Jun 26 07:47:11 debian systemd[1]: Reloading.
Jun 26 07:47:11 debian systemd[1]: /lib/systemd/system/smbd.service:9: PIDFile= references path below legacy directory /var/run/, updating /var/run/samba/smbd.pid $
Jun 26 07:47:11 debian systemd[1]: /lib/systemd/system/nmbd.service:9: PIDFile= references path below legacy directory /var/run/, updating /var/run/samba/nmbd.pid $
Jun 26 07:47:11 debian systemd[1]: /lib/systemd/system/smbd.service:9: PIDFile= references path below legacy directory /var/run/, updating /var/run/samba/smbd.pid $
Jun 26 07:47:11 debian systemd[1]: /lib/systemd/system/nmbd.service:9: PIDFile= references path below legacy directory /var/run/, updating /var/run/samba/nmbd.pid $
Jun 26 07:47:11 debian systemd[1]: /lib/systemd/system/smbd.service:9: PIDFile= references path below legacy directory /var/run/, updating /var/run/samba/smbd.pid $
Jun 26 07:47:12 debian systemd[1]: Reloading.
Jun 26 07:47:14 debian systemd[1]: Reloading.
Jun 26 07:47:14 debian systemd[1]: Reloading.
Jun 26 07:47:15 debian systemd[1]: Reloading.
Jun 26 07:47:15 debian systemd[1]: Reloading.
Jun 26 07:47:16 debian systemd[1]: Reloading.
Jun 26 07:48:10 debian systemd[1]: Reloading.
Jun 26 07:48:10 debian colord[671]: failed to get session [pid 521]: Brak danych
Jun 26 07:48:10 debian systemd[1]: Reloading.
Jun 26 07:48:10 debian systemd[1]: Reloading.
Jun 26 07:48:11 debian systemd[1]: /lib/systemd/system/smbd.service:9: PIDFile= references path below legacy directory /var/run/, updating /var/run/samba/smbd.pid $
Jun 26 07:48:11 debian systemd[1]: /lib/systemd/system/nmbd.service:9: PIDFile= references path below legacy directory /var/run/, updating /var/run/samba/nmbd.pid $
Jun 26 07:48:11 debian systemd[1]: /lib/systemd/system/smbd.service:9: PIDFile= references path below legacy directory /var/run/, updating /var/run/samba/smbd.pid $
Jun 26 07:48:11 debian systemd[1]: /lib/systemd/system/nmbd.service:9: PIDFile= references path below legacy directory /var/run/, updating /var/run/samba/nmbd.pid $
Jun 26 07:48:11 debian systemd[1]: Starting Samba SMB Daemon...
Jun 26 07:48:11 debian update-apparmor-samba-profile[1665]: grep: /etc/apparmor.d/samba/smbd-shares: Nie ma takiego pliku ani katalogu
Jun 26 07:48:11 debian update-apparmor-samba-profile[1665]: diff: /etc/apparmor.d/samba/smbd-shares: Nie ma takiego pliku ani katalogu
Jun 26 07:48:11 debian systemd[1]: smbd.service: Main process exited, code=exited, status=1/FAILURE
Jun 26 07:48:11 debian systemd[1]: smbd.service: Failed with result 'exit-code'.
Jun 26 07:48:11 debian systemd[1]: Failed to start Samba SMB Daemon.
Jun 26 07:48:11 debian systemd[1]: Reloading.
Jun 26 07:48:11 debian systemd[1]: /lib/systemd/system/nmbd.service:9: PIDFile= references path below legacy directory /var/run/, updating /var/run/samba/nmbd.pid $
Jun 26 07:48:11 debian systemd[1]: /lib/systemd/system/smbd.service:9: PIDFile= references path below legacy directory /var/run/, updating /var/run/samba/smbd.pid $
Jun 26 07:48:18 debian colord[671]: failed to get session [pid 521]: Brak danych
Jun 26 07:51:25 debian systemd[1]: Starting Cleanup of Temporary Directories...
Jun 26 07:51:25 debian systemd[1]: systemd-tmpfiles-clean.service: Succeeded.
Jun 26 07:51:25 debian systemd[1]: Started Cleanup of Temporary Directories.