[Samba] Samba upgrade issue . . .

L.P.H. van Belle belle at bazuin.nl
Mon Jun 15 07:45:29 MDT 2015


Ok Steve, 

to be sure.. 
run : 
apt-key adv --keyserver keys.gnupg.net --recv-key 0x810273C4 

if not done yet. 
add to /etc/apt/source.list.d/openchange.list
deb http://inverse.ca/ubuntu trusty trusty 
or
deb http://inverse.ca/ubuntu-nightly trusty trusty

to force the needed packages. 
__COPY_PAST_START 
cat << EOF >> /etc/apt/preferences.d/preferences-ubuntu-trusty
Package: *
Pin: release o=Ubuntu
Pin-Priority: 500

Package: *
Pin: release o=Inverse Ubuntu distribution
Pin-Priority: 600

EOF
__COPY_PAST_END

( make sure you always have 1 empty line between the different pinnings. ) 

apt-get update 
apt-cache policy samba. 

should now say samba pin 600 from inverse. 

Find out other pinning info, this is how i do it. 
ls /var/lib/apt/lists/*Release 
cat (a file of the above command) | head -n10
and some pinning info here : 
http://www.argon.org/~roderick/apt-pinning.html

( my example for debian ) 

Package: *
Pin: release n=wheezy,o=Debian
Pin-Priority: 500

Package: *
Pin: release n=wheezy,l=Debian-Security
Pin-Priority: 500

Package: *
Pin: release n=wheezy-updates
Pin-Priority: 500

Package: *
Pin: release a=testing
Pin-Priority: 100

Package: *
Pin: release a=unstable
Pin-Priority: 50

Package: *
Pin: release n=wheezy-backports
Pin-Priority: 400

Package: *
Pin: release o=SerNet,a=wheezy,n=wheezy
Pin-Priority: 600

Package: *
Pin: release o=Dell Inc,a=wheezy,n=wheezy
Pin-Priority: 300

Package: *
Pin: origin apt.yourownaptserver.tld
Pin-Priority: 400

all packages from Sernet are preffered, in this case.
( my AD-DC ) 


and if upgrade failes again on samba, then the quickest way is hack the status file. 
since the files already exist on the system and samba is installed and running this should not harm. 
make a backup of : /var/lib/dpkg/status 
open it with an editor. 
search for "Package samba"
and change status to : 
Status: install ok installed 
you probly see" installed ok not-configured. 

!! If you dont see an "Installed-Size" then dont change it. 
than its not installed yet. 


Greetz, 

Louis





>-----Oorspronkelijk bericht-----
>Van: rowlandpenny at googlemail.com 
>[mailto:samba-bounces at lists.samba.org] Namens Rowland Penny
>Verzonden: maandag 15 juni 2015 15:17
>Aan: samba at lists.samba.org
>Onderwerp: Re: [Samba] Samba upgrade issue . . .
>
>On 15/06/15 14:01, L.P.H. van Belle wrote:
>> and just a comment..
>>
>> when i look at :
>> 
>http://inverse.ca/ubuntu-nightly/dists/trusty/trusty/binary-amd
64/Packages
>> /search for : 2:4.1.18+dfsg-3~inverse1
>> Replaces: libpam-winbind (<< 2:3.6.5-2), samba (<= 2.2.3-2), 
>winbind (<< 2:3.5.11~dfsg-3), winbind4
>> => winbind4..
>>
>> this all is build agains the old "samba4" naming which is 
>not used anymore.
>>
>> anyway..
>>
>> i see..
>> samba 4.1.6 	( ubuntu )
>> samba 4.1.18	( sogo /inverse )
>> winbind4 naming..
>>
>> what the output of :
>> apt-cache policy samba
>> apt-cache policy winbind
>>
>> and if you have one, post your preferences file.
>>
>>
>> Greetz,
>>
>> Louis
>>
>>
>>> -----Oorspronkelijk bericht-----
>>> Van: belle at bazuin.nl [mailto:samba-bounces at lists.samba.org]
>>> Namens L.P.H. van Belle
>>> Verzonden: maandag 15 juni 2015 14:51
>>> Aan: samba at lists.samba.org
>>> Onderwerp: Re: [Samba] Samba upgrade issue . . .
>>>
>>> look : winbind depends on samba (= 
>2:4.1.18+dfsg-3~inverse1); however:
>>>
>>>> 2:4.1.18+dfsg-3~inverse1
>>> so mixed setup of ubuntu with inverse packages of samba.
>>> You need to use the inverse packages of samba to keep
>>> openchange working.
>>> I suggest you set your package pinning.
>>>
>>> OR !
>>> remove the inverse : winbind version and install the ubuntu version.
>>>
>>>
>>> Greetz,
>>>
>>> Louis
>>>
>>>
>>>> -----Oorspronkelijk bericht-----
>>>> Van: steve_a at cinergymetro.net
>>>> [mailto:samba-bounces at lists.samba.org] Namens Steve Ankeny
>>>> Verzonden: maandag 15 juni 2015 13:27
>>>> Aan: samba at lists.samba.org
>>>> Onderwerp: Re: [Samba] Samba upgrade issue . . .
>>>>
>>>> On 06/15/2015 07:14 AM, Rowland Penny wrote:
>>>>> On 15/06/15 11:52, Steve Ankeny wrote:
>>>>>> I have a "Samba | SOGo | OpenChange" server running in VMware.
>>>>>>
>>>>>> I get the following message when running 'apt-get upgrade' --
>>>>>>
>>>>>> The following packages have been kept back:
>>>>>>    libldb-dev libldb1 libmapi0 libmapiproxy0 libmapistore0
>>>> libnss-winbind
>>>>>>    libpam-winbind libsmbclient libwbclient0 openchangeproxy
>>>>>> openchangeserver
>>>>>>    python-ldb python-ocsmanager python-samba samba samba-common
>>>>>>    samba-common-bin samba-dev samba-dsdb-modules samba-libs
>>>>>> samba-vfs-modules
>>>>>>    smbclient sogo sogo-activesync sogo-openchange winbind
>>>>>> 0 upgraded, 0 newly installed, 0 to remove and 26 not upgraded.
>>>>>>
>>>>>> I've taken a "snapshot" of my virtual machine, and I've ran
>>>> 'apt-get
>>>>>> install --s' to see if there are any potential errors (and
>>>> there are
>>>>>> none)  However, when I actually attempt the install, I find the
>>>>>> following --
>>>>>>
>>>>>> The following NEW packages will be installed:
>>>>>>    libgnutls28 libhogweed2 libnettle4 python-mapistore 
>python-rpclib
>>>>>>    python-sievelib python-spyne python-support python-tz
>>>>>> The following packages will be upgraded:
>>>>>>    libldb-dev libldb1 libmapi0 libmapiproxy0 libmapistore0
>>>> libnss-winbind
>>>>>>    libpam-winbind libsmbclient libwbclient0 openchangeproxy
>>>>>> openchangeserver
>>>>>>    python-ldb python-ocsmanager python-samba samba samba-common
>>>>>>    samba-common-bin samba-dev samba-dsdb-modules samba-libs
>>>>>> samba-vfs-modules
>>>>>>    smbclient sogo sogo-activesync sogo-openchange winbind
>>>>>> 26 upgraded, 9 newly installed, 0 to remove and 3 not upgraded.
>>>>>> Need to get 17.5 MB of archives.
>>>>>>
>>>>>> In the text that follows, problems seem to start here --
>>>>>>
>>>>>> dpkg: error processing package samba (--configure):
>>>>>>   subprocess installed post-installation script returned 
>error exit
>>>>>> status 1
>>>>>> 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.
>>>>>>
>>>>>>
>>>>>> Doing a bit of research, I find a suggestion here --
>>>>>>
>>>>>>
>>>> http://languor.us/samba-subprocess-post-installation-script-ret
>>>> urned-error-exit-status-1
>>>>>>
>>>>>> "create a blank smb.conf in /etc/samba, then purge and
>>>> reinstall samba"
>>>>>> *Is this the fix for this specific error?*  I am concerned about
>>>>>> purging my Samba DB
>>>>>>
>>>>>> Currently, I have the following installed --
>>>>>>
>>>>>> adam at sogo:~$ sudo dpkg-query -l | egrep 'samba|smb|nmb|winbind'
>>>>>> ii  libnss-winbind:amd64 2:4.1.6+dfsg-1ubuntu2.14.04.7
>>>>>> ii  libpam-winbind:amd64 2:4.1.6+dfsg-1ubuntu2.14.04.7
>>>>>> ii  libsmbclient:amd64 2:4.1.6+dfsg-1ubuntu2.14.04.7
>>>>>> ii  libwbclient0:amd64 2:4.1.6+dfsg-1ubuntu2.14.04.7
>>>>>> ii  python-samba 2:4.1.6+dfsg-1ubuntu2.14.04.7
>>>>>> ii  samba 2:4.1.6+dfsg-1ubuntu2.14.04.7
>>>>>> ii  samba-common 2:4.1.6+dfsg-1ubuntu2.14.04.7
>>>>>> ii  samba-common-bin 2:4.1.6+dfsg-1ubuntu2.14.04.7
>>>>>> ii  samba-dev 2:4.1.6+dfsg-1ubuntu2.14.04.7
>>>>>> ii  samba-dsdb-modules 2:4.1.6+dfsg-1ubuntu2.14.04.7
>>>>>> ii  samba-libs:amd64 2:4.1.6+dfsg-1ubuntu2.14.04.7
>>>>>> ii  samba-vfs-modules 2:4.1.6+dfsg-1ubuntu2.14.04.7
>>>>>> ii  smbclient 2:4.1.6+dfsg-1ubuntu2.14.04.7
>>>>>> ii  winbind 2:4.1.6+dfsg-1ubuntu2.14.04.7
>>>>>>
>>>>>> My current 'smb.conf. reads --
>>>>>>
>>>>>> # Global parameters
>>>>>> [global]
>>>>>>          workgroup = MEADORANDCO
>>>>>>          realm = meadorandco.com
>>>>>>          netbios name = SOGO
>>>>>>          server role = active directory domain controller
>>>>>>          dns forwarder = 192.168.121.1
>>>>>>          idmap_ldb:use rfc2307 = yes
>>>>>>          passdb backend = samba
>>>>>>          allow dns updates = nonsecure
>>>>>>
>>>>>>          ### Configuration required by OpenChange server ###
>>>>>>          #dcerpc endpoint servers = epmapper, mapiproxy, 
>dnsserver
>>>>>>          #dcerpc endpoint servers = +epmapper, +mapiproxy
>>>>>>          #dcerpc_mapiproxy:server = true
>>>>>>          #dcerpc_mapiproxy:interfaces = exchange_emsmdb,
>>>> exchange_nsp,
>>>>>> exchange_ds_rfr
>>>>>>          ### Configuration required by OpenChange server ###
>>>>>>
>>>>>>          #mapistore:namedproperties = mysql
>>>>>>          #namedproperties:mysql_user = openchange-user
>>>>>>          #namedproperties:mysql_pass = $passwd
>>>>>>          #namedproperties:mysql_host = localhost
>>>>>>          #namedproperties:mysql_db = openchange
>>>>>>          #mapistore:indexing_backend =
>>>>>> mysql://openchange-user:$passwd@localhost/openchange
>>>>>>          #mapiproxy:openchangedb =
>>>>>> mysql://openchange-user:$passwd@localhost/openchange
>>>>>>
>>>>>> [netlogon]
>>>>>>          path = /var/lib/samba/sysvol/meadorandco.com/scripts
>>>>>>          read only = No
>>>>>>
>>>>>> [sysvol]
>>>>>>          path = /var/lib/samba/sysvol
>>>>>>          read only = No
>>>>>>
>>>>>> As you can see, I have commented out the 'dcerpc' calls, as I had
>>>>>> problems with those.
>>>>>>
>>>>>> I believe Rowland suggested using 'dcerpc endpoint servers =
>>>>>> +epmapper, +mapiproxy' but I will have to review his suggestion
>>>>>> before using OpenChange.  It may be I have to do that before the
>>>>>> upgrade.
>>>>>>
>>>>>> Any help would be appreciated. *What is the specific fix for
>>>>>> subprocess post-installation**error?*
>>>>>>
>>>>>> thx
>>>>>>
>>>>> What OS are you upgrading on ? where did the old samba
>>> packages come
>>>>> from, your OS or inverse, where do think the new packages
>>> are coming
>>>>> from ?
>>>>>
>>>>> I do not use sogo any more, more because of problems like 
>this than
>>>>> anything else, I personally don't think openchange will get
>>> anywhere
>>>>> until you can install it on top of *any* version of samba4, not a
>>>>> specific version as at present. Having said that, if I check what
>>>>> 'dcerpc endpoint servers' are running on my DC, I get this:
>>>>>
>>>>> dcerpc endpoint servers = epmapper, wkssvc, rpcecho, samr,
>>> netlogon,
>>>>> lsarpc, spoolss, drsuapi, dssetup, unixinfo, browser, eventlog6,
>>>>> backupkey, dnsserver
>>>>>
>>>>> So you only need to add 'mapiproxy' as 'epmapper' is
>>> already running.
>>>>> Rowland
>>>>>
>>>> adam at sogo:~$ lsb_release -a
>>>> No LSB modules are available.
>>>> Distributor ID:    Ubuntu
>>>> Description:    Ubuntu 14.04.2 LTS
>>>> Release:    14.04
>>>> Codename:    trusty
>>>>
>>>> The initial Samba packages from from Ubuntu repositories, 
>and the new
>>>> ones come from Inverse.
>>>>
>>>> I've been happy with SOGo & OpenChange until this round of
>>> upgrades (I
>>>> wasn't using Samba then)
>>>>
>>>> thx, Rowland
>>>>
>>>>
>>>> -- 
>>>> To unsubscribe from this list go to the following URL and read the
>>>> instructions:  https://lists.samba.org/mailman/options/samba
>>>>
>>>>
>>> -- 
>>> To unsubscribe from this list go to the following URL and read the
>>> instructions:  https://lists.samba.org/mailman/options/samba
>>>
>>>
>
>Close Louis, but wrong package :-)
>
>Package: samba Version: 2:4.1.18+dfsg-3~inverse1
>
>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
>
>The Ubuntu 'samba' package should be replaced by the Inverse 'samba' 
>package but is failing on the post-install script which seems  
>to do the 
>weirdest things.
>
>Does the OP have a smb.conf ? is samba running ?
>
>Rowland
>
>-- 
>To unsubscribe from this list go to the following URL and read the
>instructions:  https://lists.samba.org/mailman/options/samba
>
>



More information about the samba mailing list