package samba 2:4.6.7+dfsg-1ubuntu3.1 failed to install/upgrade: el subproceso instalado el script post-installation devolvió el código de salida de error 1

Bug #1734359 reported by victor saiz ayala
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

The error has been a few seconds after the boot of the pc.

ProblemType: Package
DistroRelease: Ubuntu 17.10
Package: samba 2:4.6.7+dfsg-1ubuntu3.1
ProcVersionSignature: Ubuntu 4.13.0-17.20-generic 4.13.8
Uname: Linux 4.13.0-17-generic x86_64
NonfreeKernelModules: nvidia_uvm nvidia
ApportVersion: 2.20.7-0ubuntu3.5
Architecture: amd64
CIFSMounts:

Date: Thu Nov 23 18:57:02 2017
ErrorMessage: el subproceso instalado el script post-installation devolvió el código de salida de error 1
Python3Details: /usr/bin/python3.6, Python 3.6.3, python3-minimal, 3.6.3-0ubuntu2
PythonDetails: /usr/bin/python2.7, Python 2.7.14, python-minimal, 2.7.14-2ubuntu1
RelatedPackageVersions:
 dpkg 1.18.24ubuntu1
 apt 1.5.1
SambaClientRegression: No
SourcePackage: samba
Title: package samba 2:4.6.7+dfsg-1ubuntu3.1 failed to install/upgrade: el subproceso instalado el script post-installation devolvió el código de salida de error 1
UpgradeStatus: Upgraded to artful on 2017-10-31 (23 days ago)

Revision history for this message
victor saiz ayala (victorsaiz) wrote :
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Thanks for filing this bug in Ubuntu.

Could you please attach the following files:
- /etc/samba/smb.conf
- /var/log/samba/log* (all files in that directory that start with "log")

Thanks

Changed in samba (Ubuntu):
status: New → Incomplete
Revision history for this message
victor saiz ayala (victorsaiz) wrote : Re: [Bug 1734359] Re: package samba 2:4.6.7+dfsg-1ubuntu3.1 failed to install/upgrade: el subproceso instalado el script post-installation devolvió el código de salida de error 1

here you have the files

drwx------ 4 4096 nov 8 21:16 cores/
-rw-r--r-- 1 368 nov 8 21:24 log.
-rw-r--r-- 1 538 nov 14 21:04 log.127.0.0.1
-rw-r--r-- 1 0 nov 8 21:19 log.192.168.0.39
-rw-r--r-- 1 0 nov 8 21:18 log.192.168.0.41
-rw-r--r-- 1 0 nov 14 20:43 log.nmbd
-rw-r--r-- 1 5581 nov 14 20:38 log.nmbd.1
-rw-r--r-- 1 0 nov 14 20:43 log.smbd
-rw-r--r-- 1 924 nov 14 20:39 log.smbd.1
-rw-r--r-- 1 552 nov 8 21:24 log.vsa-easynote-sb65
-rw-r--r-- 1 368 nov 8 21:27 log.vs-hp-pavilion-dv6000-rt130ea-abe
-rw-r--r-- 1 55971 nov 26 21:23 samba.log
ls: no se puede abrir el directorio './cores': Permiso denegado

2017-11-24 18:22 GMT+01:00 Andreas Hasenack <email address hidden>:

> Thanks for filing this bug in Ubuntu.
>
> Could you please attach the following files:
> - /etc/samba/smb.conf
> - /var/log/samba/log* (all files in that directory that start with "log")
>
> Thanks
>
>
> ** Changed in: samba (Ubuntu)
> Status: New => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1734359
>
> Title:
> package samba 2:4.6.7+dfsg-1ubuntu3.1 failed to install/upgrade: el
> subproceso instalado el script post-installation devolvió el código de
> salida de error 1
>
> Status in samba package in Ubuntu:
> Incomplete
>
> Bug description:
> The error has been a few seconds after the boot of the pc.
>
> ProblemType: Package
> DistroRelease: Ubuntu 17.10
> Package: samba 2:4.6.7+dfsg-1ubuntu3.1
> ProcVersionSignature: Ubuntu 4.13.0-17.20-generic 4.13.8
> Uname: Linux 4.13.0-17-generic x86_64
> NonfreeKernelModules: nvidia_uvm nvidia
> ApportVersion: 2.20.7-0ubuntu3.5
> Architecture: amd64
> CIFSMounts:
>
> Date: Thu Nov 23 18:57:02 2017
> ErrorMessage: el subproceso instalado el script post-installation
> devolvió el código de salida de error 1
> Python3Details: /usr/bin/python3.6, Python 3.6.3, python3-minimal,
> 3.6.3-0ubuntu2
> PythonDetails: /usr/bin/python2.7, Python 2.7.14, python-minimal,
> 2.7.14-2ubuntu1
> RelatedPackageVersions:
> dpkg 1.18.24ubuntu1
> apt 1.5.1
> SambaClientRegression: No
> SourcePackage: samba
> Title: package samba 2:4.6.7+dfsg-1ubuntu3.1 failed to install/upgrade:
> el subproceso instalado el script post-installation devolvió el código de
> salida de error 1
> UpgradeStatus: Upgraded to artful on 2017-10-31 (23 days ago)
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/samba/+bug/
> 1734359/+subscriptions
>

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

