-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
.NET 8 SDK stopped building projects in Linux: You must install or update .NET to run this application
#38794
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
I have the same error, 4 VMs stoped working all at the same time |
Anyone looking for fix:
|
many thanks to @appiclogics !!
|
Same error happened, is anyone have fixed it? |
So for every one having this issue, the problem is that our VM/Machines have |
When the |
It all depends on how you installed your runtime in the first place. anyway that is much better than downgrading to 8.0.1 |
Unless you're doing something unusual, |
cc @NikolaMilosavljevic - Can you take a look? |
@eduherminio @GaNacereddine can you add more specifics about VMs you're using, i.e. how do you create and set them up, etc? It would help reproduce this locally and fix the issue. |
DEB packages are the same - there is a runtime dependency:
Are these VMs runing the same distro? I see that first issue was reported on Ubuntu, presumably 22.04. |
$ uname -srm
Linux 6.2.0-1019-azure x86_64
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy Created manually from Azure Portal. wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get update && sudo apt-get install -y dotnet-sdk-8.0 Let me know if any other information could be helpful |
I can repro this on WSL Jammy. Code that runs from VSCode debugger fails at the command line.
|
Yesterday I turned on another machine where builds used to be working. |
That is very surprising. The experience suggests that something is removing
Would it be possible to share these logs? |
Sure, here you are. /var/log/apt/history.log
/var/log/dpkg.log
|
I've confirmed that the packages.microsoft.com endpoint for 20.04 and 22.04 appear to be stable since the 2/13 releases. |
It seems that This issue tracks the scenarios and offers workarounds and fixes: dotnet/core#7699 One solution is to prioritize PMC repository using APT preferences file. |
For some one still facing the issue:
|
FYI on our plan for Ubuntu 24.04 packages |
Thanks @richlander. |
Understood. Please file issues when you see them @eduherminio. Feel free to at-mention me. I'm not always perfect, but I do try and stay on top of my notifications and help where I can. |
I had the same issue and removed every dotnet package and removed microsoft-prod.list. Now I am having package deps issue: 'dotnet-runtime-deps-8.0 : Depends: libicu but it is not installable.' Any help would be appreciated. I can't run my core API...
|
I just tried it on raw metal and in Docker w/o this issue. What I see: https://gist.github.com/richlander/c35678fc5b82c194bdf29ea633b6073b On a Jammy system, I have this. It would be good to double check that you do not (on Noble). root@c3a484fb55e2:~# cat /etc/os-release | head -n 1
PRETTY_NAME="Ubuntu 22.04.4 LTS"
root@c3a484fb55e2:~# cat /etc/apt/sources.list.d/microsoft-prod.list
deb [arch=amd64,arm64,armhf] https://packages.microsoft.com/ubuntu/22.04/prod jammy main Did you upgrade? |
Thanks for responding. yes I did upgrade to 24.04. Do I still need the "microsoft-prod.list"?
|
When will the native feed for dotnet-sdk-8 support libicu74?
|
It works, thanks :-) |
For those who found the same issue, clean remove and reinstall as @appiclogics suggestion can fix the problem. BTW, this problem has just happened to me after I have Windows updated. |
I had the same issue. I use Kubuntu 24.04 |
I guess it's happening because of unattended upgrades.
This way, APT will not update dotnet without your command. However, be aware that now security patches released by the dotnet team will not be automatically installed. This is my interpretation of this answer on this issue. Corrected it on my servers. We'll see if it helps when 8.0.6 is released. |
I ended up installing via snap. I'm on a Digital Ocean server BTW. |
Facing the same issue on Fedora 39 |
Just had this start happening to me on Fedora 40. |
Describe the bug
I had .NET SDK 8 installed in an Ubuntu Azure VM and it was building my project just fine every hour/few hours or so until earlier today,
Suddenly stopped being able to do so, stating
You must install or update .NET to run this application.
andNo frameworks were found.
No reboots or known changes happened in the VM (the builds are part of an automated process that doesn't restart automatically after VM restart) and no changes happened in the code either.Is this somehow expected?
To Reproduce
Exceptions (if any)
I don't think it matters, but the repo being built was lynx-chess/Lynx.
Further technical details
System:
Linux 6.2.0-1018-azure
The text was updated successfully, but these errors were encountered: