Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Cannot uninstall scoop: Access is denied when deleting persistent dirs' junction #5736

Closed
KoltesDigital opened this issue Nov 22, 2023 · 4 comments
Labels

Comments

@KoltesDigital
Copy link

KoltesDigital commented Nov 22, 2023

Bug Report

Scoop fails to uninstall if apps with persistent dirs are installed.

Not a duplicate of #4701: these dirs are not in use, and it's even possible to remove them from the File Explorer.

Current Behavior

> irm get.scoop.sh | iex
# ...OK

> scoop install main/7zip
# ...OK

> scoop uninstall scoop
WARN  This will uninstall Scoop and all the programs that have been installed with Scoop!
Are you sure? (yN): y
Uninstalling '7zip'
Removing shim '7z.shim'.
Removing shim '7z.exe'.
Removing shim '7zFM.shim'.
Removing shim '7zFM.exe'.
Removing shim '7zG.shim'.
Removing shim '7zG.exe'.
WARN  Couldn't remove ~\scoop\apps\7zip: Cannot remove item C:\Users\X\scoop\apps\7zip\23.01\Codecs: Access to the path 'C:\Users\X\scoop\apps\7zip\23.01\Codecs' is denied..Exception
Couldn't remove ~\scoop\apps: Cannot remove item C:\Users\X\scoop\apps\7zip\23.01\Codecs: Access to the path 'C:\Users\X\scoop\apps\7zip\23.01\Codecs' is denied.

Expected Behavior

Should uninstall.

Additional context/output

Note that scoop uninstall 7zip works! Afterwards scoop uninstall scoop then works.

Possible Solution

Uninstalling Scoop should uninstall packages first... but I believe it's already supposed to do so.

Workaround: just that. scoop list | %{ scoop uninstall $_.Name }

System details

Windows version: occurs on 10 and 11

OS architecture: 64bit

PowerShell version: occurs on 5.1 and 7.3

Additional software: Windows Terminal

Scoop Configuration

N/A

@HUMORCE
Copy link
Member

HUMORCE commented Dec 30, 2023

#5552

@KoltesDigital
Copy link
Author

@HUMORCE thanks. But isn't the fix supposed to have been released already?

@HUMORCE
Copy link
Member

HUMORCE commented Dec 30, 2023

No, it just merged into develop branch.

@HUMORCE
Copy link
Member

HUMORCE commented Sep 20, 2024

Fixed issue.

@HUMORCE HUMORCE closed this as completed Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants