Thanks. Its' worked for me:
$ sudo apt-get install -y dotnet-sdk-7.0
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
aspnetcore-runtime-7.0 aspnetcore-targeting-pack-7.0 dotnet-apphost-pack-7.0 dotnet-host-7.0
dotnet-hostfxr-7.0 dotnet-runtime-7.0 dotnet-targeting-pack-7.0 dotnet-templates-7.0
netstandard-targeting-pack-2.1-7.0
The following packages will be REMOVED:
dotnet-host netstandard-targeting-pack-2.1
The following NEW packages will be installed:
aspnetcore-runtime-7.0 aspnetcore-targeting-pack-7.0 dotnet-apphost-pack-7.0 dotnet-host-7.0
dotnet-hostfxr-7.0 dotnet-runtime-7.0 dotnet-sdk-7.0 dotnet-targeting-pack-7.0 dotnet-templates-7.0
netstandard-targeting-pack-2.1-7.0
0 upgraded, 10 newly installed, 2 to remove and 53 not upgraded.
Need to get 135 MB of archives.
After this operation, 467 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 dotnet-host-7.0 amd64 7.0.111-0ubuntu1~22.04.1 [179 kB]
Get:2 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 netstandard-targeting-pack-2.1-7.0 amd64 7.0.111-0ubuntu1~22.04.1 [1406 kB]
Get:3 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 dotnet-hostfxr-7.0 amd64 7.0.111-0ubuntu1~22.04.1 [163 kB]
Get:4 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 dotnet-runtime-7.0 amd64 7.0.111-0ubuntu1~22.04.1 [24.5 MB]
Get:5 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 aspnetcore-runtime-7.0 amd64 7.0.111-0ubuntu1~22.04.1 [7819 kB]
Get:6 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 aspnetcore-targeting-pack-7.0 amd64 7.0.111-0ubuntu1~22.04.1 [1587 kB]
Get:7 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 dotnet-apphost-pack-7.0 amd64 7.0.111-0ubuntu1~22.04.1 [3755 kB]
Get:8 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 dotnet-targeting-pack-7.0 amd64 7.0.111-0ubuntu1~22.04.1 [2750 kB]
Get:9 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 dotnet-templates-7.0 amd64 7.0.111-0ubuntu1~22.04.1 [2863 kB]
Get:10 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 dotnet-sdk-7.0 amd64 7.0.111-0ubuntu1~22.04.1 [89.5 MB]
Fetched 135 MB in 12s (11.6 MB/s)
dpkg: dotnet-host: dependency problems, but removing anyway as you requested:
dotnet-templates-6.0 depends on dotnet-host.
dotnet-hostfxr-6.0 depends on dotnet-host.
(Reading database ... 36456 files and directories currently installed.)
Removing dotnet-host (6.0.122-0ubuntu1~22.04.1) ...
Selecting previously unselected package dotnet-host-7.0.
(Reading database ... 36389 files and directories currently installed.)
Preparing to unpack .../dotnet-host-7.0_7.0.111-0ubuntu1~22.04.1_amd64.deb ...
Unpacking dotnet-host-7.0 (7.0.111-0ubuntu1~22.04.1) ...
dpkg: netstandard-targeting-pack-2.1: dependency problems, but removing anyway as you requested:
dotnet-sdk-6.0 depends on netstandard-targeting-pack-2.1.
(Reading database ... 36455 files and directories currently installed.)
Removing netstandard-targeting-pack-2.1 (6.0.122-0ubuntu1~22.04.1) ...
Selecting previously unselected package netstandard-targeting-pack-2.1-7.0.
(Reading database ... 36323 files and directories currently installed.)
Preparing to unpack .../0-netstandard-targeting-pack-2.1-7.0_7.0.111-0ubuntu1~22.04.1_amd64.deb ...
Unpacking netstandard-targeting-pack-2.1-7.0 (7.0.111-0ubuntu1~22.04.1) ...
Selecting previously unselected package dotnet-hostfxr-7.0.
Preparing to unpack .../1-dotnet-hostfxr-7.0_7.0.111-0ubuntu1~22.04.1_amd64.deb ...
Unpacking dotnet-hostfxr-7.0 (7.0.111-0ubuntu1~22.04.1) ...
Selecting previously unselected package dotnet-runtime-7.0.
Preparing to unpack .../2-dotnet-runtime-7.0_7.0.111-0ubuntu1~22.04.1_amd64.deb ...
Unpacking dotnet-runtime-7.0 (7.0.111-0ubuntu1~22.04.1) ...
Selecting previously unselected package aspnetcore-runtime-7.0.
Preparing to unpack .../3-aspnetcore-runtime-7.0_7.0.111-0ubuntu1~22.04.1_amd64.deb ...
Unpacking aspnetcore-runtime-7.0 (7.0.111-0ubuntu1~22.04.1) ...
Selecting previously unselected package aspnetcore-targeting-pack-7.0.
Preparing to unpack .../4-aspnetcore-targeting-pack-7.0_7.0.111-0ubuntu1~22.04.1_amd64.deb ...
Unpacking aspnetcore-targeting-pack-7.0 (7.0.111-0ubuntu1~22.04.1) ...
Selecting previously unselected package dotnet-apphost-pack-7.0.
Preparing to unpack .../5-dotnet-apphost-pack-7.0_7.0.111-0ubuntu1~22.04.1_amd64.deb ...
Unpacking dotnet-apphost-pack-7.0 (7.0.111-0ubuntu1~22.04.1) ...
Selecting previously unselected package dotnet-targeting-pack-7.0.
Preparing to unpack .../6-dotnet-targeting-pack-7.0_7.0.111-0ubuntu1~22.04.1_amd64.deb ...
Unpacking dotnet-targeting-pack-7.0 (7.0.111-0ubuntu1~22.04.1) ...
Selecting previously unselected package dotnet-templates-7.0.
Preparing to unpack .../7-dotnet-templates-7.0_7.0.111-0ubuntu1~22.04.1_amd64.deb ...
Unpacking dotnet-templates-7.0 (7.0.111-0ubuntu1~22.04.1) ...
Selecting previously unselected package dotnet-sdk-7.0.
Preparing to unpack .../8-dotnet-sdk-7.0_7.0.111-0ubuntu1~22.04.1_amd64.deb ...
Unpacking dotnet-sdk-7.0 (7.0.111-0ubuntu1~22.04.1) ...
Setting up aspnetcore-targeting-pack-7.0 (7.0.111-0ubuntu1~22.04.1) ...
Setting up dotnet-host-7.0 (7.0.111-0ubuntu1~22.04.1) ...
Setting up dotnet-templates-7.0 (7.0.111-0ubuntu1~22.04.1) ...
Setting up dotnet-targeting-pack-7.0 (7.0.111-0ubuntu1~22.04.1) ...
Setting up dotnet-apphost-pack-7.0 (7.0.111-0ubuntu1~22.04.1) ...
Setting up netstandard-targeting-pack-2.1-7.0 (7.0.111-0ubuntu1~22.04.1) ...
Setting up dotnet-hostfxr-7.0 (7.0.111-0ubuntu1~22.04.1) ...
Setting up dotnet-runtime-7.0 (7.0.111-0ubuntu1~22.04.1) ...
Setting up aspnetcore-runtime-7.0 (7.0.111-0ubuntu1~22.04.1) ...
Setting up dotnet-sdk-7.0 (7.0.111-0ubuntu1~22.04.1) ...
Processing triggers for man-db (2.10.2-1) ...
Posted On:
25-Sep-2023 04:04