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

Raza Syed 0 Reputation points
2023-05-14T22:28:33.26+00:00

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.
731 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Sreeju Nair 11,601 Reputation points
    2023-05-15T09:59:56.1666667+00:00

    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

    https://ubuntu.com/tutorials/install-and-configure-nginx#1-overview

    0 comments No comments

  2. kobulloc-MSFT 22,556 Reputation points Microsoft Employee
    2023-05-16T21:33:58.5966667+00:00

    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