You missed log.smbd and log.nmbd. These are important, since they are the most recent logs from each one of these services. Could you please attach them?

That being said, I see a couple of issues already:

a) you configure the guest account as being "smbguest", but the logs complain that this user does not exist. Do you have it? Try:
    id smbguest
    sudo pdbedit smbguest

b) It seems that at least sometimes when samba starts up, there is no network configured on that machine. Maybe it's a desktop and you only have networking after you login and network-manager takes over?

Revision history for this message
victor saiz ayala (victorsaiz) wrote :
Download full text (3.9 KiB)

vsa@vsa-EasyNote-SB65:/etc$ id smbguest
id: «smbguest»: no existe ese usuario
vsa@vsa-EasyNote-SB65:/etc$ sudo pdbedit smbguest
[sudo] password for vsa:

Unknown parameter encountered: "password level"
Ignoring unknown parameter "password level"
Unknown parameter encountered: "update encrypted"
Ignoring unknown parameter "update encrypted"
Failed to find a Unix account for smbguest
smbguest:4294967295:Samba guest account

 ifconfig
enp6s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
        ether 00:1e:68:67:2b:91 txqueuelen 1000 (Ethernet)
        RX packets 0 bytes 0 (0.0 B)
        RX errors 0 dropped 0 overruns 0 frame 0
        TX packets 0 bytes 0 (0.0 B)
        TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
        device interrupt 17

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
        inet 127.0.0.1 netmask 255.0.0.0
        inet6 ::1 prefixlen 128 scopeid 0x10<host>
        loop txqueuelen 1000 (Bucle local)
        RX packets 884 bytes 77728 (77.7 KB)
        RX errors 0 dropped 0 overruns 0 frame 0
        TX packets 884 bytes 77728 (77.7 KB)
        TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

wlp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
        inet 192.168.0.41 netmask 255.255.255.0 broadcast 192.168.0.255
        inet6 fe80::77ca:6f60:2ea3:d2b5 prefixlen 64 scopeid 0x20<link>
        ether 00:1f:3c:2a:ca:3d txqueuelen 1000 (Ethernet)
        RX packets 6339 bytes 4371772 (4.3 MB)
        RX errors 0 dropped 0 overruns 0 frame 0
        TX packets 4568 bytes 734592 (734.5 KB)
        TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

Does this clarify anything?

2017-11-27 18:18 GMT+01:00 Andreas Hasenack <email address hidden>:

> You missed log.smbd and log.nmbd. These are important, since they are
> the most recent logs from each one of these services. Could you please
> attach them?
>
> That being said, I see a couple of issues already:
>
> a) you configure the guest account as being "smbguest", but the logs
> complain that this user does not exist. Do you have it? Try:
> id smbguest
> sudo pdbedit smbguest
>
> b) It seems that at least sometimes when samba starts up, there is no
> network configured on that machine. Maybe it's a desktop and you only
> have networking after you login and network-manager takes over?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1734359
>
> Title:
> package samba 2:4.6.7+dfsg-1ubuntu3.1 failed to install/upgrade: el
> subproceso instalado el script post-installation devolvió el código de
> salida de error 1
>
> Status in samba package in Ubuntu:
> Incomplete
>
> Bug description:
> The error has been a few seconds after the boot of the pc.
>
> ProblemType: Package
> DistroRelease: Ubuntu 17.10
> Package: samba 2:4.6.7+dfsg-1ubuntu3.1
> ProcVersionSignature: Ubuntu 4.13.0-17.20-generic 4.13.8
> Uname: Linux 4.13.0-17-generic x86_64
> NonfreeKernelModules: nvidia_uvm nvidia
> ApportVersion: 2.20.7-0ubuntu3.5
> Architecture: amd64
> CIFSMounts:
>
> Date: Thu Nov 23 18:57:02 2017
> ErrorMessage...

Read more...

Revision history for this message
victor saiz ayala (victorsaiz) wrote :
Download full text (9.4 KiB)

vsa@vsa-EasyNote-SB65:~/VM$ sudo apt-get purge samba
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
Los paquetes indicados a continuación se instalaron de forma automática y
ya no son necesarios.
  attr libaio1 libboost-random1.62.0 libboost-regex1.62.0 libcephfs2
  libnih-dbus1 librados2 linux-image-4.10.0-37-generic
  linux-image-extra-4.10.0-37-generic python-dnspython samba-dsdb-modules
  samba-vfs-modules tdb-tools
Utilice «sudo apt autoremove» para eliminarlos.
Los siguientes paquetes se ELIMINARÁN:
  samba*
0 actualizados, 0 nuevos se instalarán, 1 para eliminar y 0 no actualizados.
1 no instalados del todo o eliminados.
Se liberarán 11,2 MB después de esta operación.
¿Desea continuar? [S/n] s
(Leyendo la base de datos ... 194104 ficheros o directorios instalados
actualmente.)
Desinstalando samba (2:4.6.7+dfsg-1ubuntu3.1) ...
Procesando disparadores para libc-bin (2.26-0ubuntu2) ...
Procesando disparadores para man-db (2.7.6.1-2) ...
(Leyendo la base de datos ... 193910 ficheros o directorios instalados
actualmente.)
Purgando ficheros de configuración de samba (2:4.6.7+dfsg-1ubuntu3.1) ...
Procesando disparadores para ufw (0.35-5) ...
Procesando disparadores para ureadahead (0.100.0-20) ...
Procesando disparadores para systemd (234-2ubuntu12.1) ...
vsa@vsa-EasyNote-SB65:~/VM$ sudo apt-get install samba
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
Los paquetes indicados a continuación se instalaron de forma automática y
ya no son necesarios.
  libnih-dbus1 linux-image-4.10.0-37-generic
  linux-image-extra-4.10.0-37-generic
Utilice «sudo apt autoremove» para eliminarlos.
Paquetes sugeridos:
  bind9 bind9utils ctdb ldb-tools ntp | chrony smbldap-tools winbind
Se instalarán los siguientes paquetes NUEVOS:
  samba
0 actualizados, 1 nuevos se instalarán, 0 para eliminar y 0 no actualizados.
Se necesita descargar 0 B/846 kB de archivos.
Se utilizarán 11,2 MB de espacio de disco adicional después de esta
operación.
Seleccionando el paquete samba previamente no seleccionado.
(Leyendo la base de datos ... 193905 ficheros o directorios instalados
actualmente.)
Preparando para desempaquetar .../samba_2%3a4.6.7+dfsg-1ubuntu3.1_amd64.deb
...
Desempaquetando samba (2:4.6.7+dfsg-1ubuntu3.1) ...
Procesando disparadores para ufw (0.35-5) ...
Procesando disparadores para ureadahead (0.100.0-20) ...
Procesando disparadores para libc-bin (2.26-0ubuntu2) ...
Procesando disparadores para systemd (234-2ubuntu12.1) ...
Procesando disparadores para man-db (2.7.6.1-2) ...
Configurando samba (2:4.6.7+dfsg-1ubuntu3.1) ...
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
samba-ad-dc-service.
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.wan...

Read more...

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Your /etc/samba/smb.conf in the "guest account" line is telling samba to use someone called "smbguest" as the guest user, but you don't have such an user in your system. Either create it, or change that config to use something else. Or maybe just remove that line and let samba use its defaults

I see you tried to remove samba entirely via "apt purge samba". The config file is however created by the samba-common package, not samba. So if you want to really start from scratch, you could purge the samba-common package instead.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for samba (Ubuntu) because there has been no activity for 60 days.]

Changed in samba (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.