I have installed dotnet6 via the guide here https://learn.microsoft.com/en-us/dotnet/core/install/linux-ubuntu-2204
SDK
sudo apt-get update && sudo apt-get install -y dotnet-sdk-6.0
Runtime
sudo apt-get update && sudo apt-get install -y aspnetcore-runtime-6.0
Running the command “dotnet –version” yelds “-bash: dotnet: command not found”
I have tried the steps here: Why don't any of these methods work for installing .Net Core SDK & runtime on 22.04 (Jammy Jellyfish)?
But when all comes to it I am asked to run the following command:
Sudo apt --fix-broken install
It asks me if I want dotnet-host to be installed
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
dotnet-host
The following NEW packages will be installed:
dotnet-host
0 upgraded, 1 newly installed, 0 to remove and 45 not upgraded.
5 not fully installed or removed.
Need to get 0 B/159 kB of archives.
After this operation, 435 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
dpkg: warning: files list file for package 'libc-bin' missing; assuming package has no files currently installed
(Reading database ... 45663 files and directories currently installed.)
Preparing to unpack .../dotnet-host_6.0.113-0ubuntu1~22.04.1_amd64.deb ...
Unpacking dotnet-host (6.0.113-0ubuntu1~22.04.1) ...
dpkg: error processing archive /var/cache/apt/archives/dotnet-host_6.0.113-0ubuntu1~22.04.1_amd64.deb (--unpack):
error creating directory './etc/dotnet': Operation not permitted
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/dotnet-host_6.0.113-0ubuntu1~22.04.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I feel like I ended I a loop.. I cannot remove it nor can i fix whatever is broken. Can someone guide me in right direction?
//thanks!