On 07/18/2015 05:34 PM, Christian M. Jensen wrote:
hi.

this is just a suggestion, if the problem really just is the postinst script

download the package using wget or other local tool
then unpack it and extract the DEBIAN folder from it like this

*NOTE* foo.deb is the package you modify
*NOTE* tmpdir is the folder you extract the deb archive to.
*NOTE* hacked.deb is the package you install!

    dpkg-deb -x foo.deb tmpdir
    dpkg-deb --control foo.deb tmpdir/DEBIAN

now edit the postinst script

     nano tmpdir/DEBIAN/control

now pack the deb file and install it

    dpkg -b tmpdir hacked.deb
    dpkg -i hacked.deb

I've done this my self a few times, and might just be what you need if you don't want to compile it
just a suggestion.

Regards
Christian Jensen

thx, Christian

I tried Rowland's suggestion last evening ('sudo apt-get -f install'), and it didn't resolve the issue.

It certainly seems to me that I need a CORRECT 'samba' package, and if it's strictly the postinst script, as the error notes, and as Rowland suggested, then your methodology just might get me over the hump.

here were the latest steps I took --

adam@sogo:~$ sudo apt-get remove samba  (no errors)

adam@sogo:~$ sudo apt-get update && sudo apt-get upgrade (installed remaining packages)

adam@sogo:~$ sudo apt-get install python-ocsmanager (package withheld above)

('python-ocsmanager' requires 'samba' which generates the following error)

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

(edit /var/lib/dpkg/status to read "install ok installed" then)

adam@sogo:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
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.
dpkg: error: parsing file '/var/lib/dpkg/status' near line 645 package 'samba':
 Config-Version for package with inappropriate Status
E: Sub-process /usr/bin/dpkg returned an error code (2)
adam@sogo:~$

So, it appears to me that SOMEONE needs to edit the post-installation script.

I will try one more time using the 'sudo update-rc.d -f samba remove' command (as I did before)

Then I'll try your suggestion (probably this evening EDT -- NY time)

thx for the suggestion



--
[email protected]
https://inverse.ca/sogo/lists

Reply via email to