HI Geralt , This has an external dependency which fails in rare cases. Resetting the VM is the most reliable way to resolve this. Please try and see if this works for you. If the above is useful please click Accept Answer.
Error in applying azzure CLI
When running the script for "creating a VM" I get an error? E: Unable to locate package nginx tee: /var/www/html/index.html: No such file or directory Please advise how I fix this?
2 answers
Sort by: Most helpful
-
-
kobulloc-MSFT 26,341 Reputation points Microsoft Employee
2023-04-10T19:40:25.0433333+00:00 Hello, @Gerallt Skym ! Where are you seeing this issue?
- Topic: AZ-900
- Learning Path: Azure Fundamentals: Describe Azure architecture and services
- Module: Describe Azure compute and networking services
- Unit: 3 of 14 Exercise - Create an Azure Virtual Machine
Why am I running into an error when running the custom nginx script? In rare cases, this external dependency will result in an error. Edit: I was able to reproduce this recently and the suggestion from @Rohit Kumar Sinha is what I would recommend. Ultimately I deleted the VM and started over which was a quick workaround after hitting this several times. https://learn.microsoft.com/en-us/answers/questions/1084468/cannot-provision-nginx-in-sandbox-vm-based-on-the