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

"Permission denied" error in uninstallation Edit #5242

Closed
vtjnash opened this issue Dec 28, 2013 · 8 comments
Closed

"Permission denied" error in uninstallation Edit #5242

vtjnash opened this issue Dec 28, 2013 · 8 comments
Labels
packages Package management and loading system:windows Affects only Windows

Comments

@vtjnash
Copy link
Member

vtjnash commented Dec 28, 2013

julia> Pkg.rm("WinRPM")
INFO: Removing WinRPM v0.0.10
mv: cannot move `WinRPM' to `.trash/WinRPM': Permission denied
Error: failed process: Process(`mv WinRPM .trash/`, ProcessExited(1)) [1]
  in pipeline_error at process.jk:476
  in run at process.jl:453

It appears to want to move things to .trash, but I don't have such a directory in a fresh MinGW-builds/MSYS environment.

(from jiahao)

@ihnorton
Copy link
Member

I'm pretty sure this happens because the .trash/WinRPM directory already exists. Also it is supposed to be ~/.julia/.trash not ~/.trash.

@vtjnash
Copy link
Member Author

vtjnash commented Dec 28, 2013

@jiahao I assume the ~ assumption was just a mistake? (also the RinRPM in the backtrace)

@jiahao
Copy link
Member

jiahao commented Dec 28, 2013

Fixed, thanks. I transcribed the error from a console that wouldn't let me copy text from

@quinnj
Copy link
Member

quinnj commented Jun 5, 2014

Do you know if this is still an issue @jiahao? I'm having trouble reproducing even if I manually stick a folder with a package name in .trash and Pkg.rm(). Would there be a difference between msys and msys2 handling here?

@jiahao
Copy link
Member

jiahao commented Jun 5, 2014

I only noticed this on MSYS, not MSYS2. Haven't tried recently, though.

@quinnj
Copy link
Member

quinnj commented Jun 5, 2014

I was just able to reproduce this (coincidentally):

julia> Pkg.rm("testing")
INFO: Removing testing (unregistered)
mv: cannot move ‘testing’ to ‘.trash/testing’: Permission denied
ERROR: failed process: Process(`mv testing .trash/`, ProcessExited(1)) [1]
 in pipeline_error at process.jl:502
 in remove at pkg/write.jl:43
 in rm at pkg/entry.jl:77
 in anonymous at pkg/dir.jl:28
 in cd at file.jl:30
 in cd at pkg/dir.jl:28
 in rm at pkg.jl:19

@quinnj
Copy link
Member

quinnj commented Jun 5, 2014

I believe this will be addressed by #7041, #7046

@vtjnash
Copy link
Member Author

vtjnash commented Jun 27, 2014

likely fixed, since the two referenced issues are now closed/merged

@vtjnash vtjnash closed this as completed Jun 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
packages Package management and loading system:windows Affects only Windows
Projects
None yet
Development

No branches or pull requests

4 participants