0

So I tried bash task and powershell task and everytime I need to run as elevated sudo user it will fail stating:

"sudo: no tty present and no askpass program specified"

lets say I want to run sudo apt-get update using powershell task. Is there an option of doing these things? So far we were only using windows deployment group but we need to use ubuntu this time and I cannot find a solution to that.

novak100
  • 1,259
  • 1
  • 12
  • 20
  • 1
    Did you try for instance [this](https://stackoverflow.com/a/24107529/2347999)? (I assumed that you use self hosted agents) – Krzysztof Madej Apr 07 '21 at 21:24
  • actually Krzysztof answer did fixed the issue. I was messing with wrong user. So yes, modifying sudo visudo and adding your user NOPASSWD:ALL did worked for me. Cannot mark it as answer as it sits as comment – novak100 Apr 08 '21 at 14:28

0 Answers0