On 18/07/15 15:27, Steve Ankeny wrote:
On 07/01/2015 02:39 PM, Steve Ankeny wrote:
thx, I'll look at it when I'm back off my downtime
On 07/01/2015 12:21 PM, Achim Gottinger wrote:
Hello Steve,
You used purge and not remove so all configs got removed as well.
Take an look in /var/lib/samba you may find backup's there done by
apt/dpkg durcing upgrades.
I have an bunch of backed-up-by-dpkg-on-2015-03-10T16.56.tar.gz
files there.
Seems these include all the necessary ldb's but they all have an
suffix like backed-up-by-dpkg-on-2015-03-10T16.56 here which must be
removed.
achim~
ok, finally gave this a try
However, there are STILL errors --
(here are the steps I used in order)
adam@sogo:~$ sudo apt-get remove samba
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libgnutls28 libhogweed2 libldb-dev libldb1 libnettle4 libsmbclient
python-ldb python-samba samba-common samba-common-bin samba-dev
samba-dsdb-modules samba-libs samba-vfs-modules smbclient
Suggested packages:
gnutls-bin heimdal-clients
The following packages will be REMOVED:
libnss-winbind libpam-winbind openchangeproxy openchangeserver samba
winbind
The following NEW packages will be installed:
libgnutls28 libhogweed2 libnettle4
The following packages will be upgraded:
libldb-dev libldb1 libsmbclient python-ldb python-samba samba-common
samba-common-bin samba-dev samba-dsdb-modules samba-libs
samba-vfs-modules
smbclient
12 upgraded, 3 newly installed, 6 to remove and 8 not upgraded.
Need to get 8,559 kB of archives.
After this operation, 16.1 MB disk space will be freed.
Do you want to continue? [Y/n]Y
(completes without error)
(edit 'dns-nameservers' and restart network)
(reinstall packages that were REMOVED -- using "-f" yields same results)
adam@sogo:~$ sudo apt-get install samba openchangeproxy
openchangeserver winbind libnss-winbind libpam-winbind python-ocsmanager
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
python-mapistore python-rpclib python-sievelib python-spyne
python-support
python-tz
Suggested packages:
bind9 bind9utils ctdb ntp smbldap-tools
The following NEW packages will be installed:
libnss-winbind libpam-winbind openchangeproxy openchangeserver
python-mapistore python-rpclib python-sievelib python-spyne
python-support
python-tz samba winbind
The following packages will be upgraded:
python-ocsmanager
1 upgraded, 12 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,833 kB of archives.
After this operation, 21.7 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(errors follow -- highlighted)
Setting up samba (2:4.1.18+dfsg-3~inverse1) ...
Installing new version of config file /etc/logrotate.d/samba ...
Installing new version of config file /etc/init/smbd.conf ...
Installing new version of config file /etc/init.d/samba ...
*update-rc.d: /etc/init.d/samba exists during rc.d purge (use -f to
force)**
**dpkg: error processing package samba (--configure):**
** subprocess installed post-installation script returned error exit
status 1**
*
OK, This error seems to be coming from the debian postinst script:
if dpkg --compare-versions "$2" lt-nl 2:4.1.13+dfsg-2~; then
# on upgrades from wheezy to jessie, the samba init script should
not stay
# active, see #766690
update-rc.d samba remove
fi
This is from 'man update-rc.d' :
REMOVING SCRIPTS
When invoked with the remove option, update-rc.d removes any
links in
the /etc/rcrunlevel.d directories to the script
/etc/init.d/name. The
script must have been deleted already. If the script is still
present
then update-rc.d aborts with an error message.
So, 'Installing new version of config file /etc/init.d/samba ...'
installs the script
The debian postinst script tries to remove the links from
'/etc/rcrunlevel.d' but fails because the script exists (see line above)
There is a way around this, it doesn't matter if the script exists if
the links don't, so, in my opinion, whoever wrote the script should have
added '-f', this would remove the links even if the script exists.
Of course, this is really an artifact of using systemd.
Rowland
**dpkg: dependency problems prevent configuration of winbind:
winbind depends on samba (= 2:4.1.18+dfsg-3~inverse1); however:
Package samba is not configured yet.
dpkg: error processing package winbind (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libnss-winbind:amd64:
libnss-winbind:amd64 depends on winbind (= 2:4.1.18+dfsg-3~inverse1);
however:
Package winbind is not configured yet.
dpkg: error processing package libnss-winbind:amd64 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libpam-winbind:amd64:
libpam-winbind:amd64 depends on winbind (= 2:4.1.18+dfsg-3~inverse1);
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 openchangeproxy:
openchangeproxy depends on samba (>= 4.1.3); however:
PackNo 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.
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
Package samba is not configured yet.
dpkg: error processing package openchangeproxy (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of openchangeserver:
openchangeserver depends on openchangeproxy; however:
Package openchangeproxy is not configured yet.
openchangeserver depends on samba (>= 2:4.1.3); however:
Package samba is not configured yet.
dpkg: error processing package openchangeserver (--configure):
dependency problems - leaving unconfigured
Setting up python-mapistore (3:2.3-zentyal11) ...
Setting up python-support (1.0.15) ...
Setting up python-tz (2012c-1build1) ...
Setting up python-spyne (2.9.3-1~inverse) ...
Setting up python-rpclib (2.8.0-rc-1~inverse) ...
Setting up python-sievelib (0.8-1) ...
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of python-ocsmanager:
python-ocsmanager depends on samba (>= 4.1.3); however:
Package samba is not configured yet.
dpkg: error processing package python-ocsmanager (--configure):
dependency problems - leaving unconfigured
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for python-support (1.0.15) ...
E: Sub-process /usr/bin/dpkg returned an error code (1)
adam@sogo:~$
(reading /var/lib/dpkg/status I find the following under 'samba')
Package: samba
Status: install ok installed
Priority: optional
Section: net
Installed-Size: 11158
Maintainer: Ubuntu Developers <[email protected]>
Architecture: amd64
Version: 2:4.1.6+dfsg-1ubuntu2.14.04.7
Replaces: libsamdb0 (<< 4.0.0~alpha17~), python-samba (<<
2:4.1.4+dfsg-3), samba-ad-dc, samba-common (<= 2.0.5a-2), samba-doc
(<< 2:4.0.5~), samba-libs (<< 2:4.1.4+dfsg-2), samba4
Of interest to me is "*Replaces: . . . samba-ad-dc*"
I am very much interested in 'samba-ad-dc' THAT's what's running on
my server.
So, my questions --
(1) Is there a FIX for the errors encountered above? Using 'dpkg' for
instance?
(2) Are there STILL issues with the Inverse 'samba' package?
(3) Do I actually NEED the Inverse 'samba' package if 'samba-ad-dc' is
being used?
(4) And, if so, how do I program around the lack of 'openchangeproxy'
& 'openchangeserver' etc?
Thanks for any suggestions.
I do not want to rebuild my entire Samba domain server (nor
re-provision it)
--
[email protected]
https://inverse.ca/sogo/lists