Comment 5 for bug 1997746

Revision history for this message
Miriam España Acebal (mirespace) wrote :

Verification on Jammy: OK

#Bad Case

#0.dotnet is properly installed

root@Jdotnet1983380:~# dotnet --info
.NET SDK (reflecting any global.json):
 Version: 6.0.111
 Commit: b3bb659a9d

Runtime Environment:
 OS Name: ubuntu
 OS Version: 22.04
 OS Platform: Linux
 RID: ubuntu.22.04-x64
 Base Path: /usr/lib/dotnet/sdk/6.0.111/

global.json file:
  Not found

Host:
  Version: 6.0.11
  Architecture: x64
  Commit: 943474ca16

.NET SDKs installed:
  6.0.111 [/usr/lib/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 6.0.11 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 6.0.11 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]

Download .NET:
  https://aka.ms/dotnet-download

Learn about .NET Runtimes and SDKs:
  https://aka.ms/dotnet/runtimes-sdk-info

#1. The executable could not be directly called

root@Jdotnet1983380:~# TheTesting/bin/Debug/net6.0/TheTesting
You must install .NET to run this application.

App: /root/TheTesting/bin/Debug/net6.0/TheTesting
Architecture: x64
App host version: 6.0.11
.NET location: Not found

Learn about runtime installation:
https://aka.ms/dotnet/app-launch-failed

Download the .NET runtime:
https://aka.ms/dotnet-core-applaunch?missing_runtime=true&arch=x64&rid=ubuntu.22.04-x64&apphost_version=6.0.11
root@Jdotnet1983380:~#

#Good case

#0. Updating to .112

User might face:

Setting up dotnet-host (6.0.112-0ubuntu1~22.04.1) ...

Configuration file '/etc/profile.d/dotnet.sh'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ? Your options are:
    Y or I : install the package maintainer's version
    N or O : keep your currently-installed version
      D : show the differences between the versions
      Z : start a shell to examine the situation
 The default action is to keep your current version.
*** dotnet.sh (Y/I/N/O/D/Z) [default=N] ? i

#1.Checking installation:

root@Jdotnet1983380:~# dotnet --info
.NET SDK (reflecting any global.json):
 Version: 6.0.112
 Commit: d311a58ee1

Runtime Environment:
 OS Name: ubuntu
 OS Version: 22.04
 OS Platform: Linux
 RID: ubuntu.22.04-x64
 Base Path: /usr/lib/dotnet/sdk/6.0.112/

global.json file:
  Not found

Host:
  Version: 6.0.12
  Architecture: x64
  Commit: 02e45a41b7

.NET SDKs installed:
  6.0.112 [/usr/lib/dotnet/sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 6.0.12 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 6.0.12 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]

Download .NET:
  https://aka.ms/dotnet-download

Learn about .NET Runtimes and SDKs:
  https://aka.ms/dotnet/runtimes-sdk-info

#1. Checking DOTNET_ROOT variable is set:

root@Jdotnet1983380:~# logout
❯ lxc shell Jdotnet1983380
root@Jdotnet1983380:~# env | grep DOTNET
DOTNET_ROOT=/usr/lib/dotnet
DOTNET_BUNDLE_EXTRACT_BASE_DIR=/root/.cache/dotnet_bundle_extract

#2.Checking we can run the dotnet binary directly:

root@Jdotnet1983380:~# TheTesting/bin/Debug/net6.0/TheTesting
Hello, World!
root@Jdotnet1983380:~#