enterprise-support team mailing list archive
-
enterprise-support team
-
Mailing list archive
-
Message #02250
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,
Error returned again see below William
________________________________
william@Asusdesktop:~$ sudo mv /etc/samba/smb.conf /etc/samba/smb.confBACKUP
[sudo] password for william:
william@Asusdesktop:~$ sudo add-apt-repository ppa:kernevil/samba4
You are about to add the following PPA to your system:
More info: https://launchpad.net/~kernevil/+archive/samba4
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: keyring `/tmp/tmpauavde/secring.gpg' created
gpg: keyring `/tmp/tmpauavde/pubring.gpg' created
gpg: requesting key 418F27A2 from hkp server keyserver.ubuntu.com
gpg: /tmp/tmpauavde/trustdb.gpg: trustdb created
gpg: key 418F27A2: public key "Launchpad PPA for Kernevil" imported
gpg: Total number processed: 1
gpg: imported: 1 (RSA: 1)
OK
william@Asusdesktop:~$ sudo apt-get install samba4
Reading package lists... Done
Building dependency tree
Reading state information... Done
samba4 is already the newest version.
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.
1 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
Setting up samba4 (4.0.0~alpha18.dfsg1-4ubuntu2) ...
unable to open smb.conf at /usr/share/samba/setoption.pl line 22.
dpkg: error processing samba4 (--configure):
subprocess installed post-installation script returned error exit status 2
No apport report written because MaxReports has already been reached
Errors were encountered while processing:
samba4
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
E: Sub-process /usr/bin/dpkg returned an error code (1)
william@Asusdesktop:~$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... 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.
Do you want to continue [Y/n]? y
Setting up samba4 (4.0.0~alpha18.dfsg1-4ubuntu2) ...
unable to open smb.conf at /usr/share/samba/setoption.pl line 22.
dpkg: error processing samba4 (--configure):
subprocess installed post-installation script returned error exit status 2
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.