sudo apt-get update command for sudo password

Ming Gu 0 Reputation points

I followed the instructions to do the exercise for creating a virtual machine. when I enterred command "sudo apt-get update", it asked me enter a password. I entered and got this output:

Sorry, try again

I verified the password for the microsoft login. It is correct. I am able to login to my microsoft account. Why I can't login here in the Sandbox? I remember I can login to Sandbox before? Why today I can't?

sudo apt-get update
Azure Training
Azure Training
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Training: Instruction to develop new skills.
1,023 questions
{count} votes

1 answer

Sort by: Most helpful
  1. RDash 1,245 Reputation points Microsoft Vendor

    Hi Ming Gu ,

    I understand you have tried the step from Microsoft learn path. Please try to follow the instructions below, which include SSH into the VM you previously created before using sudo.

    Activate a new sandbox and create the VM as instructed in the exercise.

    Once it finishes, make a note of the publicIpAddress that was assigned to the VM.

    When the errors out, follow the steps below to connect to the VM using SSH:

    Replace <VM public ip address> with the actual publicIpAddressUser's image

    When prompted, enter 'yes' to confirm the SSH connection. Copy and right-click to paste the following three commands one by one in the Cloud Shell window. Wait for each command to complete before pasting the next one:
    User's image

    User's image

    User's image

    User's image

    User's image

    If the issue persists, please contact us and we'll be glad to assist you.

    IF the information provided has been helpful to you! then please accept the answer by clicking the Accept Answer on the post. We value your feedback, and it will help to assist others who might have a similar query. Thank you for your contribution in enhancing Microsoft Q&A!

    4 people found this answer helpful.
    0 comments No comments