package samba4 4.0.0~alpha18.dfsg1-4ubuntu2 failed to install/upgrade: subprocess installed post-installation script returned error exit status 126

Bug #990084 reported by Yuriy Grishin
This bug report is a duplicate of:  Bug #988509: setoption.pl is not executable. Edit Remove
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
samba4 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

This bug was founded after upgrate ubuntu to 12.04.

ProblemType: Package
DistroRelease: Ubuntu 12.04
Package: samba4 4.0.0~alpha18.dfsg1-4ubuntu2
ProcVersionSignature: Ubuntu 3.2.0-24.37-generic 3.2.14
Uname: Linux 3.2.0-24-generic i686
NonfreeKernelModules: fglrx
ApportVersion: 2.0.1-0ubuntu6
Architecture: i386
Date: Sat Apr 28 00:03:08 2012
DuplicateSignature:
 Setting up samba4 (4.0.0~alpha18.dfsg1-4ubuntu2) ...
 /var/lib/dpkg/info/samba4.postinst: 14: /var/lib/dpkg/info/samba4.postinst: /usr/share/samba/setoption.pl: Permission denied
 dpkg: error processing samba4 (--configure):
  subprocess installed post-installation script returned error exit status 126
ErrorMessage: subprocess installed post-installation script returned error exit status 126
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007)
SourcePackage: samba4
Title: package samba4 4.0.0~alpha18.dfsg1-4ubuntu2 failed to install/upgrade: subprocess installed post-installation script returned error exit status 126
UpgradeStatus: Upgraded to precise on 2012-04-27 (0 days ago)

Revision history for this message
Yuriy Grishin (yvgrishin) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in samba4 (Ubuntu):
status: New → Confirmed
Revision history for this message
Julien DIDRON (julien-didron) wrote :

Hi All,

I was able to have it work after a little bit of trial and error.
I couldn't understand, after looking at the scripts, why we get this "permission denied" message.
It turns out the permissions aren't set properly:
- chmod +x /usr/share/samba/setoption.pl

It will however still fail from there on if you type "apt-get install".
Instead edit /etc/samba/smb.conf and uncomment the lines under [netlogon].
Also add the following lines underneath the [netlogon} share declaration, in order to declare [sysvol]:
[sysvol]
        path = ${SYSVOLPATH}
        read only = no

I have to say I actually set ${SYSVOLPATH} to /home/samba/sysvol in order to avoid more complaints, not sure whether that's a good idea.
I only made a brief use of Samba to transfer a few files from Windows, come to think of it I should have used ftp :o)
The system seemed stable, though I can't say that I have extensively tested it.

Cheers,
Julien

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.