Open lonix1 opened 1 year ago
/usr/bin/pwsh
Stale symlink?
It is a symlink, but not stale: it links to /usr/share/powershell/pwsh
, which is still there. Actually the entire /usr/share/powershell/
directory is still there, and pwsh
itself can be run successfully.
So it's not uninstalling at all.
cc @adityapatwardhan
It is a symlink, but not stale: it links to
/usr/share/powershell/pwsh
, which is still there. Actually the entire/usr/share/powershell/
directory is still there, andpwsh
itself can be run successfully.So it's not uninstalling at all.
That is not where I would expect a dotnet tool is installed, normally it goes under $HOME/.dotnet/tools. That looks more like the full PowerShell package.
% docker run -it --rm mcr.microsoft.com/dotnet/sdk
Unable to find image 'mcr.microsoft.com/dotnet/sdk:latest' locally
latest: Pulling from dotnet/sdk
31ce7ceb6d44: Pull complete
d6e4a8c13b9e: Pull complete
09b93266de2f: Pull complete
fe5e6284a6e0: Pull complete
2b7d7902c3a4: Pull complete
7b6684fcf4b9: Pull complete
d4eae3370528: Pull complete
91e7b530590e: Pull complete
7a69c94a1532: Pull complete
Digest: sha256:239eb99884b49bac13f4ff5935e118654f87b67d6e31bc842c7cd5a6c46fcc4f
Status: Downloaded newer image for mcr.microsoft.com/dotnet/sdk:latest
root@3d57a1a3a021:/# which pwsh
/usr/bin/pwsh
root@3d57a1a3a021:/# ls -ld /usr/bin/pwsh
lrwxrwxrwx 1 root root 26 Nov 14 14:57 /usr/bin/pwsh -> /usr/share/powershell/pwsh
root@3d57a1a3a021:/#
So it is already there before you install the tool, it is already part of the image
Prerequisites
Steps to reproduce
One cannot uninstall the dotnet tool.
Repro in a docker container, to prove the problem is not my environment:
Expected behavior
Actual behavior
Error details
Environment data
Visuals
No response