*** This bug is a duplicate of bug 988509 *** https://bugs.launchpad.net/bugs/988509
Julien DIDRON: I've changed the permissions on setoption.pl as you've described which did get rid of the original error, however the rest of your instruction produced no solution and gave a new error: Here is what happens from the CLI: ~$ sudo dpkg --configure samba4 Setting up samba4 (4.0.0~alpha18.dfsg1-4ubuntu2) ... Administrator password will be set randomly! ProvisioningError: guess_names: 'realm =' was not specified in supplied /etc/samba/smb.conf. Please remove the smb.conf file and let provision generate it dpkg: error processing samba4 (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: samba4 ~$ NOTE 01: The only location within the file that contains the text "[netlogon] share" was line 160, and this did not appear to be a declaration of anything. I attempted to add the declaration you gave in that section starting at line 163, and after saving the file and retrying the command given above, the same error message is produced as listed above. NOTE 02: After removing the declaration that was added in NOTE 01 above (since it didn't seem to make a difference), I attempted to follow the error messages suggestions by removing /etc/samba/smb.conf (actually I just renamed it to something unrecognizable by the script that creates it (where the script creating /etc/samba/smb.conf appears to be /usr/share/samba/setoption.pl)), but /usr/share/samba/setoption.pl compained that it couln't write to /etc/samba/smb.conf so I created an empty file and named it smb.conf in the /etc/samba directory. Then /usr/share/samba/setoption.pl wrote two lines to that empty file: -------- Lines written to the file begins -------- realm = server role = dc -------- Lines written to the file ends -------- To clarify since I started with an empty file, the above two lines are the only two lines that were written to, and are the only lines in: /etc/samba/smb.conf at this point. In the original /etc/samba/smb.conf file that was renamed to something unrecognizable by /usr/share/samba/setoption.pl these two lines are already present on lines 292 and 293 respectivly. NOTE 03: Given the informaton from NOTE 01 and NOTE 02 above, it seems that /usr/share/samba/setoption.pl creates an error condition in /etc/samba/smb.conf by creating it with an empty "realm = " string. Quations: 1.) Does anybody know what realm means in this case, and what should it be equal to? 2.) Does any one know how to get /usr/share/samba/setoption.pl to stop creating that empty "realm = " statement in /etc/samba/smb.conf to see if that will fix the problem? If so can you report your results here? Also if any one else is having this problem, please remember to click on the line that is about 7 lines down from the very top of this webpage, titled "This bug affects you and n other person" (where "n" will be some number that represents the numbef of people who have clicked on that line). Clicking on that link helps to rate the importance of this bug report. Thanks. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/992820 Title: package samba4 4.0.0~alpha18.dfsg1-4ubuntu2 failed to install/upgrade: subprocess installed post-installation script returned error exit status 126 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/samba4/+bug/992820/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs