Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Bug on amazon linux 2023 Can't install dotnet core dependencies #4979

Open
1 of 4 tasks
mariuz opened this issue Sep 5, 2024 · 2 comments
Open
1 of 4 tasks

Comments

@mariuz
Copy link

mariuz commented Sep 5, 2024

What happened?

I try to run the install dependencies on amazon linux 2023

sudo ./bin/installdependencies.sh
--------OS Information--------
NAME="Amazon Linux"
VERSION="2023"
ID="amzn"
ID_LIKE="fedora"
VERSION_ID="2023"
PLATFORM_ID="platform:al2023"
PRETTY_NAME="Amazon Linux 2023.5.20240903"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2023"
HOME_URL="https://aws.amazon.com/linux/amazon-linux-2023/"
DOCUMENTATION_URL="https://docs.aws.amazon.com/linux/"
SUPPORT_URL="https://aws.amazon.com/premiumsupport/"
BUG_REPORT_URL="https://github.com/amazonlinux/amazon-linux-2023"
VENDOR_NAME="AWS"
VENDOR_URL="https://aws.amazon.com/"
SUPPORT_END="2028-03-15"

"fedora"
./bin/installdependencies.sh: line 274: [[: command not found
Can't detect current OS type based on /etc/os-release.
Can't install dotnet core dependencies.

Versions

Azure devops version 3.243.1 / Amazon Linux 2023

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

No response

Version controll system

No response

Relevant log output

No response

@mariuz
Copy link
Author

mariuz commented Sep 5, 2024

I have installed dotnet 6 manually https://learn.microsoft.com/en-us/dotnet/core/install/linux-fedora#install-net-6
after that configuration went ok

@vmapetr vmapetr removed the triage label Sep 9, 2024
@aleksandrlevochkin
Copy link
Contributor

Hi @mariuz, thanks for reporting this issue. It seems that it happens because the install script currently detects the OS type by looking for /etc/redhat-release for Fedora-based distributives. However, it seems that Amazon Linux uses the file amazon-linux-release for this purpose. We will consider enhancing the install script to account for this case in the future

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants