How can I install node.js module using phantom, instead of npm?

Why is it difficult for me to install Samba on my machine?

  • I'm using Ubuntu 12.04 and this is the error I get after running "sudo apt-get install samba4", I get: Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: phpldapadmin samba-gtk swat2 The following NEW packages will be installed: samba4 0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded. Need to get 0 B/1,649 kB of archives. After this operation, 11.2 MB of additional disk space will be used. 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/… line 24, in <module> from samba.netcmd.delegation import cmd_delegation File "/usr/lib/python2.7/dist-packages/samba/… line 29, in <module> from samba.netcmd.common import _get_user_realm_domain File "/usr/lib/python2.7/dist-packages/samba/… line 24, in <module> from samba.net import Net ImportError: libkdc-policy.so: cannot open shared object file: No such file or directory 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/… line 24, in <module> from samba.netcmd.delegation import cmd_delegation File "/usr/lib/python2.7/dist-packages/samba/… line 29, in <module> from samba.netcmd.common import _get_user_realm_domain File "/usr/lib/python2.7/dist-packages/samba/… line 24, in <module> from samba.net import Net ImportError: libkdc-policy.so: cannot open shared object file: No such file or directory Selecting previously unselected package samba4. (Reading database ... 185172 files and directories currently installed.) Unpacking samba4 (from .../samba4_4.0.0~alpha18.dfsg1-4ubuntu2_… ... 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" /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 No apport report written because MaxReports is reached already Errors were encountered while processing: samba4 E: Sub-process /usr/bin/dpkg returned an error code (1)

  • Answer:

    I do not spot the exact version issue here, but... "Ignoring unknown parameter" Errors all mean basically the same thing: The version of Samba is a mismatch somewhere. Newer Samba configuration items are too new and therefore seen as unknown. ImportError: libkdc-policy.so: cannot open shared object file: No such file or directory *** A Kerberos problem? Do you have the right permissions to install? Unpacking samba4 (from .../samba4_4.0.0~alpha18.dfsg1-4ubuntu2 *** ALPHA??!! Really? Better check on that. You may have grabbed a not-yet-stable release.

achilles at Yahoo! Answers Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.