Versions
Versions copied to clipboard
[Bug]: cleanup on dotnet-sdk is creating a error.
Prerequisites
- [X] I have written a descriptive issue title.
- [X] I have searched all issues/PRs to ensure it has not already been reported or fixed.
- [X] I have verified that I am using the latest version of Scoop and corresponding bucket.
Package Name
dotnet-sdk
Expected/Current Behaviour
PS> scoop cleanup dotnet-sdk Removing dotnet-sdk: 8.0.401
Steps to Reproduce
PS> scoop cleanup dotnet-sdk
Removing dotnet-sdk: 8.0.401Remove-Item: C:\Users\DipanNanda\scoop\apps\scoop\current\libexec\scoop-cleanup.ps1:50
Line |
50 | Remove-Item $dir -ErrorAction Stop -Recurse -Force
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Access to the path 'C:\Users\DipanNanda\scoop\apps\dotnet-sdk\8.0.401\host\fxr\8.0.8\hostfxr.dll' is denied.
Possible Solution
No idea.
Scoop and Buckets Version
PS> scoop --version
Current Scoop version:
859d1db5 (HEAD -> master, tag: v0.5.2, origin/master, origin/HEAD) chore(release): Bump to version 0.5.2 (#6080)
'main' bucket:
6354019e5 (HEAD -> master, origin/master, origin/HEAD) mill: Update to version 0.12.3
'extras' bucket:
6b94cdc1b (HEAD -> master, origin/master, origin/HEAD) [email protected]: Fix hash (Closes #14462)
'versions' bucket:
a8a5c33d3 (HEAD -> master, origin/master, origin/HEAD) vscode-insiders: Update to version 1.96.0-1732511152533
'nerd-fonts' bucket:
d9a38eb0 (HEAD -> master, origin/master, origin/HEAD) Font-Awesome: Update to version 6.7.1
'nonportable' bucket:
cc6b0c57 (HEAD -> master, origin/master, origin/HEAD) 10x-np: Update to version 1.0.241
'java' bucket:
8ef2a9a5 (HEAD -> master, origin/master, origin/HEAD) temurin22-jre: Update to version 22.0.2-9
'okibcn_ScoopMaster' bucket:
65ab920181 (HEAD -> master, origin/master, origin/HEAD) Update timestamp 2024-09-18T23:52:50Z
'scoop-lemon' bucket:
428935fcc (HEAD -> master, origin/master, origin/HEAD) chore: update hosted package
'Scoop-spotify' bucket:
780fcdc (HEAD -> master, origin/master, origin/HEAD) spotify-latest: Update to version 1.2.51.345.gcc39d911
Scoop Config
PS> scoop config
last_update startmenu_folder scoop_branch scoop_repo
----------- ---------------- ------------ ----------
25/11/2024 11:11:23 Scoop Apps master https://github.com/ScoopInstaller/Scoop
PowerShell Version
PS> $PSVersionTable
Name Value
---- -----
PSVersion 7.5.0-rc.1
PSEdition Core
GitCommitId 7.5.0-rc.1
OS Microsoft Windows 10.0.22621
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Additional Softwares
No response
here too:
scoop cleanup *
...
Removing dotnet-sdk: 9.0.101
Remove-Item: C:\Users\xxx\scoop\apps\scoop\current\libexec\scoop-cleanup.ps1:50
Line |
50 | Remove-Item $dir -ErrorAction Stop -Recurse -Force
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Access to the path 'C:\Users\xxx\scoop\apps\dotnet-sdk\9.0.101\host\fxr\9.0.0\hostfxr.dll' is denied.
This seems to happen when you are trying to upgrade or uninstall. Here are related issues from the Main and Extras buckets.
https://github.com/ScoopInstaller/Main/issues/6358 https://github.com/ScoopInstaller/Extras/issues/13457
For now, the solution seems to manually delete the locked files and run the cleanup command again.
C:\Users\DipanNanda\scoop\apps\dotnet-sdk\8.0.401\host\fxr\8.0.8\hostfxr.dll
Yes, that seems to be the only option. I also sometimes have to end it using Task Manager, but that's really inconvenient