-
Notifications
You must be signed in to change notification settings - Fork 446
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
The application '--version' does not exist #16438
Comments
Having the same issue. Any ideas? |
The Troubleshooting section offers a lead.
|
See the section I need a version of .NET that isn't provided by my Linux distribution. The advice there worked for me. I set the following content in
Today's CI run shows that the For me it's fixed, so I'll close this. Does it solve your problem, @michelefa1988 ? |
fyi https://gitlab.com/giuliohome/fsharp/-/jobs/4364687217#L40 not a problem for me however, I've already sorted it out. |
the best solution for this problem and others that Ubuntu has with versions is to use ASDF which has support for dotnet among others. |
The command could not be loaded, possibly because:
Download a .NET SDK: Learn about SDK resolution: how to fix this error in windows, when I want to show dotnet --version |
I had the same issue. Good luck. |
windows is so mid |
It started happening again on Ubuntu 22. On 2024-04-02 I had my last successful CI run.
Since 2024-04-03 my CI runs fail like this:
|
uhm 🤔 https://launchpad.net/ubuntu/+source/dotnet7/7.0.117-0ubuntu1~23.10.2
|
Around 2024-04-03 Canonical started distributing packages for dotnet to Ubuntu 22 from `security.ubuntu.com`. See dotnet/installer#16438.
* Implements dotnet/docs#40352 * Resolves dotnet/installer#16438
Around 2024-04-03 Canonical started distributing packages for dotnet to Ubuntu 22 from security.ubuntu.com. Now I set the following content in
It pins packages for Microsoft products from repositories The negative priority prevents apt from using those repositories to install dotnet.
Debugging notesOn Ubuntu 22 my installation script changes the apt preferences to avoid mixing packages from Microsoft's and Canonical's repositories. It writes the following preferences fragment:
After the script completes I run the policy command to show which runtime apt selected on Ubuntu 22. The $ apt-cache policy dotnet-runtime-7.0
dotnet-runtime-7.0:
Installed: 7.0.117-0ubuntu1~22.04.1
Candidate: 7.0.117-0ubuntu1~22.04.1
Version table:
7.0.117-0ubuntu1~22.04.2 -10
500 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages
*** 7.0.117-0ubuntu1~22.04.1 500
500 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages
100 /var/lib/dpkg/status
7.0.17-1 500
500 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main amd64 Packages
...
7.0.0-1 500
500 https://packages.microsoft.com/ubuntu/22.04/prod jammy/main amd64 Packages From the "apt_preferences" manual page:
apt assigns priority 500 to the packages from Canonical's patch version has a higher version number ( |
Thanks @giuliohome for the info. Launchpad's publishing history explains why the behavior changed on 2024-04-03. Someone published a new package the day before. Publishing history of dotnet7 7.0.117-0ubuntu1~23.10.2 source package in Ubuntu
|
I submited a PR to update the dotnet troubleshooting documentation. |
Around 2024-04-03 Canonical started distributing packages for dotnet to Ubuntu 22 from `security.ubuntu.com`. See dotnet/installer#16438.
Today
dotnet --version
stopped working for me.I use a Github Actions workflow to test my script to install dotnet-sdk-7.0 on Ubuntu 22.
My script copies the documented steps to Register the Microsoft package repository.
At the end I test the installation using
dotnet --version
.Yesterday's CI run worked like this.
Today's fails with the error in the title.
Now how do I check the version?
The text was updated successfully, but these errors were encountered: