Unable to configure Nginx on your VM : kee getting mesage unable to locate package file"

Raza Syed 0 Reputation points

KUser's image

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,177 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Sreeju Nair 12,026 Reputation points

    It seems nginx is not installed. Try the following commands

    sudo apt update
    sudo apt install nginx

    Refer to the following link about nginx installation


    0 comments No comments

  2. kobulloc-MSFT 25,156 Reputation points Microsoft Employee

    Hello, @Raza Syed !

    Where am I seeing this?

    Why am I running into errors when attempting to create the VM?

    Chances are you haven't done anything wrong! This unit has some external dependencies which can fail on rare occasion. Deleting the virtual machine and trying again (or waiting for a new sandbox) usually resolves the problem. Sorry for the inconvenience!

    If you want to try deleting the virtual machine before the sandbox expires, you can use az vm delete:

    az vm delete \
        --resource-group myResourceGroup \
        --name myVM \
        --force-deletion none

    In practice, that looks more like this (you'll need to use your own resource group):

    az vm delete \
        --resource-group learn-12abcdef-gh34-5i67-a1b2-3456789cd012 \
        --name my-vm \
        --force-deletion none

    If successful, you should see something like this:

    User's image

    If you are still running into issues, let us know in the comments and we'll continue to troubleshoot this.

    If this has been helpful, please take a moment to accept answers as this helps increase visibility of this question for other members of the Microsoft Q&A community. Thank you for helping to improve Microsoft Q&A!

    User's image