Azure / Azure/azure-linux-extensions
Ubuntu 21.04 Does Not Provide /usr/bin/env python
- Dominant language
- Python
- Stars
- 333
- Forks
- 278
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 4
Description
Hi Team
When trying to install the Linux Diagnostic extension on Ubuntu 21.04, we are experiencing the following errors
```log
Error: Code="VMExtensionHandlerNonTransientError" Message="The handler for VM extension type 'Microsoft.Azure.Diagnostics.LinuxDiagnostic' has reported terminal failure for VM extension 'Bastion_StorageExtension' with error message: '[ExtensionOperationError] Non-zero exit code: 127, /var/lib/waagent/Microsoft.Azure.Diagnostics.LinuxDiagnostic-4.0.25/diagnostic.py -install
[stdout]
[stderr]
Running scope as unit: install_9b861366-ae3a-44ad-b9d9-695358c34c43.scope
/usr/bin/env: ‘python’: No such file or directory
'.\r\r
'Install handler failed for the extension. More information on troubleshooting is available at https://aka.ms/VMExtensionLinuxDiagnosticsTroubleshoot'"
```
Appreciate how to overcome this, and whether there will be releases in the future to support Ubuntu 21.04.
### Related Issue
- https://github.com/Azure/azure-linux-extensions/issues/1284
- https://github.com/Azure/azure-linux-extensions/issues/1296
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the diagnostic.py -install entry point and review related issues 1284 and 1296 for Ubuntu compatibility context. Reproduce the Linux Diagnostic extension installation failure on Ubuntu 21.04 and verify that installation completes without the missing-python error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, ubuntu
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100