sudo not working for azure pipeline vmImage: "ubuntu-18.04"? Any idea?

Dinesh Panchal 1 Reputation point
2021-08-01T03:32:45.803+00:00

Starting: shellexec

Task : Shell Exec
Description : Execute shell commands without creating a shell file
Version : 0.2.0
Author : Tsuyoshi Ushio

Help : Replace with markdown to show in help

/bin/bash ./.tempexecution.sh
(node:129) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:129) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:129) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:129) Warning: Use Cipheriv for counter mode of aes-256-ctr
(node:129) Warning: Use Cipheriv for counter mode of aes-256-ctr
Hello World --- build
su: must be run from a terminal
vsts_azpcontainer

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
E: List directory /var/lib/apt/lists/partial is missing. - Acquire (13: Permission denied)

[error]Error: /bin/bash failed with return code: 100

Finishing: shellexec

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
43,316 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. BhargaviAnnadevara-MSFT 5,466 Reputation points
    2021-08-02T05:04:24.13+00:00

    Hello @Dinesh Panchal , Thanks for reaching out. Azure DevOps and its services are not supported on the Microsoft Q&A platform. Please post your question in the following forum where the Azure DevOps team and DevOps community are actively answering questions: https://developercommunity.visualstudio.com/spaces/21/index.html

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.