Open tillig opened 1 year ago
It works for me
A year later I'm seeing this issue on a Mac Mini M1, and found this thread. I'm not familiar with just about anything Apple, and less about entering commands in a terminal.
I installed dotnet-sdk-8.0.402-osx-x64.pkg from here: https://dotnet.microsoft.com/en-us/download/dotnet/8.0 as a requirement for another piece not software, and the dotnet command was not found in terminal. I've set paths in Windows, but have failed to figure out if that's the case in the macOS.
Hoping to uninstall and start over, I downloaded the uninstaller for it here: https://github.com/dotnet/cli-lab/releases
But after finally figuring out the right commands to set, I'm getting that admin privileges error: The current user does not have adequate privileges.
I'm not quite sure where else to find support for this. I am listed as an admin in Mac system settings. Has anyone seen a fix or workaround fore this since tillig's post last year?
I'm running on MacOS (Mac M1, MacOS Ventura) and have all of my .NET SDKs installed in my user folder at
~/.dotnet
. I also have the following set in my~/.profile
so builds and things run great.I can install the .NET SDK perfectly using the
dotnet-install
script.When I run
dotnet-core-uninstall list
, it correctly seesDOTNET_INSTALL_DIR
and lists my SDKs and runtimes.However, when I try to
dotnet-core-uninstall remove
it tells me:All I see in the docs is "it requires admin permissions":
It doesn't tell me why and doesn't really make a ton of sense in this use case. It appears to just check for admin permissions and fail out of hand, even if it really doesn't need them.
Would it be possible to maybe do one of these things...?
--no-admin
or similar switch to allow bypassing that checkAlternatively, is there a document that explains what uninstalling a bundle on MacOS means so I could maybe script it? Is it just a matter of dropping the
~/.dotnet/sdk/XXXX
version folder or~/dotnet/host/fxr/XXXX
version folder?