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
Verification on Jammy: OK
#Bad Case
#0.dotnet is properly installed
root@Jdotnet198 3380:~# dotnet --info
.NET SDK (reflecting any global.json):
Version: 6.0.111
Commit: b3bb659a9d
Runtime Environment: dotnet/ sdk/6.0. 111/
OS Name: ubuntu
OS Version: 22.04
OS Platform: Linux
RID: ubuntu.22.04-x64
Base Path: /usr/lib/
global.json file:
Not found
Host:
Version: 6.0.11
Architecture: x64
Commit: 943474ca16
.NET SDKs installed: dotnet/ sdk]
6.0.111 [/usr/lib/
.NET runtimes installed: AspNetCore. App 6.0.11 [/usr/lib/ dotnet/ shared/ Microsoft. AspNetCore. App] NETCore. App 6.0.11 [/usr/lib/ dotnet/ shared/ Microsoft. NETCore. App]
Microsoft.
Microsoft.
Download .NET: /aka.ms/ dotnet- download
https:/
Learn about .NET Runtimes and SDKs: /aka.ms/ dotnet/ runtimes- sdk-info
https:/
#1. The executable could not be directly called
root@Jdotnet198 3380:~# TheTesting/ bin/Debug/ net6.0/ TheTesting
You must install .NET to run this application.
App: /root/TheTestin g/bin/Debug/ net6.0/ TheTesting
Architecture: x64
App host version: 6.0.11
.NET location: Not found
Learn about runtime installation: /aka.ms/ dotnet/ app-launch- failed
https:/
Download the .NET runtime: /aka.ms/ dotnet- core-applaunch? missing_ runtime= true&arch= x64&rid= ubuntu. 22.04-x64& apphost_ version= 6.0.11 3380:~#
https:/
root@Jdotnet198
#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@Jdotnet198 3380:~# dotnet --info
.NET SDK (reflecting any global.json):
Version: 6.0.112
Commit: d311a58ee1
Runtime Environment: dotnet/ sdk/6.0. 112/
OS Name: ubuntu
OS Version: 22.04
OS Platform: Linux
RID: ubuntu.22.04-x64
Base Path: /usr/lib/
global.json file:
Not found
Host:
Version: 6.0.12
Architecture: x64
Commit: 02e45a41b7
.NET SDKs installed: dotnet/ sdk]
6.0.112 [/usr/lib/
.NET runtimes installed: AspNetCore. App 6.0.12 [/usr/lib/ dotnet/ shared/ Microsoft. AspNetCore. App] NETCore. App 6.0.12 [/usr/lib/ dotnet/ shared/ Microsoft. NETCore. App]
Microsoft.
Microsoft.
Download .NET: /aka.ms/ dotnet- download
https:/
Learn about .NET Runtimes and SDKs: /aka.ms/ dotnet/ runtimes- sdk-info
https:/
#1. Checking DOTNET_ROOT variable is set:
root@Jdotnet198 3380:~# logout 3380:~# env | grep DOTNET ROOT=/usr/ lib/dotnet BUNDLE_ EXTRACT_ BASE_DIR= /root/. cache/dotnet_ bundle_ extract
❯ lxc shell Jdotnet1983380
root@Jdotnet198
DOTNET_
DOTNET_
#2.Checking we can run the dotnet binary directly:
root@Jdotnet198 3380:~# TheTesting/ bin/Debug/ net6.0/ TheTesting 3380:~#
Hello, World!
root@Jdotnet198