← Back to team overview

enterprise-support team mailing list archive

Re: [Question #214401]: error: /var/lib/dpkg/info/samba4.postinst: 14: /var/lib/dpkg/info/samba4.postinst: /usr/share/samba/setoption.pl: Permission denied subprocess installed post-installation script returned error exit status 126 in Ubuntu 12.04 LTS

 

Question #214401 on samba4 in Ubuntu changed:
https://answers.launchpad.net/ubuntu/+source/samba4/+question/214401

William Pritchard gave more information on the question:
Hi Mark,
Tried this but it failed see below William


william@Asusdesktop:~$ sudo chmod +x /usr/share/samba/setoption.pl
[sudo] password for william: 
william@Asusdesktop:~$ sudo chmod +x /usr/share/samba/setoption.pl
william@Asusdesktop:~$ sudo apt-get update
[sudo] password for william: 
Ign http://extras.ubuntu.com precise InRelease
Ign http://security.ubuntu.com precise-security InRelease                      
Ign http://gb.archive.ubuntu.com precise InRelease                             
Ign http://gb.archive.ubuntu.com precise-updates InRelease                     
Ign http://gb.archive.ubuntu.com precise-backports InRelease                   
Ign http://gb.archive.ubuntu.com precise-proposed InRelease                    
Hit http://extras.ubuntu.com precise Release.gpg                               
Hit http://security.ubuntu.com precise-security Release.gpg                    
Hit http://gb.archive.ubuntu.com precise Release.gpg                           
Hit http://extras.ubuntu.com precise Release                                   
Hit http://security.ubuntu.com precise-security Release                        
Get:1 http://gb.archive.ubuntu.com precise-updates Release.gpg [198 B]         
Hit http://gb.archive.ubuntu.com precise-backports Release.gpg                 
Hit http://extras.ubuntu.com precise/main i386 Packages                        
Hit http://security.ubuntu.com precise-security/main Sources                   
Get:2 http://gb.archive.ubuntu.com precise-proposed Release.gpg [198 B]        
Ign http://extras.ubuntu.com precise/main TranslationIndex                     
Hit http://gb.archive.ubuntu.com precise Release                               
Get:3 http://gb.archive.ubuntu.com precise-updates Release [49.6 kB]           
Hit http://security.ubuntu.com precise-security/restricted Sources             
Hit http://security.ubuntu.com precise-security/universe Sources               
Hit http://security.ubuntu.com precise-security/multiverse Sources             
Hit http://security.ubuntu.com precise-security/main i386 Packages             
Hit http://security.ubuntu.com precise-security/restricted i386 Packages       
Hit http://security.ubuntu.com precise-security/universe i386 Packages         
Hit http://security.ubuntu.com precise-security/multiverse i386 Packages       
Hit http://security.ubuntu.com precise-security/main TranslationIndex          
Hit http://security.ubuntu.com precise-security/multiverse TranslationIndex    
Ign http://archive.canonical.com precise InRelease                             
Hit http://security.ubuntu.com precise-security/restricted TranslationIndex    
Hit http://security.ubuntu.com precise-security/universe TranslationIndex      
Hit http://archive.canonical.com precise Release.gpg                           
Hit http://gb.archive.ubuntu.com precise-backports Release                     
Get:4 http://gb.archive.ubuntu.com precise-proposed Release [49.6 kB]          
Hit http://security.ubuntu.com precise-security/main Translation-en            
Hit http://security.ubuntu.com precise-security/multiverse Translation-en      
Hit http://archive.canonical.com precise Release                               
Hit http://security.ubuntu.com precise-security/restricted Translation-en      
Hit http://gb.archive.ubuntu.com precise/main Sources                          
Hit http://gb.archive.ubuntu.com precise/restricted Sources                    
Hit http://gb.archive.ubuntu.com precise/universe Sources                      
Hit http://gb.archive.ubuntu.com precise/multiverse Sources                    
Hit http://gb.archive.ubuntu.com precise/main i386 Packages                    
Hit http://archive.canonical.com precise/partner i386 Packages                 
Hit http://security.ubuntu.com precise-security/universe Translation-en        
Hit http://gb.archive.ubuntu.com precise/restricted i386 Packages     
Hit http://gb.archive.ubuntu.com precise/universe i386 Packages       
Hit http://gb.archive.ubuntu.com precise/multiverse i386 Packages     
Hit http://gb.archive.ubuntu.com precise/main TranslationIndex        
Hit http://gb.archive.ubuntu.com precise/multiverse TranslationIndex  
Hit http://gb.archive.ubuntu.com precise/restricted TranslationIndex  
Hit http://gb.archive.ubuntu.com precise/universe TranslationIndex    
Get:5 http://gb.archive.ubuntu.com precise-updates/main Sources [190 kB]
Ign http://archive.canonical.com precise/partner TranslationIndex            
Get:6 http://gb.archive.ubuntu.com precise-updates/restricted Sources [4,419 B]
Get:7 http://gb.archive.ubuntu.com precise-updates/universe Sources [63.4 kB]
Get:8 http://gb.archive.ubuntu.com precise-updates/multiverse Sources [4,241 B]
Get:9 http://gb.archive.ubuntu.com precise-updates/main i386 Packages [438 kB] 
Ign http://extras.ubuntu.com precise/main Translation-en_GB                    
Ign http://extras.ubuntu.com precise/main Translation-en                       
Get:10 http://gb.archive.ubuntu.com precise-updates/restricted i386 Packages [8,374 B]
Get:11 http://gb.archive.ubuntu.com precise-updates/universe i386 Packages [155 kB]
Get:12 http://gb.archive.ubuntu.com precise-updates/multiverse i386 Packages [9,661 B]
Hit http://gb.archive.ubuntu.com precise-updates/main TranslationIndex       
Hit http://gb.archive.ubuntu.com precise-updates/multiverse TranslationIndex
Hit http://gb.archive.ubuntu.com precise-updates/restricted TranslationIndex
Hit http://gb.archive.ubuntu.com precise-updates/universe TranslationIndex
Hit http://gb.archive.ubuntu.com precise-backports/main Sources
Hit http://gb.archive.ubuntu.com precise-backports/restricted Sources
Hit http://gb.archive.ubuntu.com precise-backports/universe Sources
Hit http://gb.archive.ubuntu.com precise-backports/multiverse Sources
Ign http://archive.canonical.com precise/partner Translation-en_GB     
Hit http://gb.archive.ubuntu.com precise-backports/main i386 Packages  
Hit http://gb.archive.ubuntu.com precise-backports/restricted i386 Packages
Hit http://gb.archive.ubuntu.com precise-backports/universe i386 Packages
Hit http://gb.archive.ubuntu.com precise-backports/multiverse i386 Packages
Hit http://gb.archive.ubuntu.com precise-backports/main TranslationIndex
Hit http://gb.archive.ubuntu.com precise-backports/multiverse TranslationIndex
Ign http://archive.canonical.com precise/partner Translation-en        
Hit http://gb.archive.ubuntu.com precise-backports/restricted TranslationIndex
Hit http://gb.archive.ubuntu.com precise-backports/universe TranslationIndex
Get:13 http://gb.archive.ubuntu.com precise-proposed/restricted i386 Packages [4,250 B]
Get:14 http://gb.archive.ubuntu.com precise-proposed/main i386 Packages [29.7 kB]
Get:15 http://gb.archive.ubuntu.com precise-proposed/multiverse i386 Packages [14 B]
Get:16 http://gb.archive.ubuntu.com precise-proposed/universe i386 Packages [16.9 kB]
Hit http://gb.archive.ubuntu.com precise-proposed/main TranslationIndex
Hit http://gb.archive.ubuntu.com precise-proposed/multiverse TranslationIndex
Hit http://gb.archive.ubuntu.com precise-proposed/restricted TranslationIndex
Hit http://gb.archive.ubuntu.com precise-proposed/universe TranslationIndex
Hit http://gb.archive.ubuntu.com precise/main Translation-en_GB
Hit http://gb.archive.ubuntu.com precise/main Translation-en
Hit http://gb.archive.ubuntu.com precise/multiverse Translation-en_GB
Hit http://gb.archive.ubuntu.com precise/multiverse Translation-en
Hit http://gb.archive.ubuntu.com precise/restricted Translation-en_GB
Hit http://gb.archive.ubuntu.com precise/restricted Translation-en
Hit http://gb.archive.ubuntu.com precise/universe Translation-en_GB
Hit http://gb.archive.ubuntu.com precise/universe Translation-en
Hit http://gb.archive.ubuntu.com precise-updates/main Translation-en_GB
Hit http://gb.archive.ubuntu.com precise-updates/main Translation-en
Hit http://gb.archive.ubuntu.com precise-updates/multiverse Translation-en_GB
Hit http://gb.archive.ubuntu.com precise-updates/multiverse Translation-en
Hit http://gb.archive.ubuntu.com precise-updates/restricted Translation-en_GB
Hit http://gb.archive.ubuntu.com precise-updates/restricted Translation-en
Hit http://gb.archive.ubuntu.com precise-updates/universe Translation-en_GB
Hit http://gb.archive.ubuntu.com precise-updates/universe Translation-en
Hit http://gb.archive.ubuntu.com precise-backports/main Translation-en
Hit http://gb.archive.ubuntu.com precise-backports/multiverse Translation-en
Hit http://gb.archive.ubuntu.com precise-backports/restricted Translation-en
Hit http://gb.archive.ubuntu.com precise-backports/universe Translation-en
Hit http://gb.archive.ubuntu.com precise-proposed/main Translation-en_GB
Hit http://gb.archive.ubuntu.com precise-proposed/main Translation-en
Hit http://gb.archive.ubuntu.com precise-proposed/multiverse Translation-en_GB
Hit http://gb.archive.ubuntu.com precise-proposed/multiverse Translation-en
Hit http://gb.archive.ubuntu.com precise-proposed/restricted Translation-en_GB
Hit http://gb.archive.ubuntu.com precise-proposed/restricted Translation-en
Hit http://gb.archive.ubuntu.com precise-proposed/universe Translation-en_GB
Hit http://gb.archive.ubuntu.com precise-proposed/universe Translation-en
Fetched 1,023 kB in 2s (508 kB/s)                
Reading package lists... Done
W: Duplicate sources.list entry http://archive.canonical.com/ubuntu/ precise/partner i386 Packages (/var/lib/apt/lists/archive.canonical.com_ubuntu_dists_precise_partner_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems
william@Asusdesktop:~$ sudo apt-get remove --purge samba4
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  gir1.2-json-1.0 gir1.2-timezonemap-1.0 gir1.2-xkl-1.0
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED
  samba4*
0 upgraded, 0 newly installed, 1 to remove and 6 not upgraded.
1 not fully installed or removed.
After this operation, 11.2 MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 361275 files and directories currently installed.)
Removing samba4 ...
samba4 stop/waiting
Purging configuration files for samba4 ...
Processing triggers for ureadahead ...
Processing triggers for man-db ...
william@Asusdesktop:~$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  apt apt-transport-https apt-utils coreutils libapt-inst1.4 libapt-pkg4.12
6 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 4,532 kB of archives.
After this operation, 1,024 B disk space will be freed.
Do you want to continue [Y/n]? y
Get:1 http://gb.archive.ubuntu.com/ubuntu/ precise-proposed/main coreutils i386 8.13-3ubuntu3.2 [2,181 kB]
Get:2 http://gb.archive.ubuntu.com/ubuntu/ precise-proposed/main libapt-pkg4.12 i386 0.8.16~exp12ubuntu10.6 [943 kB]
Get:3 http://gb.archive.ubuntu.com/ubuntu/ precise-proposed/main apt i386 0.8.16~exp12ubuntu10.6 [1,095 kB]
Get:4 http://gb.archive.ubuntu.com/ubuntu/ precise-proposed/main libapt-inst1.4 i386 0.8.16~exp12ubuntu10.6 [102 kB]
Get:5 http://gb.archive.ubuntu.com/ubuntu/ precise-proposed/main apt-utils i386 0.8.16~exp12ubuntu10.6 [194 kB]
Get:6 http://gb.archive.ubuntu.com/ubuntu/ precise-proposed/main apt-transport-https i386 0.8.16~exp12ubuntu10.6 [16.3 kB]
Fetched 4,532 kB in 3s (1,316 kB/s)        
(Reading database ... 361134 files and directories currently installed.)
Preparing to replace coreutils 8.13-3ubuntu3.1 (using .../coreutils_8.13-3ubuntu3.2_i386.deb) ...
Unpacking replacement coreutils ...
Processing triggers for man-db ...
Processing triggers for install-info ...
Setting up coreutils (8.13-3ubuntu3.2) ...
(Reading database ... 361134 files and directories currently installed.)
Preparing to replace libapt-pkg4.12 0.8.16~exp12ubuntu10.5 (using .../libapt-pkg4.12_0.8.16~exp12ubuntu10.6_i386.deb) ...
Unpacking replacement libapt-pkg4.12 ...
Setting up libapt-pkg4.12 (0.8.16~exp12ubuntu10.6) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
(Reading database ... 361134 files and directories currently installed.)
Preparing to replace apt 0.8.16~exp12ubuntu10.5 (using .../apt_0.8.16~exp12ubuntu10.6_i386.deb) ...
Unpacking replacement apt ...
Processing triggers for man-db ...
Setting up apt (0.8.16~exp12ubuntu10.6) ...
gpg: key 437D05B5: "Ubuntu Archive Automatic Signing Key <ftpmaster@xxxxxxxxxx>" not changed
gpg: key FBB75451: "Ubuntu CD Image Automatic Signing Key <cdimage@xxxxxxxxxx>" not changed
gpg: key C0B21F32: "Ubuntu Archive Automatic Signing Key (2012) <ftpmaster@xxxxxxxxxx>" not changed
gpg: key EFE21092: "Ubuntu CD Image Automatic Signing Key (2012) <cdimage@xxxxxxxxxx>" not changed
gpg: Total number processed: 4
gpg:              unchanged: 4
(Reading database ... 361134 files and directories currently installed.)
Preparing to replace libapt-inst1.4 0.8.16~exp12ubuntu10.5 (using .../libapt-inst1.4_0.8.16~exp12ubuntu10.6_i386.deb) ...
Unpacking replacement libapt-inst1.4 ...
Preparing to replace apt-utils 0.8.16~exp12ubuntu10.5 (using .../apt-utils_0.8.16~exp12ubuntu10.6_i386.deb) ...
Unpacking replacement apt-utils ...
Preparing to replace apt-transport-https 0.8.16~exp12ubuntu10.5 (using .../apt-transport-https_0.8.16~exp12ubuntu10.6_i386.deb) ...
Unpacking replacement apt-transport-https ...
Processing triggers for man-db ...
Setting up libapt-inst1.4 (0.8.16~exp12ubuntu10.6) ...
Setting up apt-utils (0.8.16~exp12ubuntu10.6) ...
Setting up apt-transport-https (0.8.16~exp12ubuntu10.6) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
william@Asusdesktop:~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  gir1.2-json-1.0 gir1.2-timezonemap-1.0 gir1.2-xkl-1.0
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
william@Asusdesktop:~$ sudo apt-get install samba4
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  gir1.2-json-1.0 gir1.2-timezonemap-1.0 gir1.2-xkl-1.0
Use 'apt-get autoremove' to remove them.
Suggested packages:
  phpldapadmin samba-gtk swat2
The following NEW packages will be installed
  samba4
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,649 kB of archives.
After this operation, 11.2 MB of additional disk space will be used.
Get:1 http://gb.archive.ubuntu.com/ubuntu/ precise/universe samba4 i386 4.0.0~alpha18.dfsg1-4ubuntu2 [1,649 kB]
Fetched 1,649 kB in 1s (1,228 kB/s) 
Preconfiguring packages ...
Traceback (most recent call last):
  File "/usr/bin/samba-tool", line 26, in <module>
    from samba.netcmd.main import cmd_sambatool
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/main.py", line 24, in <module>
    from samba.netcmd.delegation import cmd_delegation
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/delegation.py", line 29, in <module>
    from samba.netcmd.common import _get_user_realm_domain
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/common.py", line 24, in <module>


Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up samba4 (4.0.0~alpha18.dfsg1-4ubuntu2) ...
Unknown parameter encountered: "max log size"
Ignoring unknown parameter "max log size"
Unknown parameter encountered: "syslog"
Ignoring unknown parameter "syslog"
Unknown parameter encountered: "unix password sync"
Ignoring unknown parameter "unix password sync"
Unknown parameter encountered: "passwd program"
Ignoring unknown parameter "passwd program"
Unknown parameter encountered: "pam password change"
Ignoring unknown parameter "pam password change"
Unknown parameter encountered: "map to guest"
Ignoring unknown parameter "map to guest"
Unknown parameter encountered: "usershare allow guests"
Ignoring unknown parameter "usershare allow guests"
Unknown parameter encountered: "guest ok"
Ignoring unknown parameter "guest ok"
Unknown parameter encountered: "guest ok"
Ignoring unknown parameter "guest ok"
Unknown parameter encountered: "max log size"
Ignoring unknown parameter "max log size"
Unknown parameter encountered: "syslog"
Ignoring unknown parameter "syslog"
Unknown parameter encountered: "unix password sync"
Ignoring unknown parameter "unix password sync"
Unknown parameter encountered: "passwd program"
Ignoring unknown parameter "passwd program"
Unknown parameter encountered: "pam password change"
Ignoring unknown parameter "pam password change"
Unknown parameter encountered: "map to guest"
Ignoring unknown parameter "map to guest"
Unknown parameter encountered: "usershare allow guests"
Ignoring unknown parameter "usershare allow guests"
Unknown parameter encountered: "guest ok"
Ignoring unknown parameter "guest ok"
Unknown parameter encountered: "guest ok"
Ignoring unknown parameter "guest ok"
Administrator password will be set randomly!
Unknown parameter encountered: "max log size"
Ignoring unknown parameter "max log size"
Unknown parameter encountered: "syslog"
Ignoring unknown parameter "syslog"
Unknown parameter encountered: "unix password sync"
Ignoring unknown parameter "unix password sync"
Unknown parameter encountered: "passwd program"
Ignoring unknown parameter "passwd program"
Unknown parameter encountered: "pam password change"
Ignoring unknown parameter "pam password change"
Unknown parameter encountered: "map to guest"
Ignoring unknown parameter "map to guest"
Unknown parameter encountered: "usershare allow guests"
Ignoring unknown parameter "usershare allow guests"
Unknown parameter encountered: "guest ok"
Ignoring unknown parameter "guest ok"
Unknown parameter encountered: "guest ok"
Ignoring unknown parameter "guest ok"
Unknown parameter encountered: "max log size"
Ignoring unknown parameter "max log size"
Unknown parameter encountered: "syslog"
Ignoring unknown parameter "syslog"
Unknown parameter encountered: "unix password sync"
Ignoring unknown parameter "unix password sync"
Unknown parameter encountered: "passwd program"
Ignoring unknown parameter "passwd program"
Unknown parameter encountered: "pam password change"
Ignoring unknown parameter "pam password change"
Unknown parameter encountered: "map to guest"
Ignoring unknown parameter "map to guest"
Unknown parameter encountered: "usershare allow guests"
Ignoring unknown parameter "usershare allow guests"
Unknown parameter encountered: "guest ok"
Ignoring unknown parameter "guest ok"
Unknown parameter encountered: "guest ok"
Ignoring unknown parameter "guest ok"
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
E: Sub-process /usr/bin/dpkg returned an error code (1)
william@Asusdesktop:~$ 


________________________________

-- 
You received this question notification because you are a member of
Ubuntu Server/Client Support Team, which is an answer contact for samba4
in Ubuntu.