0

I am trying to push a nodejs app in cloud foundry and js in turn calls the shell script, which includes some installation commands. During the shell script execution i am getting the following error:

2016-07-13T12:13:28.80+0000 [App/0]      OUT stderrsudo: no tty present and no askpass program specified
2016-07-13T12:13:28.80+0000 [App/0]      OUT E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
2016-07-13T12:13:28.80+0000 [App/0]      OUT E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
ralphearle
  • 1,696
  • 13
  • 18
Purandhar
  • 31
  • 2
  • 4
  • Can you please explain what you mean by "js has inturn the shell script which some installation command"? – ralphearle Jul 18 '16 at 14:10
  • Js in turn calls the shell script and it has some installation commands. During the shell script execution i am getting the above error – Purandhar Jul 20 '16 at 09:02

1 Answers1

0

From the output you provided I suppose that your remote user can not run apt-get as root without a password. See this answer for an instructions how to enable passwordless command execution.

olmstad
  • 686
  • 5
  • 9