Dpkg ошибка при обработке пакета samba

Доброго времени суток всем.
Я пытался настроить доступ к компьютеру с телефона через wi-fi, но что-то пошло не так. Телефон страшно затупил и несколько раз перезагрузился, а на компе перестал открываться system-config-samba. Я хотел через Muon переустановить пакеты samba и system-config-samba, но он сказал, что есть какие-то ошибки. В подробности он вдаваться не стал. Тогда я попробовал это сделать через терминал и вот результат:

Развернуть/свернуть скрытый текст.

~$ sudo apt-get install samba
Чтение списков пакетов… Готово
Построение дерева зависимостей
Чтение информации о состоянии… Готово
Уже установлен пакет samba самой новой версии (2:4.6.7+dfsg-1ubuntu3.1).
Следующие пакеты устанавливались автоматически и больше не требуются:
evolution-data-server evolution-data-server-common libcamel-1.2-60
libebackend-1.2-10 libebook-1.2-19 libebook-contacts-1.2-2 libecal-1.2-19
libedata-book-1.2-25 libedata-cal-1.2-28 libedataserver-1.2-22
libedataserverui-1.2-1 libgdata-common libgdata22 libgeocode-glib0 libgoa-1.0-0b
libgoa-1.0-common libgweather-3-6 libgweather-common libjavascriptcoregtk-4.0-18
liboauth0 libphonenumber7 libwebkit2gtk-4.0-37 linux-headers-4.13.0-16
linux-headers-4.13.0-16-generic linux-image-4.13.0-16-generic
linux-image-extra-4.13.0-16-generic menu
Для их удаления используйте «sudo apt autoremove».
Обновлено 0 пакетов, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено.
Установлено или удалено не до конца 2 пакетов.
После данной операции, объём занятого дискового пространства возрастёт на 0 B.
Хотите продолжить? [Д/н] д
Настраивается пакет samba (2:4.6.7+dfsg-1ubuntu3.1) …
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
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 «restart» failed.
● smbd.service — Samba SMB Daemon
Loaded: loaded (/lib/systemd/system/smbd.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2017-12-23 22:15:45 +07; 15ms ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Process: 3364 ExecStart=/usr/sbin/smbd $SMBDOPTIONS (code=exited, status=1/FAILURE)
Main PID: 3364 (code=exited, status=1/FAILURE)

дек 23 22:15:45 Alexxa systemd[1]: Starting Samba SMB Daemon…
дек 23 22:15:45 Alexxa systemd[1]: smbd.service: Main process exited, code=exited, status=1/FAILURE
дек 23 22:15:45 Alexxa systemd[1]: Failed to start Samba SMB Daemon.
дек 23 22:15:45 Alexxa systemd[1]: smbd.service: Unit entered failed state.
дек 23 22:15:45 Alexxa systemd[1]: smbd.service: Failed with result ‘exit-code’.
dpkg: ошибка при обработке пакета samba (—configure):
подпроцессОтчёты apport не записаны, так как сообщение об ошибке указывает на повторную ошибку от предыдущего отказа.
установлен сценарий post-installation возвратил код ошибки 1
dpkg: зависимости пакетов не позволяют настроить пакет system-config-samba:
system-config-samba зависит от samba, однако:
Пакет samba пока не настроен.

dpkg: ошибка при обработке пакета system-config-samba (—configure):
проблемы зависимостей — оставляем не настроенным
Обрабатываются триггеры для libc-bin (2.26-0ubuntu2) …
При обработке следующих пакетов произошли ошибки:
samba
system-config-samba
E: Sub-process /usr/bin/dpkg returned an error code (1)

Команда sudo apt-get -f install даёт тот же самый результат.
Эти пакеты удаляются без жалоб и вроде как устанавливаются, apt-get update говорит, что все пакеты имеют последнюю версию, но не настраиваиются, а я пока со всякими конфигурационными файлами не очень разобрался. Подскажите, пожалуйста.

 Всем привет. Пытаюсь настроить сервер на основе 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

  • Печать

Страницы: [1]   Вниз

Тема: Ошибка при удалении Samba  (Прочитано 1943 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн
Seganapa

Всем доброго дня! Неожиданно перестала работать Samba. Решил переустановить. Дошло до того, что при любом действии по установке или удалению Samba возвращается ошибка

«При обработке следующих пакетов произошли ошибки:
 samba
 system-config-samba
E: Sub-process /usr/bin/dpkg returned an error code (1)»

Как это поправить? Гугл не помог… (


Оффлайн
БТР

сюда полный вывод под спойлер

sudo apt-get update
sudo apt-get install -f


Оффлайн
Seganapa


Оффлайн
suslikk

Seganapa, sudo apt-get remove system-config-samba

Нарисуй свой город на openstreetmap.org


Оффлайн
Seganapa

suslikk к сожалению все равно ошибка


Пользователь решил продолжить мысль 27 Октября 2015, 10:28:23:


Перепробовал кучу вариантов. Помогло только

sudo apt-get autoremove samba samba-common
sudo apt-get autoremove system-config-samba

может кому пригодится…

« Последнее редактирование: 27 Октября 2015, 10:28:23 от Seganapa »


  • Печать

Страницы: [1]   Вверх

abmacomber

Posts: 5
Joined: 2015-12-03 01:33

Cannot unmask samba.service

#1

Post

by abmacomber » 2015-12-03 01:45

Hello. I am trying to configure samba for a stripped down file server. I am running debian with command line only. My problem is that I cannot unmask samba.

See below:

root@debian:/home/aaron# service samba status
● samba.service
Loaded: masked (/dev/null)
Active: inactive (dead)

I have tried «sudo systemctl unmask samba.service». I recieve no errors however it does not actually unmask.
I can’t find anything online regarding a service stuck on masked status.

Please help!



abmacomber

Posts: 5
Joined: 2015-12-03 01:33

Re: Cannot unmask samba.service

#3

Post

by abmacomber » 2015-12-03 02:25

I am sure it didnt unmask becuase if I try to start, stop or restart I get this:

root@debian:/home/aaron# service samba restart
Failed to restart samba.service: Unit samba.service is masked.


User avatar

GarryRicketson

Posts: 5647
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Cannot unmask samba.service

#4

Post

by GarryRicketson » 2015-12-03 02:56

Oh, ok, well at least we know, this now, that you have tried running the start command as well. ,.. Odd it is not «unmasking»,..
Not knowing anything about «samba» , and also I am not much of a expert with systemd, sorry, I couldn’t be of more help, .. I do think is one more detail though, that will help, knowing you have tried using the start and restart command, and it confirms it did not «unmask». There are several members here that know a lot more on systemd, etc. Hope fully someone else knows more.



swirler

Posts: 166
Joined: 2013-11-24 11:19

Re: Cannot unmask samba.service

#6

Post

by swirler » 2015-12-03 08:39

I’ll not be of any help here (sorry), but I’ve run into this too: as a test, I masked some service that I didn’t care about, and then when trying to unmask/restart it no command that I know of could do it.

Luckily it was something I didn’t need, I only masked it to test how this worked, but the outcome wasn’t good anyways: that service is still masked.


abmacomber

Posts: 5
Joined: 2015-12-03 01:33

Re: Cannot unmask samba.service

#7

Post

by abmacomber » 2015-12-03 16:34

Head_on_a_Stick wrote:Please post the output of:

e

Here it is:
root@debian:/home/aaron# ls -lR /etc/systemd/system
/etc/systemd/system:
total 28
drwxr-xr-x 2 root root 4096 Dec 1 20:05 getty.target.wants
drwxr-xr-x 2 root root 4096 Dec 1 20:05 halt.target.wants
drwxr-xr-x 2 root root 4096 Dec 1 20:16 multi-user.target.wants
drwxr-xr-x 2 root root 4096 Dec 1 20:07 paths.target.wants
drwxr-xr-x 2 root root 4096 Dec 1 20:05 poweroff.target.wants
drwxr-xr-x 2 root root 4096 Dec 1 20:05 reboot.target.wants
drwxr-xr-x 2 root root 4096 Dec 1 20:07 sockets.target.wants
lrwxrwxrwx 1 root root 31 Dec 1 20:16 sshd.service -> /lib/systemd/system/ssh.service
lrwxrwxrwx 1 root root 35 Dec 1 20:06 syslog.service -> /lib/systemd/system/rsyslog.service

/etc/systemd/system/getty.target.wants:
total 0
lrwxrwxrwx 1 root root 34 Dec 1 20:05 getty@tty1.service -> /lib/systemd/system/getty@.service

/etc/systemd/system/halt.target.wants:
total 0
lrwxrwxrwx 1 root root 40 Dec 1 20:05 hwclock-save.service -> /lib/systemd/system/hwclock-save.service

/etc/systemd/system/multi-user.target.wants:
total 0
lrwxrwxrwx 1 root root 32 Dec 1 20:06 cron.service -> /lib/systemd/system/cron.service
lrwxrwxrwx 1 root root 36 Dec 1 20:05 remote-fs.target -> /lib/systemd/system/remote-fs.target
lrwxrwxrwx 1 root root 35 Dec 1 20:06 rsyslog.service -> /lib/systemd/system/rsyslog.service
lrwxrwxrwx 1 root root 31 Dec 1 20:16 ssh.service -> /lib/systemd/system/ssh.service

/etc/systemd/system/paths.target.wants:
total 0
lrwxrwxrwx 1 root root 30 Dec 1 20:07 acpid.path -> /lib/systemd/system/acpid.path

/etc/systemd/system/poweroff.target.wants:
total 0
lrwxrwxrwx 1 root root 40 Dec 1 20:05 hwclock-save.service -> /lib/systemd/system/hwclock-save.service

/etc/systemd/system/reboot.target.wants:
total 0
lrwxrwxrwx 1 root root 40 Dec 1 20:05 hwclock-save.service -> /lib/systemd/system/hwclock-save.service

/etc/systemd/system/sockets.target.wants:
total 0
lrwxrwxrwx 1 root root 32 Dec 1 20:07 acpid.socket -> /lib/systemd/system/acpid.socket
root@debian:/home/aaron#




User avatar

Head_on_a_Stick

Posts: 13944
Joined: 2014-06-01 17:46
Location: /dev/chair
Has thanked: 53 times
Been thanked: 80 times

Re: Cannot unmask samba.service

#10

Post

by Head_on_a_Stick » 2015-12-03 20:45

I think what has happened here is that at some point you have used:

I have never used samba but it looks like the .service is called smbd.service so you have created a masking symlink in the unit file folder to a non-existent .service.

I think you can just delete the symlink at /lib/systemd/system/samba.service but perhaps you should wait for somebody who actually does use samba.

EDIT: and I don’t have a Debian system until the weekend so I can’t check anything :(

Il semble que la perfection soit atteinte non quand il n’y a plus rien à ajouter, mais quand il n’y a plus rien à retrancher.



User avatar

Head_on_a_Stick

Posts: 13944
Joined: 2014-06-01 17:46
Location: /dev/chair
Has thanked: 53 times
Been thanked: 80 times

Re: Cannot unmask samba.service

#12

Post

by Head_on_a_Stick » 2015-12-04 22:50

Good stuff!

Please add «[SOLVED]» to the start of the thread title (in your first post) to help others with this problem.

Il semble que la perfection soit atteinte non quand il n’y a plus rien à ajouter, mais quand il n’y a plus rien à retrancher.


User avatar

swirly_cloud

Posts: 69
Joined: 2015-07-08 04:56
Location: Where sun shines.

Re: Cannot unmask samba.service

#13

Post

by swirly_cloud » 2015-12-08 20:29

For people going through this topic and looking for further information. It might be worth taking a look at: http://forums.debian.net/viewtopic.php?f=5&t=126076.

I have included a few different links about bug reports and other content.

To sum up, the samba.service unit is supposed to be masked and the smbd.service and nmbd.service units are the ones that should be restarted to reload daemon configuration by restarting the server.


kackland

Posts: 1
Joined: 2018-01-29 20:04

Cannot unmask samba.service

#14

Post

by kackland » 2018-01-29 20:12

None of this had helped me and like others I think this is very frustrating.

After a day I solved this. I hope it works for your to.

The command sudo systemctl start samba-ad-dc.service
gave me the error of Failed to enable unit: Unit file /etc/systemd/system/samba-ad-dc.service is masked.

I solved it by sudo systemctl unmask samba-ad-dc.service

Not unmask samba but the entire command — this allowed me to continue with the install.

I hope it helps someone


neodeb

Posts: 120
Joined: 2007-08-09 02:49

Re: Cannot unmask samba.service

#15

Post

by neodeb » 2018-03-13 15:01

At normal dist-upgrade: First I get errors…

Segmentation fault
dpkg: error processing package python-samba (—configure):
subprocess installed post-installation script returned error exit status 139
Setting up samba-common (2:4.5.12+dfsg-2+deb9u2) …
Setting up libsmbclient:amd64 (2:4.5.12+dfsg-2+deb9u2) …
Setting up smbclient (2:4.5.12+dfsg-2+deb9u2) …
Processing triggers for libc-bin (2.24-11+deb9u3) …
Processing triggers for systemd (232-25+deb9u2) …
Processing triggers for man-db (2.7.6.1-2) …
dpkg: dependency problems prevent configuration of samba:
samba depends on python-samba; however:
Package python-samba is not configured yet.

dpkg: error processing package samba (—configure):
dependency problems — leaving unconfigured
dpkg: dependency problems prevent configuration of samba-common-bin:
samba-common-bin depends on python-samba; however:
Package python-samba is not configured yet.

dpkg: error processing package samba-common-bin (—configure):
dependency problems — leaving unconfigured
dpkg: dependency problems prevent configuration of winbind:
winbind depends on samba-common-bin (= 2:4.5.12+dfsg-2+deb9u2); however:
Package samba-common-bin is not configured yet.

dpkg: error processing package winbind (—configure):
dependency problems — leaving unconfigured
dpkg: dependency problems prevent configuration of libpam-winbind:amd64:
libpam-winbind:amd64 depends on winbind (= 2:4.5.12+dfsg-2+deb9u2); however:
Package winbind is not configured yet.

dpkg: error processing package libpam-winbind:amd64 (—configure):
dependency problems — leaving unconfigured
dpkg: dependency problems prevent configuration of libnss-winbind:amd64:
libnss-winbind:amd64 depends on winbind (= 2:4.5.12+dfsg-2+deb9u2); however:
Package winbind is not configured yet.

dpkg: error processing package libnss-winbind:amd64 (—configure):
dependency problems — leaving unconfigured
Errors were encountered while processing:
python-samba
samba
samba-common-bin
winbind
libpam-winbind:amd64
libnss-winbind:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)

Then I simply try dist-upgrading (stable) again…

Setting up python-samba (2:4.5.12+dfsg-2+deb9u2) …
Setting up samba-common-bin (2:4.5.12+dfsg-2+deb9u2) …
Setting up winbind (2:4.5.12+dfsg-2+deb9u2) …
Setting up libpam-winbind:amd64 (2:4.5.12+dfsg-2+deb9u2) …
Setting up samba (2:4.5.12+dfsg-2+deb9u2) …
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
Setting up libnss-winbind:amd64 (2:4.5.12+dfsg-2+deb9u2) …
Processing triggers for libc-bin (2.24-11+deb9u3) …
W: APT had planned for dpkg to do more than it reported back (15 vs 19).
Affected packages: python-samba:amd64

I note the changed way to:

systemctl status smbd
● smbd.service — Samba SMB Daemon
Loaded: loaded (/lib/systemd/system/smbd.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2018-03-13 11:23:55 EDT; 11min ago
Docs: man:smbd(8)
man:samba(7)
man:smb.conf(5)
Main PID: 4870 (smbd)
Status: «smbd: ready to serve connections…»
Tasks: 4 (limit: 4915)
CGroup: /system.slice/smbd.service
├─4870 /usr/sbin/smbd
├─4871 /usr/sbin/smbd
├─4872 /usr/sbin/smbd
└─4877 /usr/sbin/smbd

Then I tried:

systemctl unmask samba-ad-dc.service

So the 3rd time I upgraded it had nothing to do. As if no problems.
Now I thought I best try:

systemctl mask samba-ad-dc.service

Is umasking and then masking correct?? Should I leave it masked? What happened?

Open is freedom.


Модераторы: Warderer, Модераторы разделов

ka3na4ei

Сообщения: 6
ОС: Debian 8.1

Не устанавливается SAMBA

Добрый день! Помогите пожалуйста разобраться почему не хочет устанавливаться samba?

Перед установкой сделал update и upgrade.

SpoilerSpoiler

sudo apt-get upgrade
Чтение списков пакетов… Готово
Построение дерева зависимостей
Чтение информации о состоянии… Готово
Расчёт обновлений…Готово
обновлено 0, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено.

Spoiler

sudo apt-get install samba
Чтение списков пакетов… Готово
Построение дерева зависимостей
Чтение информации о состоянии… Готово
Будут установлены следующие дополнительные пакеты:
attr libaio1 libhdb9-heimdal libkdc2-heimdal python-dnspython
samba-dsdb-modules samba-vfs-modules tdb-tools
Предлагаемые пакеты:
bind9 bind9utils ctdb ldb-tools ntp smbldap-tools winbind
НОВЫЕ пакеты, которые будут установлены:
attr libaio1 libhdb9-heimdal libkdc2-heimdal python-dnspython samba
samba-dsdb-modules samba-vfs-modules tdb-tools
обновлено 0, установлено 9 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено.
Необходимо скачать 1 945 kБ архивов.
После данной операции, объём занятого дискового пространства возрастёт на 14,6 MB.
Хотите продолжить? [Д/н] д
Получено:1 http://ftp.ru.debian.org/debian/ stable/main libaio1 i386 0.3.110-1 [9 634 B]
Получено:2 http://ftp.ru.debian.org/debian/ stable/main libhdb9-heimdal i386 1.6~rc2+dfsg-9 [91,3 kB]
Получено:3 http://ftp.ru.debian.org/debian/ stable/main python-dnspython all 1.12.0-1 [101 kB]
Получено:4 http://ftp.ru.debian.org/debian/ stable/main samba-dsdb-modules i386 2:4.1.17+dfsg-2 [315 kB]
Получено:5 http://ftp.ru.debian.org/debian/ stable/main tdb-tools i386 1.3.1-1 [25,8 kB]
Получено:6 http://ftp.ru.debian.org/debian/ stable/main libkdc2-heimdal i386 1.6~rc2+dfsg-9 [82,3 kB]
Получено:7 http://ftp.ru.debian.org/debian/ stable/main samba i386 2:4.1.17+dfsg-2 [970 kB]
Получено:8 http://ftp.ru.debian.org/debian/ stable/main attr i386 1:2.4.47-2 [43,2 kB]
Получено:9 http://ftp.ru.debian.org/debian/ stable/main samba-vfs-modules i386 2:4.1.17+dfsg-2 [307 kB]
Получено 1 945 kБ за 5с (361 kБ/c)
Выбор ранее не выбранного пакета libaio1:i386.
(Чтение базы данных … на данный момент установлено 152952 файла и каталога.)
Подготовка к распаковке …/libaio1_0.3.110-1_i386.deb …
Распаковывается libaio1:i386 (0.3.110-1) …
Выбор ранее не выбранного пакета libhdb9-heimdal:i386.
Подготовка к распаковке …/libhdb9-heimdal_1.6~rc2+dfsg-9_i386.deb …
Распаковывается libhdb9-heimdal:i386 (1.6~rc2+dfsg-9) …
Выбор ранее не выбранного пакета python-dnspython.
Подготовка к распаковке …/python-dnspython_1.12.0-1_all.deb …
Распаковывается python-dnspython (1.12.0-1) …
Выбор ранее не выбранного пакета samba-dsdb-modules.
Подготовка к распаковке …/samba-dsdb-modules_2%3a4.1.17+dfsg-2_i386.deb …
Распаковывается samba-dsdb-modules (2:4.1.17+dfsg-2) …
Выбор ранее не выбранного пакета tdb-tools.
Подготовка к распаковке …/tdb-tools_1.3.1-1_i386.deb …
Распаковывается tdb-tools (1.3.1-1) …
Выбор ранее не выбранного пакета libkdc2-heimdal:i386.
Подготовка к распаковке …/libkdc2-heimdal_1.6~rc2+dfsg-9_i386.deb …
Распаковывается libkdc2-heimdal:i386 (1.6~rc2+dfsg-9) …
Выбор ранее не выбранного пакета samba.
Подготовка к распаковке …/samba_2%3a4.1.17+dfsg-2_i386.deb …
Распаковывается samba (2:4.1.17+dfsg-2) …
Выбор ранее не выбранного пакета attr.
Подготовка к распаковке …/attr_1%3a2.4.47-2_i386.deb …
Распаковывается attr (1:2.4.47-2) …
Выбор ранее не выбранного пакета samba-vfs-modules.
Подготовка к распаковке …/samba-vfs-modules_2%3a4.1.17+dfsg-2_i386.deb …
Распаковывается samba-vfs-modules (2:4.1.17+dfsg-2) …
Обрабатываются триггеры для man-db (2.7.0.2-5) …
Обрабатываются триггеры для systemd (215-17+deb8u1) …
Настраивается пакет libaio1:i386 (0.3.110-1) …
Настраивается пакет libhdb9-heimdal:i386 (1.6~rc2+dfsg-9) …
Настраивается пакет python-dnspython (1.12.0-1) …
Настраивается пакет samba-dsdb-modules (2:4.1.17+dfsg-2) …
Настраивается пакет tdb-tools (1.3.1-1) …
update-alternatives: используется /usr/bin/tdbbackup.tdbtools для предоставления /usr/bin/tdbbackup (tdbbackup) в автоматическом режиме
Настраивается пакет libkdc2-heimdal:i386 (1.6~rc2+dfsg-9) …
Настраивается пакет samba (2:4.1.17+dfsg-2) …
Job for smbd.service failed. See ‘systemctl status smbd.service’ and ‘journalctl -xn’ for details.
invoke-rc.d: initscript smbd, action «start» failed.
dpkg: ошибка при обработке пакета samba (—configure):
подпроцесс установлен сценарий post-installation возвратил код ошибки 1
Настраивается пакет attr (1:2.4.47-2) …
Настраивается пакет samba-vfs-modules (2:4.1.17+dfsg-2) …
Обрабатываются триггеры для libc-bin (2.19-18) …
При обработке следующих пакетов произошли ошибки:
samba
E: Sub-process /usr/bin/dpkg returned an error code (1)

Аватара пользователя

Bizdelnick

Модератор
Сообщения: 20347
Статус: nulla salus bello
ОС: Debian GNU/Linux

Re: Не устанавливается SAMBA

Сообщение

Bizdelnick » 24.08.2015 15:03

ka3na4ei писал(а): ↑

24.08.2015 14:35

Job for smbd.service failed. See ‘systemctl status smbd.service’ and ‘journalctl -xn’ for details.

Пишите правильно:

в консоли
вку́пе (с чем-либо)
в общем
вообще
в течение (часа)
новичок
нюанс
по умолчанию
приемлемо
проблема
пробовать
трафик

ka3na4ei

Сообщения: 6
ОС: Debian 8.1

Re: Не устанавливается SAMBA

Сообщение

ka3na4ei » 24.08.2015 19:28

Bizdelnick писал(а): ↑

24.08.2015 15:03

ka3na4ei писал(а): ↑

24.08.2015 14:35

Job for smbd.service failed. See ‘systemctl status smbd.service’ and ‘journalctl -xn’ for details.

Это все здорово) Но я первый день на Debian, поэтому как то тяжело понять что он от меня хочет)

Аватара пользователя

Bizdelnick

Модератор
Сообщения: 20347
Статус: nulla salus bello
ОС: Debian GNU/Linux

Re: Не устанавливается SAMBA

Сообщение

Bizdelnick » 24.08.2015 19:50

Он говорит, что надо посмотреть, что скажут команды systemctl status smbd.service и journalctl -xn, там будет больше информации.

ka3na4ei писал(а): ↑

24.08.2015 19:28

я первый день на Debian

И уже успели столько левых репозиториев наподключать? С таким подходом в этой проблеме нет ничего удивительного.

Пишите правильно:

в консоли
вку́пе (с чем-либо)
в общем
вообще
в течение (часа)
новичок
нюанс
по умолчанию
приемлемо
проблема
пробовать
трафик

ka3na4ei

Сообщения: 6
ОС: Debian 8.1

Re: Не устанавливается SAMBA

Сообщение

ka3na4ei » 25.08.2015 08:00

Bizdelnick писал(а): ↑

24.08.2015 19:50

Он говорит, что надо посмотреть, что скажут команды systemctl status smbd.service и journalctl -xn, там будет больше информации.

ka3na4ei писал(а): ↑

24.08.2015 19:28

я первый день на Debian

И уже успели столько левых репозиториев наподключать? С таким подходом в этой проблеме нет ничего удивительного.

# systemctl status smbd.service
● smbd.service — LSB: start Samba SMB/CIFS daemon (smbd)
Loaded: loaded (/etc/init.d/smbd)
Active: failed (Result: exit-code) since Пн 2015-08-24 14:12:18 MSK; 17h ago
Process: 4290 ExecStart=/etc/init.d/smbd start (code=exited, status=1/FAILURE)

авг 24 14:12:18 Kazamorov-AS smbd[4290]: Unable to open new log file ‘/va…ога
авг 24 14:12:18 Kazamorov-AS smbd[4290]: [2015/08/24 14:12:18, 0] ../sou…)
авг 24 14:12:18 Kazamorov-AS smbd[4290]: smbd version 4.1.17-Debian started.
авг 24 14:12:18 Kazamorov-AS smbd[4290]: Copyright Andrew Tridgell and th…3
авг 24 14:12:18 Kazamorov-AS smbd[4290]: [2015/08/24 14:12:18, 0] ../sou…)
авг 24 14:12:18 Kazamorov-AS smbd[4290]: error opening config file ‘/etc/…’
авг 24 14:12:18 Kazamorov-AS smbd[4290]: failed!
авг 24 14:12:18 Kazamorov-AS systemd[1]: smbd.service: control process ex…1
авг 24 14:12:18 Kazamorov-AS systemd[1]: Failed to start LSB: start Samba….
авг 24 14:12:18 Kazamorov-AS systemd[1]: Unit smbd.service entered failed….
Hint: Some lines were ellipsized, use -l to show in full.

# journalctl -xn
— Logs begin at Пн 2015-08-24 13:57:32 MSK, end at Вт 2015-08-25 07:59:13 MSK.
авг 25 07:59:04 Kazamorov-AS gnome-session[962]: (gnome-shell:1098): mutter-WARN
авг 25 07:59:04 Kazamorov-AS gnome-session[962]: (gnome-shell:1098): mutter-WARN
авг 25 07:59:04 Kazamorov-AS gnome-session[962]: (gnome-shell:1098): mutter-WARN
авг 25 07:59:06 Kazamorov-AS gnome-session[962]: (gnome-shell:1098): mutter-WARN
авг 25 07:59:06 Kazamorov-AS gnome-session[962]: (gnome-shell:1098): mutter-WARN
авг 25 07:59:12 Kazamorov-AS su[5834]: Successful su for root by kazamorov
авг 25 07:59:12 Kazamorov-AS su[5834]: + /dev/pts/0 kazamorov:root
авг 25 07:59:12 Kazamorov-AS su[5834]: pam_unix(su:session): session opened for
авг 25 07:59:13 Kazamorov-AS gnome-session[962]: (gnome-shell:1098): mutter-WARN
авг 25 07:59:13 Kazamorov-AS gnome-session[962]: (gnome-shell:1098): mutter-WARN
lines 1-11/11 (END)

ka3na4ei

Сообщения: 6
ОС: Debian 8.1

Re: Не устанавливается SAMBA

Сообщение

ka3na4ei » 25.08.2015 14:26

Rootlexx

# systemctl -l status smbd
● smbd.service — LSB: start Samba SMB/CIFS daemon (smbd)
Loaded: loaded (/etc/init.d/smbd)
Active: failed (Result: exit-code) since Вт 2015-08-25 08:55:22 MSK; 5h 29min ago

авг 25 08:55:22 Kazamorov-AS smbd[719]: Unable to open new log file ‘/var/log/samba/log.smbd’: Нет такого файла или каталога
авг 25 08:55:22 Kazamorov-AS smbd[719]: [2015/08/25 08:55:22, 0] ../source3/smbd/server.c:1189(main)
авг 25 08:55:22 Kazamorov-AS smbd[719]: smbd version 4.1.17-Debian started.
авг 25 08:55:22 Kazamorov-AS smbd[719]: Copyright Andrew Tridgell and the Samba Team 1992-2013
авг 25 08:55:22 Kazamorov-AS smbd[719]: [2015/08/25 08:55:22, 0] ../source3/smbd/server.c:1204(main)
авг 25 08:55:22 Kazamorov-AS smbd[719]: error opening config file ‘/etc/samba/smb.conf’
авг 25 08:55:22 Kazamorov-AS smbd[719]: failed!
авг 25 08:55:22 Kazamorov-AS systemd[1]: smbd.service: control process exited, code=exited status=1
авг 25 08:55:22 Kazamorov-AS systemd[1]: Failed to start LSB: start Samba SMB/CIFS daemon (smbd).
авг 25 08:55:22 Kazamorov-AS systemd[1]: Unit smbd.service entered failed state.

Аватара пользователя

Bizdelnick

Модератор
Сообщения: 20347
Статус: nulla salus bello
ОС: Debian GNU/Linux

Re: Не устанавливается SAMBA

Сообщение

Bizdelnick » 25.08.2015 14:36

ka3na4ei писал(а): ↑

25.08.2015 14:26

error opening config file ‘/etc/samba/smb.conf’

Файл существует? Покажите ls -l /etc/samba/smb.conf

Пишите правильно:

в консоли
вку́пе (с чем-либо)
в общем
вообще
в течение (часа)
новичок
нюанс
по умолчанию
приемлемо
проблема
пробовать
трафик

Аватара пользователя

Rootlexx

Бывший модератор
Сообщения: 4443
Статус: GNU generation
ОС: Debian GNU/Linux

Re: Не устанавливается SAMBA

Сообщение

Rootlexx » 25.08.2015 15:38

Ну и чего вы ожидали? Снесли конфигурационные файлы samba — ничего удивительного, что она не запускается.
Конфигурационный файл создаётся пакетом samba-common — не вижу у вас попытки его установки в приведённом вами выводе. Значит, он уже стоит. Есть два варианта:
1. Снести пакет samba-common подчистую: # apt-get purge samba-common, после чего установить samba заново.
2. Скопировать в /etc/samba/ smb.conf из /usr/share/samba/.
(Вероятно, для выполнения 1. понадобится сначала выполнить 2., после чего — # dpkg -a —configure.)

I have Ubuntu 16.04. I installed many packages from default repositories by apt-get but I have been getting this dpkg error since yesterday night. I am new to Linux so I don’t know much.

I am getting this on sudo apt install <package_name>:

$ sudo apt install python-gnuplot 
Reading package lists... Done
Building dependency tree        
Reading state information... Done
The following additional packages will be installed:
  libblas-common libblas3 libgfortran3 liblapack3 python-numpy
Suggested packages:
  gfortran python-dev python-nose python-numpy-dbg python-numpy-doc
The following NEW packages will be installed:
  libblas-common libblas3 libgfortran3 liblapack3 python-gnuplot python-numpy
0 upgraded, 6 newly installed, 0 to remove and 237 not upgraded.
1 not fully installed or removed.
Need to get 4,192 kB/9,365 kB of archives.
After this operation, 18.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 libblas-common amd64 3.6.0-2ubuntu2 [5,342 B]
Get:2 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 libblas3 amd64 3.6.0-2ubuntu2 [147 kB]
Get:3 http://in.archive.ubuntu.com/ubuntu xenial-updates/main amd64 libgfortran3 amd64 5.3.1-14ubuntu2.1 [260 kB]
Get:4 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 liblapack3 amd64 3.6.0-2ubuntu2 [1,938 kB]
Get:5 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 python-numpy amd64 1:1.11.0-1ubuntu1 [1,763 kB]                                   
Get:6 http://in.archive.ubuntu.com/ubuntu xenial/universe amd64 python-gnuplot all 1.8-6 [79.1 kB]                                            
Fetched 4,192 kB in 20s(202kB/s)                                                                                                            
Selecting previously unselected package libblas-common.
 (Reading database ... 186488 files and directories currently installed.)
 Preparing to unpack .../libblas-common_3.6.0-2ubuntu2_amd64.deb ...
Unpacking libblas-common (3.6.0-2ubuntu2) ...
Selecting previously unselected package libblas3.
Preparing to unpack .../libblas3_3.6.0-2ubuntu2_amd64.deb ...
Unpacking libblas3 (3.6.0-2ubuntu2) ...
Selecting previously unselected package libgfortran3:amd64.
Preparing to unpack .../libgfortran3_5.3.1-14ubuntu2.1_amd64.deb ...
Unpacking libgfortran3:amd64 (5.3.1-14ubuntu2.1) ...
Selecting previously unselected package liblapack3.
Preparing to unpack .../liblapack3_3.6.0-2ubuntu2_amd64.deb ...
Unpacking liblapack3 (3.6.0-2ubuntu2) ...
Selecting previously unselected package python-numpy.
Preparing to unpack .../python-numpy_1%3a1.11.0-1ubuntu1_amd64.deb ...
Unpacking python-numpy (1:1.11.0-1ubuntu1) ...
Selecting previously unselected package python-gnuplot.
Preparing to unpack .../python-gnuplot_1.8-6_all.deb ...
Unpacking python-gnuplot (1.8-6) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for doc-base (0.10.7) ...
Processing 1 added doc-base file...
dpkg: error processing package samba-libs:amd64 (--configure):
 package samba-libs:amd64 is not ready for configuration
 cannot configure (current status 'half-installed')
Setting up libblas-common (3.6.0-2ubuntu2) ...
Setting up libblas3 (3.6.0-2ubuntu2) ...
update-alternatives: using /usr/lib/libblas/libblas.so.3 to provide /usr/lib/libblas.so.3 (libblas.so.3) in auto mode
Setting up libgfortran3:amd64 (5.3.1-14ubuntu2.1) ...
Setting up liblapack3 (3.6.0-2ubuntu2) ...
update-alternatives: using /usr/lib/lapack/liblapack.so.3 to provide /usr/lib/liblapack.so.3 (liblapack.so.3) in auto mode
Setting up python-numpy (1:1.11.0-1ubuntu1) ...
Setting up python-gnuplot (1.8-6) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Errors were encountered while processing:
samba-libs:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)

 Всем привет. Пытаюсь настроить сервер на основе 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

Содержание

  1. 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
  2. Bug Description
  3. Linux Mint Forums
  4. Samba will not install on Mint 20 Ulyana
  5. Samba will not install on Mint 20 Ulyana
  6. Re: Samba will not install on Mint 20 Ulyana
  7. Re: Samba will not install on Mint 20 Ulyana
  8. Re: Samba will not install on Mint 20 Ulyana
  9. Re: Samba will not install on Mint 20 Ulyana
  10. Installed samba common bin package post installation script subprocess returned error exit status 1
  11. Re: RPi 4 — Samba installed but service won’t start
  12. Re: RPi 4 — Samba installed but service won’t start
  13. Re: RPi 4 — Samba installed but service won’t start
  14. Re: RPi 4 — Samba installed but service won’t start
  15. Re: RPi 4 — Samba installed but service won’t start
  16. Re: RPi 4 — Samba installed but service won’t start
  17. Re: RPi 4 — Samba installed but service won’t start
  18. Re: RPi 4 — Samba installed but service won’t start
  19. 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.

Источник

Добрейшего всем дня или ночи! Завёл 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)

  • Home
  • Forum
  • The Ubuntu Forum Community
  • Ubuntu Official Flavours Support
  • Installation & Upgrades
  • dpkg: error processing package samba-common (—configure):

  1. Unhappy dpkg: error processing package samba-common (—configure):

    Ubuntu 16.04 LTS (Xenial)

    4.10.0-36-generic

    when i type

    Code:

    sudo apt-get install -f

    i get this output :

    Code:

    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    7 not fully installed or removed.
    After this operation, 0 B of additional disk space will be used.
    Setting up samba-common (2:4.3.11+dfsg-0ubuntu0.16.04.11) ...
    dpkg: error processing package samba-common (--configure):
     subprocess installed post-installation script returned error exit status 10
    dpkg: dependency problems prevent configuration of samba-common-bin:
     samba-common-bin depends on samba-common (= 2:4.3.11+dfsg-0ubuntu0.16.04.11); however:
      Package samba-common is not configured yet.
    
    dpkg: error processing package samba-common-bin (--configure):
     dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of samba:
     samba depends on samba-common (= 2:4.3.11+dfsg-0ubuntu0.16.04.11); however:
      Package samba-common is not configured yet.
     samba depends on samba-common-bin (= 2:4.3.11+dfsg-0ubuntu0.16.04.11); however:
      Package samba-common-bin is not configured yet.
    
    dpkg: error processing package samba (--configure):
     dependency problems - leaving unconfigured
    Setting up unattended-upgrades (0.90ubuntu0.8) ...
    No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                              No apport report written because the error message indicates its a followup error from a previous failure.
                                                                         dpkg: error processing package unattended-upgrades (--configure):
     subprocess installed post-installation script returned error exit status 10
    No apport report written because MaxReports is reached already
                                                                  dpkg: dependency problems prevent configuration of winbind:
     winbind depends on samba (= 2:4.3.11+dfsg-0ubuntu0.16.04.11); however:
      Package samba is not configured yet.
    
    dpkg: error processing package winbind (--configure):
     dependency problems - leaving unconfigured
    No apport report written because MaxReports is reached already
                                                                  Setting up grub-pc (2.02~beta2-36ubuntu3.13) ...
    dpkg: error processing package grub-pc (--configure):
     subprocess installed post-installation script returned error exit status 10
    No apport report written because MaxReports is reached already
                                                                  dpkg: dependency problems prevent configuration of grub-gfxpayload-lists:
     grub-gfxpayload-lists depends on grub-pc (>= 1.99~20101210-1ubuntu2); however:
      Package grub-pc is not configured yet.
    
    dpkg: error processing package grub-gfxpayload-lists (--configure):
     dependency problems - leaving unconfigured
    No apport report written because MaxReports is reached already
                                                                  Errors were encountered while processing:
     samba-common
     samba-common-bin
     samba
     unattended-upgrades
     winbind
     grub-pc
     grub-gfxpayload-lists
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    and then when i try to remove one of them (samba-common) with the command

    Code:

    sudo apt-get remove samba-common

    i get this another output (because it’s too long output) :

    https://paste.ubuntu.com/25596136/

    and i have no idea how to fix this problem.

    Last edited by someoe; September 23rd, 2017 at 03:18 AM.

    Reason: add more info


  2. Re: dpkg: error processing package samba-common (—configure):

    Looks like your dpkg database has been completely deleted.
    If so, that’s mighty bad. It means that the system can no longer install or remove packages.

    Do you want to solve the problem and learn a bit?
    Or do you simply want the fastest answer to a working system?


  3. Re: dpkg: error processing package samba-common (—configure):

    Have you been doing anything in /var/lib/dpkg/info/ that might have removed the thousands of files that normally sit in that folder?


  4. Re: dpkg: error processing package samba-common (—configure):

    i found in my /var/lib/dpkg/info 1,232 items but he missing packages from the output is 1852.

    and if i have been messing around with the system files i will tel you yes i did it :

    i wanted to remove Java because i had installed Java in my system and for some reason i have moved to root nautilus and removed all the files with the name java amnd accidentally removed another file and i didn’t realize what i had done except after deleting the file, and you know that root nautilus removes the files without undo.

    and this all happend after mounting and updating and fix missing packages from a live cd because my Ubuntu was in login loop and i fixed it by booting into a live cd and mounting my files then download the missing packages and update and upgrade

    i there anyway to check if Ubuntu system files or configuration files is missing and try to restore them?


  5. Smile Re: dpkg: error processing package samba-common (—configure):

    my xsession-errors :

    Code:

    openConnection: connect: No such file or directory
    cannot connect to brltty at :0
    upstart: unity-gtk-module main process (1273) terminated with status 71

    my xsession-errors.old :

    Code:

    openConnection: connect: No such file or directory
    cannot connect to brltty at :0
    upstart: unity-gtk-module main process (3827) terminated with status 71
    upstart: update-notifier-crash (/var/crash/unattended-upgrades.0.crash) main process (11728) terminated with status 1
    upstart: bamfdaemon main process (3988) killed by TERM signal
    upstart: indicator-bluetooth main process (4084) killed by TERM signal
    upstart: indicator-power main process (4087) killed by TERM signal
    upstart: indicator-datetime main process (4088) killed by TERM signal
    upstart: indicator-printers main process (4095) killed by TERM signal
    upstart: indicator-session main process (4096) killed by TERM signal
    upstart: indicator-application main process (4146) killed by TERM signal
    upstart: indicator-application pre-stop process (17098) killed by TERM signal
    upstart: gnome-session (Unity) pre-stop process (17099) killed by TERM signal
    upstart: window-stack-bridge main process (3854) killed by HUP signal
    upstart: hud main process (4017) killed by HUP signal
    upstart: unity-settings-daemon main process (4019) killed by HUP signal
    upstart: gnome-session (Unity) main process (4026) killed by HUP signal
    upstart: unity-panel-service main process (4032) killed by HUP signal
    upstart: indicator-messages main process (4080) killed by HUP signal
    upstart: indicator-keyboard main process (4091) killed by HUP signal
    upstart: indicator-sound main process (4092) killed by HUP signal
    upstart: gpg-agent post-stop process (17100) killed by HUP signal
    upstart: job gnome-session (Unity) failed to stop
    upstart: Disconnected from notified D-Bus bus

    my history.log (i don’t know where is the old history this is what i found):
    https://paste.ubuntu.com/25599366/


  6. Re: dpkg: error processing package samba-common (—configure):

    news :

    «program problem detected» when i report the problem i get this massege «It seems you have modified the contents of «/etc/apt/apt.conf.d/10periodic». Would you like to add the contents of it to your bug report?» and there’s (no) and (yes) options, and i have selected (yes)


  7. Re: dpkg: error processing package samba-common (—configure):

    Quote Originally Posted by someoe
    View Post

    i there anyway to check if Ubuntu system files or configuration files is missing and try to restore them?

    No, because those files come from packages. dpkg maintains the list of those system files in a database…that is now incomplete.

    More importantly, ‘missing system files’ does not seem to be the underlying problem. The partially-deleted dpkg database seems to be the essential problem.

    One solution is to back up your data and reinstall.
    Another solution is to determine the list of packages with missing dpkg database entries, and use apt to reinstall those packages.


  8. Exclamation Re: dpkg: error processing package samba-common (—configure):

    i had tried to remove Java and install it again and that’s what happend :

    1- removed it with

    Code:

    sudo apt-get remove java-commom

    and 2- tried to install with it synaptic with the package (default-jre) and i got this error message :

    Code:

    E: java-common: subprocess installed post-installation script returned error exit status 1
    E: openjdk-8-jre-headless: 60.9756:dependency problems - leaving unconfigured
    E: default-jre-headless: dependency problems - leaving unconfigured
    E: openjdk-8-jre: 65.8537:dependency problems - leaving unconfigured
    E: default-jre: dependency problems - leaving unconfigured
    E: ca-certificates-java: dependency problems - leaving unconfigured

    and then i checked it and i found that the package is installed …. but it doesn’t work like other package and from this error i can’t install any package without error message like the one above.


  9. Re: dpkg: error processing package samba-common (—configure):

    That’s expected behavior. You have a broken apt.


  10. Re: dpkg: error processing package samba-common (—configure):

    i have followed all answer in this question and and i got the same : https://askubuntu.com/questions/1187…-how-to-fix-it

    is there any GOOD fix or i have reinstall Ubuntu


Tags for this Thread

Bookmarks

Bookmarks


Posting Permissions

Откройте терминал и выполните следующую команду:

testparm -s

Вы получаете следующую ошибку:

WARNING: Ignoring invalid value 'share' for parameter 'security'
Error loading services.

Если вы редактируете /etc/samba/smb.conf, найдите строку «security = share» и удалите ее. Затем перезапустите systemctl статус smbd.service.

Это может быть другой параметр, который является виновником, но это наиболее распространенный. Во всех случаях testparm должен дать вам подсказку на параметр-нарушитель и завершиться ошибкой «Ошибка загрузки служб».

РЕДАКТИРОВАТЬ: Если у вас нет smb.conf в / etc / samba, но есть в / usr / share / samba, скопируйте его в стандартное расположение:

sudo cp /usr/share/samba/smb.conf /etc/samba

Запустите «testparm -s» еще раз, чтобы убедиться, что он счастлив.

Понравилась статья? Поделить с друзьями:
  • Dr web код ошибки 1073740940
  • Dp0 ошибка df226
  • Dpkg ошибка при обработке пакета install info
  • Dr web код ошибки 100 при обновлении
  • Dp0 ошибка df049