[Bug 1684146] Re: package samba 2:4.3.11+dfsg-0ubuntu0.16.04.6 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
Hubert Higelin
1684146 at bugs.launchpad.net
Tue May 30 11:32:48 UTC 2017
Hello
The samba package install problem do not occur anymore.
But since upgrade to 16.04 each access to a samba share need a authentication and scheduled tasks fails. (After upgrade from 12.04 to 14.04 the same problem occurred for several month before been solved by a update.)
I removed the machine from the domain an tried to join again. The join fail.
Below copy of some commands and the terminal outputs :
hh at F2u:~$ sudo apt -f install
[sudo] Mot de passe de hh :
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
0 mis à jour, 0 nouvellement installés, 0 à enlever et 8 non mis à jour.
hh at F2u:~$
hh at F2u:~$ service smbd status
● smbd.service - LSB: start Samba SMB/CIFS daemon (smbd)
Loaded: loaded (/etc/init.d/smbd; bad; vendor preset: enabled)
Active: active (running) since mar. 2017-05-30 10:16:14 CEST; 21min ago
Docs: man:systemd-sysv-generator(8)
Process: 1511 ExecStart=/etc/init.d/smbd start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/smbd.service
├─1530 /usr/sbin/smbd -D
├─1532 /usr/sbin/smbd -D
└─1556 /usr/sbin/smbd -D
mai 30 10:16:14 F2u systemd[1]: Starting LSB: start Samba SMB/CIFS daemon (smbd)...
mai 30 10:16:14 F2u smbd[1511]: * Starting SMB/CIFS daemon smbd
mai 30 10:16:14 F2u smbd[1511]: ...done.
mai 30 10:16:14 F2u systemd[1]: Started LSB: start Samba SMB/CIFS daemon (smbd).
mai 30 10:17:52 F2u smbd[1530]: [2017/05/30 10:17:52.567623, 0] ../lib/util/become_daemon.c:124(daemon_ready)
mai 30 10:17:52 F2u smbd[1530]: STATUS=daemon 'smbd' finished starting up and ready to serve connections
hh at F2u:~$
hh at F2u:~$ service nmbd status
● nmbd.service - LSB: start Samba NetBIOS nameserver (nmbd)
Loaded: loaded (/etc/init.d/nmbd; bad; vendor preset: enabled)
Active: active (running) since mar. 2017-05-30 10:16:14 CEST; 24min ago
Docs: man:systemd-sysv-generator(8)
Process: 1408 ExecStart=/etc/init.d/nmbd start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/nmbd.service
└─1508 /usr/sbin/nmbd -D
mai 30 10:16:12 F2u systemd[1]: Starting LSB: start Samba NetBIOS nameserver (nmbd)...
mai 30 10:16:14 F2u nmbd[1408]: * Starting NetBIOS name server nmbd
mai 30 10:16:14 F2u nmbd[1408]: ...done.
mai 30 10:16:14 F2u systemd[1]: Started LSB: start Samba NetBIOS nameserver (nmbd).
mai 30 10:16:14 F2u nmbd[1508]: [2017/05/30 10:16:14.232451, 0] ../lib/util/become_daemon.c:124(daemon_ready)
mai 30 10:16:14 F2u nmbd[1508]: STATUS=daemon 'nmbd' finished starting up and ready to serve connections
hh at F2u:~$
hh at F2u:~$ service winbind status
● winbind.service - LSB: start Winbind daemon
Loaded: loaded (/etc/init.d/winbind; bad; vendor preset: enabled)
Active: active (running) since mar. 2017-05-30 10:16:14 CEST; 27min ago
Docs: man:systemd-sysv-generator(8)
Process: 1404 ExecStart=/etc/init.d/winbind start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/winbind.service
├─1509 /usr/sbin/winbindd
├─1526 /usr/sbin/winbindd
├─1545 /usr/sbin/winbindd
└─1546 /usr/sbin/winbindd
mai 30 10:16:12 F2u systemd[1]: Starting LSB: start Winbind daemon...
mai 30 10:16:14 F2u winbind[1404]: * Starting the Winbind daemon winbind
mai 30 10:16:14 F2u winbind[1404]: ...done.
mai 30 10:16:14 F2u systemd[1]: Started LSB: start Winbind daemon.
mai 30 10:16:14 F2u winbindd[1509]: [2017/05/30 10:16:14.238215, 0] ../source3/winbindd/winbindd_cache.c:3245(initialize_winbindd_cache)
mai 30 10:16:14 F2u winbindd[1509]: initialize_winbindd_cache: clearing cache and re-creating with version number 2
mai 30 10:16:14 F2u winbindd[1509]: [2017/05/30 10:16:14.309466, 0] ../lib/util/become_daemon.c:124(daemon_ready)
mai 30 10:16:14 F2u winbindd[1509]: STATUS=daemon 'winbindd' finished starting up and ready to serve connections
hh at F2u:~$
hh at F2u:~$ sudo net rpc join -D ENDUICOLOR -U hh
No realm has been specified! Do you really want to join an Active Directory server?
Enter hh's password:
smb_signing_good: BAD SIG: seq 1
Failed to join domain: failed to lookup DC info for domain 'ENDUICOLOR' over rpc: Access denied
hh at F2u:~$
hh at F2u:~$ testparm /etc/samba/smb.conf
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[printers]"
Processing section "[print$]"
Processing section "[cdrom]"
Processing section "[ptgEAdm]"
Processing section "[ptgEndui]"
Processing section "[ptgGrpF]"
Processing section "[S1SqlServerBak]"
Loaded services file OK.
WARNING: You have some share names that are longer than 12 characters.
These may not be accessible to some older clients.
(Eg. Windows9x, WindowsMe, and smbclient prior to Samba 3.0.)
Server role: ROLE_DOMAIN_MEMBER
Press enter to see a dump of your service definitions
# Global parameters
[global]
workgroup = ENDUICOLOR
server string = %h server (Samba, Ubuntu)
interfaces = eth0
bind interfaces only = Yes
security = DOMAIN
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
username map = /etc/samba/smbusers
unix password sync = Yes
client NTLMv2 auth = No
log file = /var/log/samba/log.%m
max log size = 1000
name resolve order = lmhosts host wins bcast
client use spnego = No
printcap name = cups
wins server = 10.150.1.1 10.150.1.2
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
idmap uid = 10000-20000
idmap gid = 10000-20000
template shell = /bin/bash
winbind use default domain = Yes
require strong key = No
allow nt4 crypto = Yes
idmap config * : range = 10000-20000
idmap config * : backend = tdb
[printers]
comment = All Printers
path = /var/spool/samba
read only = No
create mask = 0700
guest ok = Yes
printable = Yes
use client driver = Yes
browseable = No
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
guest ok = Yes
[cdrom]
comment = Samba server's CD-ROM
path = /cdrom
guest ok = Yes
locking = No
preexec = /bin/mount /cdrom
exec = /bin/mount /cdrom
postexec = /bin/umount /cdrom
[ptgEAdm]
comment = partage Admins.Enduicolor
path = /mnt/Data/ptgEAdm
valid users = "@enduicolor\admins du domaine"
read only = No
[ptgEndui]
comment = partage utilis.Enduicolor
path = /mnt/Data/ptgEndui
valid users = "@enduicolor\utilisa. du domaine"
read only = No
[ptgGrpF]
comment = partage utilis.Fab
path = /mnt/Data/ptgGrpF
valid users = @enduicolor\grpf
read only = No
[S1SqlServerBak]
comment = backup S1SqlServer
path = /mnt/Data/S1SqlServerBak
valid users = "@enduicolor\admins du domaine"
read only = No
hh at F2u:~$
Note: At time, new machines with Xubuntu 16.04 and Ubuntu server 16.04.02, up to date and configured as domain member, are also unable to join the NT4 domain.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/1684146
Title:
package samba 2:4.3.11+dfsg-0ubuntu0.16.04.6 failed to
install/upgrade: subprocess installed post-installation script
returned error exit status 1
Status in samba package in Ubuntu:
Incomplete
Bug description:
Since upgrade to Ubuntu 16.04 access to samba share is denied. (I have tried client use spnego = no, client NTLMv2 auth = no, allow nt4 crypto = yes, require strong key = no without success). Now samba update fail.
Note: New machines with new installations of Ubuntu 16.04 can't join the domain.
The primary domain controller and the backup domain controller are Windows NT 4.0 server service pack 6.
ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: samba 2:4.3.11+dfsg-0ubuntu0.16.04.6
ProcVersionSignature: Ubuntu 4.4.0-67.88-generic 4.4.49
Uname: Linux 4.4.0-67-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.20.1-0ubuntu2.5
Architecture: amd64
BothFailedConnect: Yes
Date: Wed Apr 19 15:25:02 2017
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationDate: Installed on 2012-12-13 (1587 days ago)
InstallationMedia: Xubuntu 12.04.1 LTS "Precise Pangolin" - Release amd64 (20120817.3)
NmbdLog:
Packet send failed to 10.150.255.255(137) ERRNO=Argument invalide
send_netbios_packet: send_packet() to IP 10.150.255.255 port 137 failed
query_name: Failed to send packet trying to query name ENDUICOLOR<1d>
RelatedPackageVersions:
dpkg 1.18.4ubuntu1.1
apt 1.2.19
SambaServerRegression: Yes
SmbConfIncluded: Yes
SmbLog:
SourcePackage: samba
Title: package samba 2:4.3.11+dfsg-0ubuntu0.16.04.6 failed to install/upgrade: subprocess installed post-installation script returned error exit status 1
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1684146/+subscriptions
More information about the foundations-bugs
mailing list