Skip to content

Linux Distro Check Fails for Manjaro / Other Distros Without Certain Information #2633

@nagilson

Description

@nagilson

Referenced by: microsoft/vscode-dotnettools#2963

When trying to install, the user may see:

Cancelled Installation of .NET notAnAcquisitionRequest-global~x64.
We are unable to detect the distro or version of your machine
Cancelled Installation of .NET notAnAcquisitionRequest-global~x64.
We are unable to detect the distro or version of your machine ... does /etc/os-release or /usr/lib/os-release exist?
Cancelled Installation of .NET undefined.
An active-support version of dotnet couldn't be found. Discovered versions: []
Cancelled Installation of .NET notAnAcquisitionRequest-global~x64.
We are unable to detect the distro or version of your machine
Cancelled Installation of .NET notAnAcquisitionRequest-global~x64.
We are unable to detect the distro or version of your machine ... does /etc/os-release or /usr/lib/os-release exist?
Cancelled Installation of .NET undefined.
An active-support version of dotnet couldn't be found. Discovered versions: []
Cancelled Installation of .NET 8.0.100-global~x64.
We are unable to detect the distro or version of your machine
Cancelled Installation of .NET 8.0.100-global~x64.
We are unable to detect the distro or version of your machine ... does /etc/os-release or /usr/lib/os-release exist?

Error : (DotnetAcquisitionFinalError)

on Manjaro instead of an unsupported error that should link to https://learn.microsoft.com/en-us/dotnet/core/install/linux (though the none en based version).

We depend on VERSION_ID being in the file but Manjaro does not provide that. Instead, it has BUILD_ID=rolling.

I'll need to improve the logic to handle this and other potential scenarios where NAME or VERSION_ID is not provided. There are probably others out there besides Manjaro - but this will just lead us to give the unsupported message.

I'll need to fix this error. However, we don't really support doing the install for you on Majaro yet. Once I fix the bug, it will at least tell you what to do to proceed, which is defined in https://learn.microsoft.com/en-us/dotnet/core/install/linux. Though I don't think we even have a specific page for Manjaro it should help.

notAnAcquisitionRequest should also probably not be visible which might be another bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions