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

Update .NET docs on Ubuntu now that .NET is available in default distro repos #30457

Closed
omajid opened this issue Aug 2, 2022 · 4 comments · Fixed by #32596
Closed

Update .NET docs on Ubuntu now that .NET is available in default distro repos #30457

omajid opened this issue Aug 2, 2022 · 4 comments · Fixed by #32596
Assignees
Labels
doc-enhancement Improve the current content [org][type][category] dotnet-fundamentals/svc install/subsvc Pri1 High priority, do before Pri2 and Pri3

Comments

@omajid
Copy link
Member

omajid commented Aug 2, 2022

Certain versions of .NET are now available in the default repositories on certain versions of Ubuntu.

We should probably update the .NET install docs to reflect how to "correctly" install .NET. Otherwise, it's possible users will pick up an incorrect mix of packages, or pick up packages from the Ubuntu feed when they want it from the Microsoft feed (or the other way around).

We suggest using the distro-only packages for CentOS (Stream), Fedora and RHEL already.

Do we also need to update https://docs.microsoft.com/en-us/dotnet/core/install/linux-package-mixup for Ubuntu?


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@dotnet-bot dotnet-bot added the ⌚ Not Triaged Not triaged label Aug 2, 2022
@PRMerger16 PRMerger16 added dotnet/svc Pri1 High priority, do before Pri2 and Pri3 labels Aug 2, 2022
@omajid
Copy link
Member Author

omajid commented Aug 2, 2022

cc @mirespace

@adegeo
Copy link
Contributor

adegeo commented Aug 7, 2022

Hi @omajid I'm opening up a PR to handle a bunch of different changes in the install docs. Do you have a link to the ubuntu information so I can make sure I rewrite the content appropriately?

@adegeo adegeo added the doc-enhancement Improve the current content [org][type][category] label Aug 7, 2022
@dotnet-bot dotnet-bot removed the ⌚ Not Triaged Not triaged label Aug 7, 2022
@adegeo adegeo self-assigned this Aug 7, 2022
@omajid
Copy link
Member Author

omajid commented Aug 8, 2022

Sorry, I don't. Hopefully @mirespace does.

@mirespace
Copy link

mirespace commented Aug 9, 2022

Hi! Let's go with the Ubuntu commands:

  1. https://docs.microsoft.com/en-us/dotnet/core/install/linux-ubuntu

Install the sdk

sudo apt-get install dotnet6 or sudo apt-get install dotnet-sdk-6.0

Install the runtime

  • For ASP.NET Core Runtime
    sudo apt-get install aspnetcore-runtime-6.0
  • For .NET Runtime without ASP.NET Core support:
    sudo apt-get install dotnet-runtime-6.0

Dependencies

Adding the following to the list:

 libgcc-s1 (for 22.x)
 libicu70 (for 22.04)
 liblttng-ust1 (for 22.x)
 libssl3 (for 22.x)
 libunwind-13 (for 22.x)
 libunwind8 (for 22.x)
  1. https://docs.microsoft.com/en-us/dotnet/core/install/linux-package-mixup

Solutions

  • For 1:
sudo apt-get remove packages-microsoft-prod
sudo apt-get update
sudo apt-get remove dotnet6
sudo apt-get autoremove
sudo apt-get install dotnet6
  • For 2:
cat > /etc/apt/preferences.d/microsoft-prod << EOF
Package: dotnet* aspnet* netstandard*
Pin: origin "packages.microsoft.com"
Pin-Priority: -10
EOF
sudo apt-get remove dotnet6
sudo apt-get autoremove
sudo apt-get install dotnet6
  • For 3:
cat > /etc/apt/preferences.d/microsoft-prod << EOF
Package: dotnet* aspnet* netstandard*
Pin: origin "packages.microsoft.com"
Pin-Priority: 999
EOF
sudo apt-get remove dotnet6
sudo apt-get autoremove
sudo apt-get install dotnet6

Please, let me know if I missed something more needed.

@ghost ghost added the in-pr This issue will be closed (fixed) by an active pull request. label Nov 17, 2022
@ghost ghost removed the in-pr This issue will be closed (fixed) by an active pull request. label Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-enhancement Improve the current content [org][type][category] dotnet-fundamentals/svc install/subsvc Pri1 High priority, do before Pri2 and Pri3
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants