As you can see, I have quite a lot of puke for output. My system:
amd cpu/chipset/gpu
Ubuntu 13.10, upgraded from fresh install of 13.04. In use for several months
Kernel 3.12 from http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.12-saucy/
This is my first install of anything related to samba. I attempted a 
stand-alone install.
You can see that upon seeing a list of suggested packages I cancelled install 
and attempted to include those. Some don't even exist! I consider that to be 
more puke. (Terminal output from copy/paste was cut off as well!) I tried again 
with the offending packages omitted from the install list.

After the error occurred, I tried apt-get update, and upgrade. Then apt-get 
install -f (Also it's 4am, dpkg -i was NOT want I wanted.)
No Joy.
And without further ado, terminal puke:
==================================================================================
gallomimia@draco-lambda:~$ sudo apt-get install samba4
[sudo] password for gallomimia: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-3.11.0-13 linux-headers-3.11.0-13-generic
  linux-image-3.11.0-13-generic linux-image-extra-3.11.0-13-generic
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  attr bind9 bind9utils ldb-tools libdcerpc-server0 libdcerpc0 libgensec0
  libhdb9-heimdal libkdc2-heimdal libldb1 libndr-standard0 libndr0
  libregistry0 libsamba-credentials0 libsamba-hostconfig0 libsamba-policy0
  libsamba-util0 libsamdb0 libsmbclient-raw0 python-dnspython python-ldb
  python-samba python-talloc python-tdb samba-dsdb-modules samba4-common-bin
  tdb-tools
Suggested packages:
  bind9-doc phpldapadmin samba-gtk swat2 ntp
The following NEW packages will be installed:
  attr bind9 bind9utils ldb-tools libdcerpc-server0 libdcerpc0 libgensec0
  libhdb9-heimdal libkdc2-heimdal libldb1 libndr-standard0 libndr0
  libregistry0 libsamba-credentials0 libsamba-hostconfig0 libsamba-policy0
  libsamba-util0 libsamdb0 libsmbclient-raw0 python-dnspython python-ldb
  python-samba python-talloc python-tdb samba-dsdb-modules samba4
  samba4-common-bin tdb-tools
0 upgraded, 28 newly installed, 0 to remove and 0 not upgraded.
Need to get 10.1 MB of archives.
After this operation, 40.7 MB of additional disk space will be used.
Do you want to continue [Y/n]? ^Cgallomimia@draco-lambda:~$ sudo apt-get 
installmba-gtk swat2 ntp phpldapadmin sa 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package samba-gtk is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package swat2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'samba-gtk' has no installation candidate
E: Package 'swat2' has no installation candidate
gallomimia@draco-lambda:~$ sudo apt-get update
Ign http://mirror.cpsc.ucalgary.ca saucy InRelease
Hit http://mirror.cpsc.ucalgary.ca saucy Release.gpg                           
Hit http://mirror.cpsc.ucalgary.ca saucy Release                               
Hit http://mirror.cpsc.ucalgary.ca saucy/main Sources                          
Hit http://mirror.cpsc.ucalgary.ca saucy/restricted Sources
Ign http://ppa.launchpad.net saucy InRelease   
Ign http://extras.ubuntu.com saucy InRelease   
Hit http://mirror.cpsc.ucalgary.ca saucy/universe Sources
Hit http://mirror.cpsc.ucalgary.ca saucy/multiverse Sources
Hit http://mirror.cpsc.ucalgary.ca saucy/main amd64 Packages
Hit http://mirror.cpsc.ucalgary.ca saucy/restricted amd64 Packages
Hit http://mirror.cpsc.ucalgary.ca saucy/universe amd64 Packages
Hit http://mirror.cpsc.ucalgary.ca saucy/multiverse amd64 Packages
Hit http://mirror.cpsc.ucalgary.ca saucy/main i386 Packages
Ign http://ppa.launchpad.net saucy InRelease   
Get:1 http://extras.ubuntu.com saucy Release.gpg [72 B]
Hit http://mirror.cpsc.ucalgary.ca saucy/restricted i386 Packages             
Hit http://mirror.cpsc.ucalgary.ca saucy/universe i386 Packages
Hit http://mirror.cpsc.ucalgary.ca saucy/multiverse i386 Packages
Hit http://mirror.cpsc.ucalgary.ca saucy/main Translation-en_CA
Hit http://ppa.launchpad.net saucy Release.gpg 
Hit http://extras.ubuntu.com saucy Release     
Hit http://mirror.cpsc.ucalgary.ca saucy/main Translation-en          
Hit http://mirror.cpsc.ucalgary.ca saucy/multiverse Translation-en    
Hit http://mirror.cpsc.ucalgary.ca saucy/restricted Translation-en
Hit http://mirror.cpsc.ucalgary.ca saucy/universe Translation-en_CA
Get:2 http://ppa.launchpad.net saucy Release.gpg [316 B]
Hit http://mirror.cpsc.ucalgary.ca saucy/universe Translation-en               
Hit http://extras.ubuntu.com saucy/main Sources                      
Hit http://ppa.launchpad.net saucy Release                           
Hit http://extras.ubuntu.com saucy/main amd64 Packages                
Ign http://mirror.cpsc.ucalgary.ca saucy/multiverse Translation-en_CA
Ign http://mirror.cpsc.ucalgary.ca saucy/restricted Translation-en_CA
Get:3 http://ppa.launchpad.net saucy Release [11.9 kB]
Hit http://extras.ubuntu.com saucy/main i386 Packages    
Hit http://ppa.launchpad.net saucy/main amd64 Packages   
Hit http://ppa.launchpad.net saucy/main i386 Packages
Get:4 http://ppa.launchpad.net saucy/main amd64 Packages [724 B]
Get:5 http://ppa.launchpad.net saucy/main i386 Packages [724 B]        
Ign http://extras.ubuntu.com saucy/main Translation-en_CA              
Ign http://extras.ubuntu.com saucy/main Translation-en
Ign http://ppa.launchpad.net saucy/main Translation-en_CA
Ign http://ppa.launchpad.net saucy/main Translation-en
Ign http://ppa.launchpad.net saucy/main Translation-en_CA
Ign http://ppa.launchpad.net saucy/main Translation-en
Fetched 13.7 kB in 5s (2,644 B/s)
Reading package lists... Done
gallomimia@draco-lambda:~$ sudo apt-get install samba4 bind9-doc phpldapadmin 
samba-gtk swat2 ntp
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package samba-gtk is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package swat2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'samba-gtk' has no installation candidate
E: Package 'swat2' has no installation candidate
gallomimia@draco-lambda:~$ sudo apt-get install samba4 bind9-doc phpldapadmin 
ntp
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help resolve the situation:

The following packages have unmet dependencies:
 phpldapadmin : Depends: php5-ldap but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
gallomimia@draco-lambda:~$ sudo apt-get install samba4 bind9-doc  ntpReading 
package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-3.11.0-13 linux-headers-3.11.0-13-generic
  linux-image-3.11.0-13-generic linux-image-extra-3.11.0-13-generic
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  attr bind9 bind9utils ldb-tools libdcerpc-server0 libdcerpc0 libgensec0
  libhdb9-heimdal libkdc2-heimdal libldb1 libndr-standard0 libndr0 libopts25
  libregistry0 libsamba-credentials0 libsamba-hostconfig0 libsamba-policy0
  libsamba-util0 libsamdb0 libsmbclient-raw0 python-dnspython python-ldb
  python-samba python-talloc python-tdb samba-dsdb-modules samba4-common-bin
  tdb-tools
Suggested packages:
  ntp-doc phpldapadmin samba-gtk swat2
The following NEW packages will be installed:
  attr bind9 bind9-doc bind9utils ldb-tools libdcerpc-server0 libdcerpc0
  libgensec0 libhdb9-heimdal libkdc2-heimdal libldb1 libndr-standard0 libndr0
  libopts25 libregistry0 libsamba-credentials0 libsamba-hostconfig0
  libsamba-policy0 libsamba-util0 libsamdb0 libsmbclient-raw0 ntp
  python-dnspython python-ldb python-samba python-talloc python-tdb
  samba-dsdb-modules samba4 samba4-common-bin tdb-tools
0 upgraded, 31 newly installed, 0 to remove and 1 not upgraded.
Need to get 11.0 MB of archives.
After this operation, 43.7 MB of additional disk space will be used.
Do you want to continue [Y/n]? 
Get:1 http://mirror.cpsc.ucalgary.ca/mirror/ubuntu.com/packages/ saucy/main 
libhdb9-heimdal amd64 1.6~git20120403+dfsg1-3ubuntu0.1 [64.7 kB]
Get:2 http://mirror.cpsc.ucalgary.ca/mirror/ubuntu.com/packages/ saucy/universe 
libldb1 amd64 1:1.1.15-1.1 [131 kB]
Get:3 http://mirror.cpsc.ucalgary.ca/mirror/ubuntu.com/packages/ saucy/universe 
libsamba-util0 amd64 4.0.3+dfsg1-0.1ubuntu1 [283 kB]
Get:4 http://mirror.cpsc.ucalgary.ca/mirror/ubuntu.com/packages/ saucy/universe 
libndr0 amd64 4.0.3+dfsg1-0.1ubuntu1 [35.6 kB]
Get:5 http://mirror.cpsc.ucalgary.ca/mirror/ubuntu.com/packages/ saucy/universe 
libndr-standard0 amd64 4.0.3+dfsg1-0.1ubuntu1 [1,618 kB]
Get:6 http://mirror.cpsc.ucalgary.ca/mirror/ubuntu.com/packages/ saucy/universe 
libsamba-hostconfig0 amd64 4.0.3+dfsg1-0.1ubuntu1 [85.1 kB]
Get:7 http://mirror.cpsc.ucalgary.ca/mirror/ubuntu.com/packages/ saucy/universe 
libsamba-credentials0 amd64 4.0.3+dfsg1-0.1ubuntu1 [29.6 kB]
Get:8 http://mirror.cpsc.ucalgary.ca/mirror/ubuntu.com/packages/ saucy/universe 
libsamdb0 amd64 4.0.3+dfsg1-0.1ubuntu1 [146 kB]
Get:9 http://mirror.cpsc.ucalgary.ca/mirror/ubuntu.com/packages/ saucy/universe 
libgensec0 amd64 4.0.3+dfsg1-0.1ubuntu1 [288 kB]
Get:10 http://mirror.cpsc.ucalgary.ca/mirror/ubuntu.com/packages/ 
saucy/universe libsmbclient-raw0 amd64 4.0.3+dfsg1-0.1ubuntu1 [560 kB]
Get:11 http://mirror.cpsc.ucalgary.ca/mirror/ubuntu.com/packages/ saucy/main 
python-talloc amd64 2.0.8-0.1 [7,370 B]
Get:12 http://mirror.cpsc.ucalgary.ca/mirror/ubuntu.com/packages/ 
saucy/universe libdcerpc0 amd64 4.0.3+dfsg1-0.1ubuntu1 [500 kB]
Get:13 http://mirror.cpsc.ucalgary.ca/mirror/ubuntu.com/packages/ 
saucy/universe libregistry0 amd64 4.0.3+dfsg1-0.1ubuntu1 [59.5 kB]
Get:14 http://mirror.cpsc.ucalgary.ca/mirror/ubuntu.com/packages/ 
saucy/universe libdcerpc-server0 amd64 4.0.3+dfsg1-0.1ubuntu1 [333 kB]
Get:15 http://mirror.cpsc.ucalgary.ca/mirror/ubuntu.com/packages/ saucy/main 
libopts25 amd64 1:5.18-2ubuntu1 [63.4 kB]
Get:16 http://mirror.cpsc.ucalgary.ca/mirror/ubuntu.com/packages/ 
saucy/universe libsamba-policy0 amd64 4.0.3+dfsg1-0.1ubuntu1 [24.9 kB]
Get:17 http://mirror.cpsc.ucalgary.ca/mirror/ubuntu.com/packages/ saucy/main 
ntp amd64 1:4.2.6.p5+dfsg-3ubuntu2 [611 kB]
Get:18 http://mirror.cpsc.ucalgary.ca/mirror/ubuntu.com/packages/ 
saucy/universe python-ldb amd64 1:1.1.15-1.1 [33.2 kB]
Get:19 http://mirror.cpsc.ucalgary.ca/mirror/ubuntu.com/packages/ saucy/main 
python-tdb amd64 1.2.11-2.1 [11.3 kB]
Get:20 http://mirror.cpsc.ucalgary.ca/mirror/ubuntu.com/packages/ 
saucy/universe python-samba amd64 4.0.3+dfsg1-0.1ubuntu1 [3,017 kB]
Get:21 http://mirror.cpsc.ucalgary.ca/mirror/ubuntu.com/packages/ saucy/main 
libkdc2-heimdal amd64 1.6~git20120403+dfsg1-3ubuntu0.1 [63.0 kB]
Get:22 http://mirror.cpsc.ucalgary.ca/mirror/ubuntu.com/packages/ saucy/main 
attr amd64 1:2.4.47-1 [29.5 kB]
Get:23 http://mirror.cpsc.ucalgary.ca/mirror/ubuntu.com/packages/ saucy/main 
bind9utils amd64 1:9.9.3.dfsg.P2-4ubuntu1 [244 kB]
Get:24 http://mirror.cpsc.ucalgary.ca/mirror/ubuntu.com/packages/ saucy/main 
bind9 amd64 1:9.9.3.dfsg.P2-4ubuntu1 [336 kB]
Get:25 http://mirror.cpsc.ucalgary.ca/mirror/ubuntu.com/packages/ saucy/main 
bind9-doc all 1:9.9.3.dfsg.P2-4ubuntu1 [234 kB]
Get:26 http://mirror.cpsc.ucalgary.ca/mirror/ubuntu.com/packages/ 
saucy/universe ldb-tools amd64 1:1.1.15-1.1 [35.8 kB]
Get:27 http://mirror.cpsc.ucalgary.ca/mirror/ubuntu.com/packages/ saucy/main 
python-dnspython all 1.11.0-1 [106 kB]
Get:28 http://mirror.cpsc.ucalgary.ca/mirror/ubuntu.com/packages/ 
saucy/universe samba-dsdb-modules amd64 4.0.3+dfsg1-0.1ubuntu1 [323 kB]
Get:29 http://mirror.cpsc.ucalgary.ca/mirror/ubuntu.com/packages/ 
saucy/universe samba4-common-bin amd64 4.0.3+dfsg1-0.1ubuntu1 [29.9 kB]
Get:30 http://mirror.cpsc.ucalgary.ca/mirror/ubuntu.com/packages/ saucy/main 
tdb-tools amd64 1.2.11-2.1 [23.1 kB]
Get:31 http://mirror.cpsc.ucalgary.ca/mirror/ubuntu.com/packages/ 
saucy/universe samba4 amd64 4.0.3+dfsg1-0.1ubuntu1 [1,691 kB]
Fetched 11.0 MB in 5s (2,076 kB/s)    
Extracting templates from packages: 100%
Preconfiguring packages ...
Selecting previously unselected package libhdb9-heimdal:amd64.
(Reading database ... 478750 files and directories currently installed.)
Unpacking libhdb9-heimdal:amd64 (from 
.../libhdb9-heimdal_1.6~git20120403+dfsg1-3ubuntu0.1_amd64.deb) ...
Selecting previously unselected package libldb1:amd64.
Unpacking libldb1:amd64 (from .../libldb1_1%3a1.1.15-1.1_amd64.deb) ...
Selecting previously unselected package libsamba-util0:amd64.
Unpacking libsamba-util0:amd64 (from 
.../libsamba-util0_4.0.3+dfsg1-0.1ubuntu1_amd64.deb) ...
Selecting previously unselected package libndr0:amd64.
Unpacking libndr0:amd64 (from .../libndr0_4.0.3+dfsg1-0.1ubuntu1_amd64.deb) ...
Selecting previously unselected package libndr-standard0:amd64.
Unpacking libndr-standard0:amd64 (from 
.../libndr-standard0_4.0.3+dfsg1-0.1ubuntu1_amd64.deb) ...
Selecting previously unselected package libsamba-hostconfig0:amd64.
Unpacking libsamba-hostconfig0:amd64 (from 
.../libsamba-hostconfig0_4.0.3+dfsg1-0.1ubuntu1_amd64.deb) ...
Selecting previously unselected package libsamba-credentials0:amd64.
Unpacking libsamba-credentials0:amd64 (from 
.../libsamba-credentials0_4.0.3+dfsg1-0.1ubuntu1_amd64.deb) ...
Selecting previously unselected package libsamdb0:amd64.
Unpacking libsamdb0:amd64 (from .../libsamdb0_4.0.3+dfsg1-0.1ubuntu1_amd64.deb) 
...
Selecting previously unselected package libgensec0:amd64.
Unpacking libgensec0:amd64 (from 
.../libgensec0_4.0.3+dfsg1-0.1ubuntu1_amd64.deb) ...
Selecting previously unselected package libsmbclient-raw0:amd64.
Unpacking libsmbclient-raw0:amd64 (from 
.../libsmbclient-raw0_4.0.3+dfsg1-0.1ubuntu1_amd64.deb) ...
Selecting previously unselected package python-talloc.
Unpacking python-talloc (from .../python-talloc_2.0.8-0.1_amd64.deb) ...
Selecting previously unselected package libdcerpc0:amd64.
Unpacking libdcerpc0:amd64 (from 
.../libdcerpc0_4.0.3+dfsg1-0.1ubuntu1_amd64.deb) ...
Selecting previously unselected package libregistry0:amd64.
Unpacking libregistry0:amd64 (from 
.../libregistry0_4.0.3+dfsg1-0.1ubuntu1_amd64.deb) ...
Selecting previously unselected package libdcerpc-server0:amd64.
Unpacking libdcerpc-server0:amd64 (from 
.../libdcerpc-server0_4.0.3+dfsg1-0.1ubuntu1_amd64.deb) ...
Selecting previously unselected package libopts25:amd64.
Unpacking libopts25:amd64 (from .../libopts25_1%3a5.18-2ubuntu1_amd64.deb) ...
Selecting previously unselected package libsamba-policy0:amd64.
Unpacking libsamba-policy0:amd64 (from 
.../libsamba-policy0_4.0.3+dfsg1-0.1ubuntu1_amd64.deb) ...
Selecting previously unselected package ntp.
Unpacking ntp (from .../ntp_1%3a4.2.6.p5+dfsg-3ubuntu2_amd64.deb) ...
Selecting previously unselected package python-ldb.
Unpacking python-ldb (from .../python-ldb_1%3a1.1.15-1.1_amd64.deb) ...
Selecting previously unselected package python-tdb.
Unpacking python-tdb (from .../python-tdb_1.2.11-2.1_amd64.deb) ...
Selecting previously unselected package python-samba.
Unpacking python-samba (from .../python-samba_4.0.3+dfsg1-0.1ubuntu1_amd64.deb) 
...
Selecting previously unselected package libkdc2-heimdal:amd64.
Unpacking libkdc2-heimdal:amd64 (from 
.../libkdc2-heimdal_1.6~git20120403+dfsg1-3ubuntu0.1_amd64.deb) ...
Selecting previously unselected package attr.
Unpacking attr (from .../attr_1%3a2.4.47-1_amd64.deb) ...
Selecting previously unselected package bind9utils.
Unpacking bind9utils (from .../bind9utils_1%3a9.9.3.dfsg.P2-4ubuntu1_amd64.deb) 
...
Selecting previously unselected package bind9.
Unpacking bind9 (from .../bind9_1%3a9.9.3.dfsg.P2-4ubuntu1_amd64.deb) ...
Selecting previously unselected package bind9-doc.
Unpacking bind9-doc (from .../bind9-doc_1%3a9.9.3.dfsg.P2-4ubuntu1_all.deb) ...
Selecting previously unselected package ldb-tools.
Unpacking ldb-tools (from .../ldb-tools_1%3a1.1.15-1.1_amd64.deb) ...
Selecting previously unselected package python-dnspython.
Unpacking python-dnspython (from .../python-dnspython_1.11.0-1_all.deb) ...
Selecting previously unselected package samba-dsdb-modules.
Unpacking samba-dsdb-modules (from 
.../samba-dsdb-modules_4.0.3+dfsg1-0.1ubuntu1_amd64.deb) ...
Selecting previously unselected package samba4-common-bin.
Unpacking samba4-common-bin (from 
.../samba4-common-bin_4.0.3+dfsg1-0.1ubuntu1_amd64.deb) ...
Selecting previously unselected package tdb-tools.
Unpacking tdb-tools (from .../tdb-tools_1.2.11-2.1_amd64.deb) ...
Selecting previously unselected package samba4.
Unpacking samba4 (from .../samba4_4.0.3+dfsg1-0.1ubuntu1_amd64.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Processing triggers for ufw ...
Setting up libhdb9-heimdal:amd64 (1.6~git20120403+dfsg1-3ubuntu0.1) ...
Setting up libldb1:amd64 (1:1.1.15-1.1) ...
Setting up libsamba-util0:amd64 (4.0.3+dfsg1-0.1ubuntu1) ...
Setting up libndr0:amd64 (4.0.3+dfsg1-0.1ubuntu1) ...
Setting up libndr-standard0:amd64 (4.0.3+dfsg1-0.1ubuntu1) ...
Setting up libsamba-hostconfig0:amd64 (4.0.3+dfsg1-0.1ubuntu1) ...
Setting up libsamba-credentials0:amd64 (4.0.3+dfsg1-0.1ubuntu1) ...
Setting up libsamdb0:amd64 (4.0.3+dfsg1-0.1ubuntu1) ...
Setting up libgensec0:amd64 (4.0.3+dfsg1-0.1ubuntu1) ...
Setting up libsmbclient-raw0:amd64 (4.0.3+dfsg1-0.1ubuntu1) ...
Setting up python-talloc (2.0.8-0.1) ...
Setting up libdcerpc0:amd64 (4.0.3+dfsg1-0.1ubuntu1) ...
Setting up libregistry0:amd64 (4.0.3+dfsg1-0.1ubuntu1) ...
Setting up libdcerpc-server0:amd64 (4.0.3+dfsg1-0.1ubuntu1) ...
Setting up libopts25:amd64 (1:5.18-2ubuntu1) ...
Setting up libsamba-policy0:amd64 (4.0.3+dfsg1-0.1ubuntu1) ...
Setting up ntp (1:4.2.6.p5+dfsg-3ubuntu2) ...
Warning from /etc/apparmor.d/usr.sbin.ntpd (/etc/apparmor.d/usr.sbin.ntpd line 
82): profile /usr/sbin/ntpd network rules not enforced
 * Starting NTP server ntpd                                              [ OK ] 
Setting up python-ldb (1:1.1.15-1.1) ...
Setting up python-tdb (1.2.11-2.1) ...
Setting up python-samba (4.0.3+dfsg1-0.1ubuntu1) ...
Setting up libkdc2-heimdal:amd64 (1.6~git20120403+dfsg1-3ubuntu0.1) ...
Setting up attr (1:2.4.47-1) ...
Setting up bind9utils (1:9.9.3.dfsg.P2-4ubuntu1) ...
Setting up bind9 (1:9.9.3.dfsg.P2-4ubuntu1) ...
Adding group `bind' (GID 133) ...
Done.
Adding system user `bind' (UID 123) ...
Adding new user `bind' (UID 123) with group `bind' ...
Not creating home directory `/var/cache/bind'.
wrote key file "/etc/bind/rndc.key"
#
Warning from /etc/apparmor.d/usr.sbin.named (/etc/apparmor.d/usr.sbin.named 
line 54): profile /usr/sbin/named network rules not enforced
 * Starting domain name service... bind9                                 [ OK ] 
ln -s '/lib/systemd/system/bind9.service' 
'/etc/systemd/system/multi-user.target.wants/bind9.service'
Setting up bind9-doc (1:9.9.3.dfsg.P2-4ubuntu1) ...
Setting up ldb-tools (1:1.1.15-1.1) ...
Setting up python-dnspython (1.11.0-1) ...
Setting up samba-dsdb-modules (4.0.3+dfsg1-0.1ubuntu1) ...
Setting up samba4-common-bin (4.0.3+dfsg1-0.1ubuntu1) ...
Setting up tdb-tools (1.2.11-2.1) ...
update-alternatives: using /usr/bin/tdbbackup.tdbtools to provide 
/usr/bin/tdbbackup (tdbbackup) in auto mode
Setting up samba4 (4.0.3+dfsg1-0.1ubuntu1) ...
Looking up IPv4 addresses
Looking up IPv6 addresses
No IPv6 address will be assigned
Error loading module '/usr/lib/x86_64-linux-gnu/samba//vfs/acl_xattr.so': 
/usr/lib/x86_64-linux-gnu/samba//vfs/acl_xattr.so: cannot open shared object 
file: No such file or directory
error probing vfs module 'acl_xattr': NT_STATUS_UNSUCCESSFUL
smbd_vfs_init: vfs_init_custom failed for acl_xattr
Error loading module '/usr/lib/x86_64-linux-gnu/samba//vfs/acl_xattr.so': 
/usr/lib/x86_64-linux-gnu/samba//vfs/acl_xattr.so: cannot open shared object 
file: No such file or directory
error probing vfs module 'acl_xattr': NT_STATUS_UNSUCCESSFUL
smbd_vfs_init: vfs_init_custom failed for acl_xattr
Setting up share.ldb
Setting up secrets.ldb
Setting up the registry
Setting up the privileges database
Setting up idmap db
Setting up SAM db
Setting up sam.ldb partitions and settings
Setting up sam.ldb rootDSE
Pre-loading the Samba 4 and AD schema
Adding DomainDN: DC=localdomain
Adding configuration container
Setting up sam.ldb schema
Setting up sam.ldb configuration data
Setting up display specifiers
Modifying display specifiers
Adding users container
Modifying users container
Adding computers container
Modifying computers container
Setting up sam.ldb data
Setting up well known security principals
Setting up sam.ldb users and groups
ERROR(ldb): uncaught exception - 0000052D: Constraint violation - 
check_password_restrictions: the password does not meet the complexity criteria!
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 175, 
in _run
    return self.run(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/domain.py", line 398, in 
run
    use_rfc2307=use_rfc2307, skip_sysvolacl=False)
  File "/usr/lib/python2.7/dist-packages/samba/provision/__init__.py", line 
2146, in provision
    skip_sysvolacl=skip_sysvolacl)
  File "/usr/lib/python2.7/dist-packages/samba/provision/__init__.py", line 
1748, in provision_fill
    next_rid=next_rid, dc_rid=dc_rid)
  File "/usr/lib/python2.7/dist-packages/samba/provision/__init__.py", line 
1436, in fill_samdb
    "KRBTGTPASS_B64": b64encode(krbtgtpass.encode('utf-16-le'))
  File "/usr/lib/python2.7/dist-packages/samba/provision/common.py", line 50, 
in setup_add_ldif
    ldb.add_ldif(data, controls)
  File "/usr/lib/python2.7/dist-packages/samba/__init__.py", line 224, in 
add_ldif
    self.add(msg, controls)
No apport report written because MaxReports is reached already
                                                              dpkg: error 
processing samba4 (--configure):
 subprocess installed post-installation script returned error exit status 255
Processing triggers for libc-bin ...
Processing triggers for ureadahead ...
Processing triggers for ufw ...
Errors were encountered while processing:
 samba4
E: Sub-process /usr/bin/dpkg returned an error code (1)
gallomimia@draco-lambda:~$ samba4 --configure
No command 'samba4' found, did you mean:
 Command 'samba' from package 'samba4' (universe)
samba4: command not found
gallomimia@draco-lambda:~$ dpkt --configure samba4
No command 'dpkt' found, did you mean:
 Command 'dpkg' from package 'dpkg' (main)
 Command 'dput' from package 'dput' (main)
dpkt: command not found
gallomimia@draco-lambda:~$ dpkg --configure samba4
dpkg: error: requested operation requires superuser privilege
gallomimia@draco-lambda:~$ sudo !!
sudo dpkg --configure samba4
Setting up samba4 (4.0.3+dfsg1-0.1ubuntu1) ...
ERROR(ldb): uncaught exception - operations error at 
../source4/dsdb/samdb/ldb_modules/rootdse.c:501
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 175, 
in _run
    return self.run(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/dbcheck.py", line 108, in 
run
    fix=fix, yes=yes, quiet=quiet, in_transaction=started_transaction)
  File "/usr/lib/python2.7/dist-packages/samba/dbchecker.py", line 62, in 
__init__
    self.ntds_dsa = samdb.get_dsServiceName()
  File "/usr/lib/python2.7/dist-packages/samba/samdb.py", line 856, in 
get_dsServiceName
    res = self.search(base="", scope=ldb.SCOPE_BASE, attrs=["dsServiceName"])
dpkg: error processing samba4 (--configure):
 subprocess installed post-installation script returned error exit status 255
Errors were encountered while processing:
 samba4
gallomimia@draco-lambda:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be upgraded:
  phablet-tools
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 37.1 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? 
Get:1 http://ppa.launchpad.net/phablet-team/tools/ubuntu/ saucy/main 
phablet-tools all 1.0+14.04.20140107-0ubuntu1 [37.1 kB]
Fetched 37.1 kB in 0s (43.4 kB/s)      
(Reading database ... 479891 files and directories currently installed.)
Preparing to replace phablet-tools 1.0+14.04.20140104-0ubuntu1 (using 
.../phablet-tools_1.0+14.04.20140107-0ubuntu1_all.deb) ...
Unpacking replacement phablet-tools ...
Setting up samba4 (4.0.3+dfsg1-0.1ubuntu1) ...
ERROR(ldb): uncaught exception - operations error at 
../source4/dsdb/samdb/ldb_modules/rootdse.c:501
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 175, 
in _run
    return self.run(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/dbcheck.py", line 108, in 
run
    fix=fix, yes=yes, quiet=quiet, in_transaction=started_transaction)
  File "/usr/lib/python2.7/dist-packages/samba/dbchecker.py", line 62, in 
__init__
    self.ntds_dsa = samdb.get_dsServiceName()
  File "/usr/lib/python2.7/dist-packages/samba/samdb.py", line 856, in 
get_dsServiceName
    res = self.search(base="", scope=ldb.SCOPE_BASE, attrs=["dsServiceName"])
dpkg: error processing samba4 (--configure):
 subprocess installed post-installation script returned error exit status 255
Setting up phablet-tools (1.0+14.04.20140107-0ubuntu1) ...
Errors were encountered while processing:
 samba4
E: Sub-process /usr/bin/dpkg returned an error code (1)
gallomimia@draco-lambda:~$ dpkg -f
dpkg-deb: error: --field needs a .deb filename argument

Type dpkg-deb --help for help about manipulating *.deb files;
Type dpkg --help for help about installing and deinstalling packages.
gallomimia@draco-lambda:~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-3.11.0-13 linux-headers-3.11.0-13-generic
  linux-image-3.11.0-13-generic linux-image-extra-3.11.0-13-generic
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up samba4 (4.0.3+dfsg1-0.1ubuntu1) ...
ERROR(ldb): uncaught exception - operations error at 
../source4/dsdb/samdb/ldb_modules/rootdse.c:501
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 175, 
in _run
    return self.run(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/dbcheck.py", line 108, in 
run
    fix=fix, yes=yes, quiet=quiet, in_transaction=started_transaction)
  File "/usr/lib/python2.7/dist-packages/samba/dbchecker.py", line 62, in 
__init__
    self.ntds_dsa = samdb.get_dsServiceName()
  File "/usr/lib/python2.7/dist-packages/samba/samdb.py", line 856, in 
get_dsServiceName
    res = self.search(base="", scope=ldb.SCOPE_BASE, attrs=["dsServiceName"])
dpkg: error processing samba4 (--configure):
 subprocess installed post-installation script returned error exit status 255
Errors were encountered while processing:
 samba4
E: Sub-process /usr/bin/dpkg returned an error code (1)

====
Ah pity tha fool who has to read all that!

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1202918

Title:
  package samba4 4.0.3+dfsg1-0.1ubuntu1 throws exception when
  encountering invalid config option

To manage notifications about this bug go to:
https://bugs.launchpad.net/samba/+bug/1202918/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to