-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
apt-get can't find dotnet packages, either by glob or regex (WSL2 ARM64 Ubuntu 18.04) #4954
Comments
cc @dagood |
This is a known issue, btw. Even the docs you linked to (https://docs.microsoft.com/en-us/dotnet/core/install/linux-ubuntu) make a note of this:
|
Yeah, this is expected. Adding arm64 packages to the Microsoft linux package repos is tracked by dotnet/runtime#3298. The tar.gz install method is what the docs recommend in the meantime. Please file some feedback on the doc page if you can think of a way to make this clearer (maybe you navigated to this page in a particular way that didn't make x64-ness clear?)--this does get asked somewhat often. 😕 |
Oops thanks @omajid, I missed that text. @dagood I missed that sentence warning about ARM because I directly looked for the instructions to add the PPA to Ubuntu, and since it was possible to install the *.deb file, then find the packages in apt-get, I thought the packages were expected to be installed there too. But maybe the dotnet packages should not be made available in the package manager in ARM at all. |
Aha, I think we should add the x64-only warning in the troubleshooting section--you went there, and it's much more likely for people hitting this to go there than to go read the doc from the very top. Filed dotnet/docs#19564 for that.
Where were they showing up? Was the search missing some filter for "applicable for my architecture"? Not totally familiar with the details of how apt works with arch but pretty sure they are listed per architecture, which would be the same reason the
They aren't, we don't publish anything for ARM, this is just a consequence of using a shared feed with I guess imperfect filtering on the client. |
@dagood after I added the PPA, I ran:
Then pressed tab to autocomplete all the available matches, and lo and behold, you could see all the dotnet packages available for installation, but as described in the description, they can't be installed, you get the error.
You mean in apt-get? I think the user can assume the available packages are for their architecture, and if they want to install a package that is from another (compatible) architecture, they can add colon + architectureID after the package name. I think I've done it before, something like:
Does that answer your question? |
It does, thanks! I was assuming |
I am trying to use Ubuntu 18.04 in WSL2 in an ARM64 Surface with Windows 10 v2004. Not sure if the problem is that the packages are unavailable in this architecture. Is that the root cause?
I followed the official instructions first (deb package): https://docs.microsoft.com/en-us/dotnet/core/install/linux-ubuntu
And when those didn't work, I followed the instructions to manually install the gpg key: https://docs.microsoft.com/en-us/dotnet/core/install/linux-ubuntu#apt-troubleshooting
I'm getting this error:
Tried with all combinations of dotnet* packages that apt-get can autocomplete: dotnet-runtime vs dotnet-sdk, versions 2.1, 3.0, 3.1, etc. They all throw the same error.
There are no other similar problems reported in dotnet/core, so I suspect this is an ARM64 specific issue.
My workarounds are:
./dotnet-install.sh -Version <versionNumber> -Architecture arm64 -InstallDir '<installDir>'
Let me know if you need more information or ping me on Teams if you'd like to see a live repro.
The text was updated successfully, but these errors were encountered: