Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
717 views
in Technique[技术] by (71.8m points)

onedrive - Unable to delete (uninstall) vcpkg

I installed vcpkg following this instruction, and later figured out that I don't need it.

I've done vcpkg integrate remove before deleting as explained in This post.

I can delete every folder except the vcpkg/ports/armadillo folder, which gives the following error when running Remove-item -path armadillo -recurse -force in PowerShell:

Remove-item : There is a mismatch between the tag specified in the request and the tag present in the reparse point
At line:1 char:1
+ Remove-item -path armadillo -recurse -force
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Remove-Item], Win32Exception
    + FullyQualifiedErrorId : System.ComponentModel.Win32Exception,Microsoft.PowerShell.Commands.RemoveItemCommand

The command worked when removing all the other folders, and unfortunately, I can't make sense of the error message. It may be a permissions issue since it is located in a OneDrive folder, but I have gone online and deleted the whole vcpkg folder from the browser version of OneDrive, and I still cannot delete it locally. When going in to the folder and typing ls, I get this error:

ls : The tag present in the reparse point buffer is invalid.
At line:1 char:1
+ ls
+ ~~
    + CategoryInfo          : ReadError: (C:Usersamundm...portsarmadillo:String) [Get-ChildItem], IOException
    + FullyQualifiedErrorId : DirIOError,Microsoft.PowerShell.Commands.GetChildItemCommand

Googeling the error just gives me solutions involving admin rights, which I do not have on this company machine.

How do I go on to remove this folder?

question from:https://stackoverflow.com/questions/65848498/unable-to-delete-uninstall-vcpkg

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...