[Samba] Samba upgrade issue . . .

Steve Ankeny steve_a at cinergymetro.net
Fri Jun 19 10:43:28 MDT 2015


On 06/16/2015 04:57 AM, L.P.H. van Belle wrote:
> Ok Steve,
>
> Now its time to edit the status file of the packages.
> make a backup of : /var/lib/dpkg/status
> open it with an editor.
> search for "Package samba" , you probly see" installed ok not-configured.
> and change status to :  Status: install ok installed
>
> after the change run : apt-get -f install
> that should do the trick.
>
> Greetz,
>
> Louis

sorry for the delay, my e-mail provider took two days to recover from a 
server crash

----------------------------------------

ran the upgrade normally, and received the same errors beginning with

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.

edited '/var/lib/dpkg/status' changing 'installed ok half-configured' to 
'installed ok installed'

then installed half-configured packages only with "-f" option

adam at sogo:~$ sudo apt-get -f install samba winbind libnss-winbind 
libpam-winbind openchangeproxy openchangeserver python-ocsmanager
Reading package lists... Done
Building dependency tree
Reading state information... Done
libnss-winbind is already the newest version.
libnss-winbind set to manually installed.
libpam-winbind is already the newest version.
libpam-winbind set to manually installed.
openchangeproxy is already the newest version.
openchangeserver is already the newest version.
python-ocsmanager is already the newest version.
samba is already the newest version.
winbind is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
6 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
dpkg: error: parsing file '/var/lib/dpkg/status' near line 704 package 
'samba':
  Config-Version for package with inappropriate Status
E: Sub-process /usr/bin/dpkg returned an error code (2)


It throws an error on the status line.

Any suggestions?  Should I attempt to upgrade Samba only (without 
'winbind,' etc.)?

I am beginning to wonder why I need 'winbind' with a Samba-AD-DC (it's 
not running), and although Inverse includes an upgrade to the 'winbind' 
packages, it may be I simply might not need it installed.

It would be better to purge something I'm not using instead of having to 
purge the Samba packages.

Would purging the 'winbind' packages resolve my problems with the 
upgrade of Samba?  On the other hand, is that the meaning of the error, 
"subprocess installed post-installation script returned error exit 
status 1"?

I do not know what it's doing at that point, and I don't know how to 
troubleshoot the error.

thx



More information about the samba mailing list